From owner-freebsd-emulation Tue Sep 5 23:44:51 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from gilgamesch.bik-gmbh.de (T1-Hansenet.BIK-GmbH.de [192.76.134.246]) by hub.freebsd.org (Postfix) with ESMTP id 336B637B422 for ; Tue, 5 Sep 2000 23:44:48 -0700 (PDT) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id IAA06318; Wed, 6 Sep 2000 08:39:57 +0200 (MET DST) Date: Wed, 6 Sep 2000 08:39:57 +0200 From: Martin Cracauer To: Nate Williams Cc: Andrew Gallatin , marcel@cup.hp.com, freebsd-emulation@FreeBSD.ORG Subject: Re: IBM JDK fails due to lack of SA_SIGINFO support Message-ID: <20000906083957.A5530@cons.org> References: <14773.43466.744621.411519@grasshopper.cs.duke.edu> <200009060447.WAA23183@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200009060447.WAA23183@nomad.yogotech.com>; from nate@yogotech.com on Tue, Sep 05, 2000 at 10:47:21PM -0600 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In <200009060447.WAA23183@nomad.yogotech.com>, Nate Williams wrote: > > Currently the IBM jdk & jvm don't run under our linux abi. This had > > previously been attributed to the "sigaltstack: Cannot allocate > > memory" message one sees when running it. Upon further investigation, > > this appears to be a red herring. > > Umm, I'd believe this except that someone sent me a patch (which I've > forwarded to Marcel) that fixes this and is related to the sigalstack > error above. At least the author of the patch claims that the IBM JDK > now runs successfully on his box, running some version of FreeBSD. :) > > > The "real" problem is as simple > > (or, rather, complex) as the fact that we don't support SA_SIGINFO > > style signal handlers under the linux abi. > > [ Great explanation deleted ] > > Hmm, I'm at a loss. I've heard that things work fine with the > signalstack issues fixed, so maybe the java program that he is running > doesn't tickle the bug, although I find that rather difficult to believe > given that almost every Java program known to man is multi-threaded. Maybe the patch that someone sent you just adds SA_SIGINFO arguments to every signal handler? That should make SA_SIGINOF using programs work and not break applications just using 1 argument. It would break non-SA_SIGNINFO arguemnts using handler, expecting a second argument: void hand(int s, struct sigcontext_struct context); Could you send me the patch or verify that it break the latter kind of applications? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message