This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: ****** /home/noer/src/b20/comp-tools/devo/winsup/exceptions.cc


On Tue, 11 May 1999, Isselmou Ould-Dellahy wrote:

> Hi,
> Could anyone give me an explanation for this message :
> 
> ****** /home/noer/src/b20/comp-tools/devo/winsup/exceptions.cc:348 __get_signal_mutex failed, res -1, error 6
> 
> This is a runtime error sent by a java/C/C++ code before it crashes.
> I tried to minimise the amount of code that produces it but could not;
> the crash seems arbitrary.

Cygwin is not thread safe, and I don't think it's safe currently to use
Cygwin for any non-trivial JNI. I've noticed that it seems to work as
long as I limit myself to a single JNI, but as soon as I load more than
one, kabooom (and seemingly at random places).

Can you try with the Mingw runtime and see if the problem persists?

> BTW : what is the best debugger for such a software (a java
>       gui that calls C native methods ) ?

GDB can do the job, albeit in a somewhat awkward manner. You essentially
run java under gdb and then it'll stop at the crash.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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