Tomáš Kazmar | 1 Dec 2007 17:15
Picon
Favicon

application fails already in mainCRTStartup()

Hi all,

  can anyone help me understand what happens. I can neither
start an application compiled with mingw, nor debug it as it fails
already in mainCRTStartup(). Below is a log of gdb debugging
and a backtrace. In linux it works just fine and even some of the
other applications in the same project using the same libraries
are running ok.

Thanks for any hints.

Tomas

(gdb) file trbsp
Reading symbols from /d/tsh/xaq-debug/trbsp.exe...(no debugging symbols found)..
.done.
(gdb) r
Starting program: /d/tsh/xaq-debug/trbsp.exe
Loaded symbols for /c/WINDOWS/system32/ntdll.dll
Loaded symbols for /c/WINDOWS/system32/kernel32.dll
Loaded symbols for /c/WINDOWS/system32/advapi32.dll
Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /c/WINDOWS/system32/secur32.dll
Loaded symbols for /c/WINDOWS/system32/gdi32.dll
Loaded symbols for /c/WINDOWS/system32/user32.dll
Loaded symbols for /d/tsh/xaq-debug/mingwm10.dll
Loaded symbols for /c/WINDOWS/system32/msvcrt.dll
Loaded symbols for /c/WINDOWS/system32/snmpapi.dll
Loaded symbols for /c/WINDOWS/system32/ws2_32.dll
Loaded symbols for /c/WINDOWS/system32/ws2help.dll
Loaded symbols for /c/WINDOWS/system32/wsock32.dll

[1]+  Stopped                 gdb

acer2 <at> ACER2 /d/tsh/xaq-debug
$ fg
gdb
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x006a6113 in probe ()
(gdb) bt
#0  0x006a6113 in probe ()
#1  0x006a5090 in std::__timepunct<char>::_M_initialize_timepunct ()
#2  0x0040124b in __mingw_CRTStartup ()
#3  0x00401298 in mainCRTStartup ()
(gdb)

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
MinGW-users mailing list
MinGW-users@...

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users


Gmane