<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39459 >
On 19/09/2007, Elmo Todurov wrote: > > We held some correspondence with Stefan about the crash. Here's what he says: > ---------- Forwarded message ---------- > > On Wed, Sep 12, 2007 at 05:12:59PM +0200, Stefan Dirsch wrote: > > On Wed, Sep 12, 2007 at 06:01:59PM +0300, Elmo Todurov wrote: > > > > > Whose fault it is, GCC, glib2/gtk2 or FreeCiv? And, most > > > > > importantly, how to fix it? > > > > > > > > Honestly. I have no idea. I'm afraid we need a gcc expert here to > > > > compare the assembler output of "-O1" and "-O2". :-( > > [snip: Stefan asks someone] > > According to our gcc expert this is a undefinedness of signed overflow > in freeciv, since "-O2 --fno-tree-vrp" fixes it as well. > > [he means here that compiling ONLY the wldlg.c with --fno-tree-vrp fixes it] I debugged problem down to GINT_TO_POINTER() At the time I believed this to be debian specific problem, so it's reported to debian bug tracker. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440545 That bugreport contains example program. - ML _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev