Date: Sun, 20 Jun 2004 00:20:25 GMT From: "Georg-W. Koltermann" <gwk@rahn-koltermann.de> To: freebsd-java@FreeBSD.org Subject: Re: java/68079: PATCH linux ibm jdk 1.4.1 fails with: JVMLH050: Signal stack registration failed (errno=22) Message-ID: <200406200020.i5K0KPTu044719@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR java/68079; it has been noted by GNATS. From: "Georg-W. Koltermann" <gwk@rahn-koltermann.de> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: java/68079: PATCH linux ibm jdk 1.4.1 fails with: JVMLH050: Signal stack registration failed (errno=22) Date: Sun, 20 Jun 2004 02:14:15 +0200 The problem was that linux_machdep.c had the arguments to kern_sigaltstack() switched. Apply the following patch: Index: linux_machdep.c =================================================================== RCS file: /usr/ncvs/src/sys/i386/linux/linux_machdep.c,v retrieving revision 1.40 diff -u -r1.40 linux_machdep.c --- linux_machdep.c 2 Jun 2003 16:56:40 -0000 1.40 +++ linux_machdep.c 19 Jun 2004 23:19:29 -0000 @@ -799,8 +799,8 @@ ss.ss_size = lss.ss_size; ss.ss_flags = linux_to_bsd_sigaltstack(lss.ss_flags); } - error = kern_sigaltstack(td, (uap->uoss != NULL) ? &oss : NULL, - (uap->uss != NULL) ? &ss : NULL); + error = kern_sigaltstack(td, (uap->uss != NULL) ? &ss : NULL, + (uap->uoss != NULL) ? &oss : NULL); if (!error && uap->uoss != NULL) { lss.ss_sp = oss.ss_sp; lss.ss_size = oss.ss_size; Alas, it still does not work right. Now it hangs with high system times and the message "kernel trap 26 with interrupts disabled" in syslog :( See next PR.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406200020.i5K0KPTu044719>