1.5.19-4: Problem to debug dll-mechanism on Cygwin

vita@unileoben.ac.at vita@unileoben.ac.at
Wed Feb 1 12:14:00 GMT 2006


Greetings!

I run into some strange problems while trying to debug a simple application in
order to test dll-mechanism with Cygwin 1.5.19-4 on Windows 2000 Professional.
The whole minimalistic application, made of "a.cpp", "a.h" and "main.cpp", is
attached and was compiled using "compile.sh" script. If I try to debug this
program with gdb, I am running to some strange problems, however applications
alone seems to work properly. I tested it under Linux and found no problems.

gdb output:

GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /home/pvita/tests/dll-debug-test/main.exe

Program received signal SIGSEGV, Segmentation fault.
0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll
(gdb) bt
#0  0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll
#1  0x6108dd7f in _sigfe () from /usr/bin/cygwin1.dll
#2  0x59432d52 in ?? ()
#3  0x100155e8 in ?? ()
#4  0x0043ff50 in virtual thunk to std::basic_ofstream<char, std::char_traits<ch
ar> >::~basic_ofstream() ()
#5  0x100155e8 in ?? ()
#6  0x0022ed68 in ?? ()
#7  0x610af6b7 in pthread::once () from /usr/bin/cygwin1.dll
#8  0x610af6b7 in pthread::once () from /usr/bin/cygwin1.dll
#9  0x6108dd7f in _sigfe () from /usr/bin/cygwin1.dll
#10 0x0022ed98 in ?? ()
#11 0x0040f505 in _Unwind_SjLj_Register () at iostream:77
#12 0x0040f505 in _Unwind_SjLj_Register () at iostream:77
#13 0x00401443 in std::ios_base::Init::Init () at iostream:77
#14 0x004011d9 in __static_initialization_and_destruction_0 (
   __initialize_p=1, __priority=65535) at iostream:77
#15 0x00401210 in global constructors keyed to main () at main.cpp:11
#16 0x61004772 in do_global_ctors () from /usr/bin/cygwin1.dll
#17 0x100155ba in ?? ()
#18 0x0022ee48 in ?? ()
#19 0x61004812 in __main () from /usr/bin/cygwin1.dll
Previous frame inner to this frame (corrupt stack?)
(gdb)

Can somebody try it and tell me what I am doing wrong or what happens here?

Sincerely Yours,

PV


----------------------------------------------------
Sent through the University of Leoben webmail system
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.h
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/4ac5f31d/attachment.h>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/4ac5f31d/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/4ac5f31d/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile.sh
Type: application/octet-stream
Size: 169 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/4ac5f31d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 25669 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060201/4ac5f31d/attachment-0001.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list