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]

Re: pthread + gdb + cygwin problem...

I only have one cygwin1.dll and that's in the /bin directory...

On Tue, Aug 06, 2002 at 02:48:06PM -0500, Mak, Ryan wrote:
>given the following simple program:
>#include <pthread.h>
>    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        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??

Sounds like the good ol' multiple cygwin DLL problem.  Search your
system for multiple versions of the Cygwin DLL and delete all but
the one in the /bin directory.

Please do not send me personal email with cygwin questions.
Use the resources at <> .

Unsubscribe info:
Bug reporting:

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