"Hello, world!" crashes during exit

Slava Semushin slava.semushin at gmail.com
Sun May 27 21:43:08 PDT 2007


2007/5/25, Vadim Zeitlin <vadim / wxwindows.org>:
[...]
>  Also, seeing you have the debug info package, what about running the
> program under gdb and looking at the backtrace ("bt" command) when it
> crashes?

coder at k145h2:~> gdb -q ./wx-hello
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) br main
Breakpoint 1 at 0x8050fb8: file wx-hello.cc, line 33.

(gdb) r
Starting program: /home/coder/wx-hello
[Thread debugging using libthread_db enabled]
[New Thread -1229588816 (LWP 31251)]
[Switching to Thread -1229588816 (LWP 31251)]

Breakpoint 1, main (argc=Cannot access memory at address 0xb5ed4b59
) at wx-hello.cc:33
33      IMPLEMENT_APP(MyApp)

(gdb) c
Continuing.
Quit!

Program received signal SIGSEGV, Segmentation fault.
0xb68da0d0 in ?? ()

(gdb) bt
#0  0xb68da0d0 in ?? ()
#1  0xb73e926d in exit () from /lib/libc.so.6
#2  0xb73d3884 in __libc_start_main () from /lib/libc.so.6
#3  0x08050111 in _start ()

It's all what I have. May be this crashes related to wrong argc
parameter in main()?


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru




More information about the wx-users mailing list