Subject: Re: JDK status (was: Re: Netscape on macppc: it works!)
To: None <port-macppc@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-macppc
Date: 03/03/2001 18:02:07
In article <Pine.WNT.4.32.0103031254090.-118071@todd>,
Todd Vierling <tv@wasabisystems.com> wrote:
>On Sat, 3 Mar 2001, Emmanuel Dreyfus wrote:
>
>: I tried this, and ktrace shows no system call neither for sigsetjmp nor
>: for siglongjmp. This is true for both native NetBSD/PowerPC and for
>: Linux emulation on NetBSD/PowerPC
>
>Basically you probably need to do ktraces of the JDK in action and look for
>things that may be out of the ordinary--errors on mmap() or sigaltstack() or
>the like.
>
>My comments about {sig,}longjmp() were one *guess* at the problem.

I would check sigreturn too... something like:

#include <stdio.h>
#include <signal.h>

void sig(int n) {
	printf("%d\n", n);
}

int main(int argc, char *argv[]) {
	signal(SIGINT, sig);
	for (;;)
		continue;
}