From owner-freebsd-java@FreeBSD.ORG Sun Jun 20 00:20:34 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB96716A4CE for ; Sun, 20 Jun 2004 00:20:34 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49F443D54 for ; Sun, 20 Jun 2004 00:20:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i5K0KPZ4044720 for ; Sun, 20 Jun 2004 00:20:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5K0KPTu044719; Sun, 20 Jun 2004 00:20:25 GMT (envelope-from gnats) Date: Sun, 20 Jun 2004 00:20:25 GMT Message-Id: <200406200020.i5K0KPTu044719@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: "Georg-W. Koltermann" Subject: Re: java/68079: PATCH linux ibm jdk 1.4.1 fails with: JVMLH050: Signal stack registration failed (errno=22) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Georg-W. Koltermann" List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 00:20:34 -0000 The following reply was made to PR java/68079; it has been noted by GNATS. From: "Georg-W. Koltermann" 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.