Subject: Re: COMPAT_IBCS2, SCO OSR5 executables SEGV on NetBSD 2.0
To: Christos Zoulas <christos@zoulas.com>
From: J Chapman Flack <flack@cs.purdue.edu>
List: tech-kern
Date: 12/29/2004 17:21:11
> >$ ktruss -t A ./wc
> > 8749 ktruss emul(netbsd)
> >Does this look like the ELF executable isn't being recognized as needing
> >emulation?
> What does it say next?
Nothing - that one line is the ktruss output. (I don't even see the "Abort"
that I see if running without ktruss.)
> I think that the problem could be with the non-executable stack and data
> mappings that are new in 2.0. I would add DEBUG_EXEC to my kernel and
> see what that prints. Also you can put some debugging in the trap handler
> for segv in arch/i386/i386/trap.c and print the PC where it dies. Then
> with objdump --dissassemble you can see what it is trying to do.
Thanks for the suggestions - I'll see what I can see.
-Chap