www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/17/19:29:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Mon, 17 May 1999 18:27:27 -0500
From: "Isselmou Ould-Dellahy" <iod AT ccrl DOT mot DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: JNI calling "system" function crashes
Message-Id: <19990517182727.A4240@eastern.ccrl.mot.com>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.4i

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii

I've minimized the problem leading to a crash when the function
"int system(const char *)" is called from a JNI method.

In such a case it gives the message :


****** /home/noer/src/b20/comp-tools/devo/winsup/exceptions.cc:348 __get_signal_mutex failed, res -1, error 6

before it crashes.

If you would like to take a closer look, I attached here the jni_sys.tar.gz
minimum program that shows it, but I'm quite confident the problem is known.

The way it crashes is like when you mix two runtimes. But I verified that
when we compile within cygwin runtime, the "system()" prototype is :

int    system   (const char *__string)  ;

wich is in the file :

/cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/
include/stdlib.

and the implemetation we link with is in :

/Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libcygwin.a

Mumit Khan wrote :
> Can you try with the Mingw runtime and see if the problem persists?

I tried the minimum program with mingw and it works fine; but when I try to
use mingw for a more serious program the linker lacks some symbols like :

_impure_ptr
sbrk
sysconf
gettimeofday
times
getuid
getpwuid
uname
getdomainname


did anyone encounter this problem ? I appreciate your help.
Regards
-- 
Isselmou OULD DELLAHY

--WIyZ46R2i8wDzkSu
Content-Type: application/x-tar-gz
Content-Disposition: attachment; filename="jni_sys.tar.gz"
Content-Transfer-Encoding: base64

H4sIAPBkOzcAA+1YbW8iNxDOV5D4D6MkUiHNLm8BquRSlSMkR0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6JKEngXJVZWY+wlPxGKcuDJbget4iIDNgAvp9M7qPvL5W/6VcAWUn
1mdc1TCjZZNDGIQS5JjIHwT43FsCXn8CHysAkRSGWIVaWlOxxaGyo/QFuoHq05Sak8BV721L
aRzCguJNBmeRPqCZOUNXEXDZcEgDXI3ZgLKi92DDtY+zSNyhR4mrymvIXQyh4wc4jrtaJAPC
PCXDndixRywBQ4+M8LoTsJnQemd4wMNpxRir16PmCPaJ2tqLKOt3z867zYueCs8779Cih4mv
uM+f8pql86LVwhEjx8G31XjieWCNTIiMbQy+Eu3nk1zAA2Tr9jYZg9mUZG9hlUdPsou4FkyT
D3FJVhRbjhK0EE19f3PTRfO4cOn7nma9u2veGpbKCrNAPA33z9rnyMau5dmYDIZ/3dTIUa3M
xgFx0unQnmONRRdc9u5aagfJv11g/QCmT9s3r3unuA+leKy5pwZXhZWH1ozou5vh3ry+7IF2
W6xzbDunth8NzGWVo48jsVprAd/VdKiQmWCSWM4MORuFoFA0N3286H9iM61hm8u23tveHn6p
PWIbUVmFlg1DCRL/9ZO4WdhvZ6G00GXROiJfFlBGXNfCy4iDy7SIx4hQMctkLMsN8HgRWPqo
sJ9vtfSG1rYR70k5QO1F/1ITFyB5NWvAafwNB3yI1c3gSBZl9+qnSsgCxH7E/Vlfk9BeJpO5
C3WGfG3TWKf1eU7n0LHe7hpGBowXldiBgyQDbcf2jSK6GkMeeaGV+CRGon6P316poQ6WHq7G
BlOwhmjTB11+Dv5IoJLAA6XmSHlgj791N0wppZRSSimllFJKKaWUUkoppZRS+v7oT3btBoYA
KAAA


--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--WIyZ46R2i8wDzkSu--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019