"Hello, world!" crashes during exit
Vadim Zeitlin
vadim at wxwindows.org
Fri Jun 1 05:08:28 PDT 2007
On Mon, 28 May 2007 11:43:08 +0700 Slava Semushin <slava.semushin at gmail.com> wrote:
SS> Program received signal SIGSEGV, Segmentation fault.
SS> 0xb68da0d0 in ?? ()
SS>
SS> (gdb) bt
SS> #0 0xb68da0d0 in ?? ()
SS> #1 0xb73e926d in exit () from /lib/libc.so.6
SS> #2 0xb73d3884 in __libc_start_main () from /lib/libc.so.6
SS> #3 0x08050111 in _start ()
SS>
SS> It's all what I have. May be this crashes related to wrong argc
SS> parameter in main()?
...
SS> (After many tests, recompilations and compare spec files): it's stable
SS> reproduce when wxWidgets configure'd with following options:
SS> --enable-unicode --disable-odbc --enable-shared --enable-optimise I
SS> suspect then first two options not affected to result. Then mix of
SS> options --enable-shared --enable-optimise produce wrong result.
While I absolutely don't see what could provoke the crash in exit(), it
still might be a bug in our code e.g. if we corrupted some internal libc
data. But it seems more likely to be a compiler problem, especially as it
only appears with optimizations enabled. All I can say is that I don't see
it when using Debian i586-mingw32msvc-gcc compiler...
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list