This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pthread + gdb + cygwin problem...

given the following simple program:

#include <pthread.h>

    pthread_mutex_t a,b;


compile and link with g++ version 3.1.1 20020718 (prerelease):

g++ -g        or       g++ -g -lpthread

the executable a.exe will run fine but launching through gdb will result in
a segmentation fault on the first line:

Program received signal SIGSEGV, Segmentation fault.
0xbff7a606 in _libkernel32_a_iname ()
(gdb) where
#0  0xbff7a606 in _libkernel32_a_iname ()
#1  0x0040b130 in cygwin_premain3 ()
#2  0xbff958f8 in _libkernel32_a_iname ()
#3  0x6107dd26 in _libkernel32_a_iname ()
#4  0x6107f728 in _libkernel32_a_iname ()
#5  0x004010b1 in main () at
#6  0x61005b8e in _libkernel32_a_iname ()
#7  0x61005e2c in _libkernel32_a_iname ()
#8  0x0040aea2 in cygwin_crt0 ()
#9  0x0040103c in mainCRTStartup ()
#10 0xbff8b560 in _libkernel32_a_iname ()
#11 0xbff8b412 in _libkernel32_a_iname ()
#12 0xbff89dd5 in _libkernel32_a_iname ()
Cannot access memory at address 0x90b89fec

help anyone??

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]