On Sat, May 09, 2009 at 06:58:46AM +0000, Andrew Doran wrote: > > > xen isn't as vulnerable to the LDT/segreg problem as native x86 because > > > it's not MP and doesn't do kernel preemption. For the time being I guess > > > it would suffice to #ifdef the 'cli'. > > > > That's not enough to make the binary run: even with the cli commented > > out the test binary segfaults. > > There may be something else wrong, I'll try to look further. > > > > Any way to use gdb to see what it's doing ? The NetBSD/i386 doesn't want > > to load this executable ... > > Can you ktrace it? At least we then can see if it's hitting the syscall > path.
here's what I get: 11703 1 ktrace EMUL "netbsd" 11703 1 ktrace RET ktrace 0 11703 1 ktrace CALL execve(0xbf7ffc27,0xbf7feb68,0xbf7feb70) 11703 1 ktrace NAMI "./architextIndex" 11703 1 architextIndex EMUL "netbsd" 11703 1 architextIndex RET syscall JUSTRETURN 11703 1 architextIndex PSIG SIGSEGV SIG_DFL: code=SEGV_ACCERR, addr=0xacb94, trap=4) 11703 1 architextIndex NAMI "architextIndex.core" -- Manuel Bouyer, LIP6, Universite Paris VI. manuel.bou...@lip6.fr NetBSD: 26 ans d'experience feront toujours la difference --