Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <5933E79666CAD211AEF800105A5FDB370851352F@chimsg1-nt.chi.wms.com> From: "Mak, Ryan" To: "'cygwin AT cygwin DOT com'" Subject: pthread + gdb + cygwin problem... Date: Tue, 6 Aug 2002 14:48:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" given the following simple program: #include 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/