This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
pthread + gdb + cygwin problem...
- From: "Mak, Ryan" <RMak at wmsgaming dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Tue, 6 Aug 2002 14:48:06 -0500
- Subject: pthread + gdb + cygwin problem...
given the following simple program:
#include <pthread.h>
main()
{
pthread_mutex_t a,b;
pthread_mutex_init(&a,NULL);
pthread_mutex_init(&b,NULL);
}
compile and link with g++ version 3.1.1 20020718 (prerelease):
g++ -g test.cc or g++ -g test.cc -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 test.cc:7
#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: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/