Re: [uml-devel] [UML] Problems building and running 2.6.17-rc4 on x86-64

From: Alberto Bertogli
Date: Mon May 15 2006 - 11:29:44 EST


On Sun, May 14, 2006 at 11:39:19PM -0400, Jeff Dike wrote:
> On Sun, May 14, 2006 at 03:25:41PM -0300, Alberto Bertogli wrote:
> > So I copied them from sysdeps/x86_64/jmpbuf-offsets.h, and building went
> > on. Probably, the same happens under i386.
>
> The current patch for this is http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.17-rc4/patches/jmpbuf
>
> I need to redo it, but that works for now.

Thanks!


> > It begins to boot, but panics right after mounting root:
> >
> > [42949373.800000] kjournald starting. Commit interval 5 seconds
> > [42949373.800000] EXT3-fs: mounted filesystem with ordered data mode.
> > [42949373.800000] VFS: Mounted root (ext3 filesystem) readonly.
> > [42949373.800000] Kernel panic - not syncing: handle_trap - failed to wait at end of syscall, errno = 0, status = 2943
>
> This is a segfault happening when it shouldn't.
>
> Can you disassemble stub_segv_handler and send me the output?

Sure, here it is:
(gdb) disas stub_segv_handler
Dump of assembler code for function stub_segv_handler:
0x000000006027c0e0 <stub_segv_handler+0>: mov %rdx,%r8
0x000000006027c0e3 <stub_segv_handler+3>: mov 0xd8(%r8),%rax
0x000000006027c0ea <stub_segv_handler+10>: mov $0x7fbffff000,%rdx
0x000000006027c0f4 <stub_segv_handler+20>: mov %rax,0x8(%rdx)
0x000000006027c0f8 <stub_segv_handler+24>: mov 0xc0(%r8),%rax
0x000000006027c0ff <stub_segv_handler+31>: mov %eax,(%rdx)
0x000000006027c101 <stub_segv_handler+33>: mov 0xc8(%r8),%rax
0x000000006027c108 <stub_segv_handler+40>: mov %eax,0x10(%rdx)
0x000000006027c10b <stub_segv_handler+43>: mov $0x27,%eax
0x000000006027c110 <stub_segv_handler+48>: syscall
0x000000006027c112 <stub_segv_handler+50>: mov $0x3e,%edx
0x000000006027c117 <stub_segv_handler+55>: movslq %eax,%rdi
0x000000006027c11a <stub_segv_handler+58>: mov $0xa,%esi
0x000000006027c11f <stub_segv_handler+63>: mov %rdx,%rax
0x000000006027c122 <stub_segv_handler+66>: syscall
0x000000006027c124 <stub_segv_handler+68>: mov %r8,%rsp
0x000000006027c127 <stub_segv_handler+71>: mov $0xf,%rax
0x000000006027c12e <stub_segv_handler+78>: syscall
0x000000006027c130 <stub_segv_handler+80>: retq
End of assembler dump.


Please let me know if you need anything else.

Thanks,
Alberto


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/