[Pkg-xen-devel] Bug#649349: Bug#649349: xen-hypervisor-4.1-amd64: pygrub fails due to invalid opcode trapped

Alexandre Vaissière thestarch at gmail.com
Mon Nov 21 19:51:32 UTC 2011


Le 21/11/2011 11:32, Ian Campbell a écrit :
>> Note that pygrub does NOT fail If I launch 'pygrub mydisk.img' on a standard
>> kernel boot, only if the hypervisor is used (tested with linux-image-3.0.0
>>  and linux-image-2.39.2)
> Can you try:
> /usr/lib/xen-default/bin/pygrub --args="root=/dev/xvda2 ro" --output=/var/run/xend/boot/xenbl.8881 /home/starch/data/xen/domains/squeeze/disk.img
>
result is the same: there is no output in /tmp/pipo
and this in dmesg

[  329.031435] pygrub[2960] trap invalid opcode ip:7f4b75571c50
sp:7fffaef79a58 error:0 in ld-2.13.so[7f4b7555e000+1f000]

> Since this is the actual command which is failing.
>
> Having done that (and assuming it does repro the issue) can you run
> under gdb to see where the crash really is.
>
[starch at glamdring]~ % gdb python
GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) run /usr/lib/xen-default/bin/pygrub --args="root=/dev/xvda2 ro"
--output=/tmp/pipo /home/starch/data/xen/domains/squeeze/disk.img
Starting program: /usr/bin/python /usr/lib/xen-default/bin/pygrub
--args="root=/dev/xvda2 ro" --output=/tmp/pipo
/home/starch/data/xen/domains/squeeze/disk.img
[Thread debugging using libthread_db enabled]

Program received signal SIGILL, Illegal instruction.
0x00007ffff7df0c50 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00007ffff7df0c50 in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7de75c6 in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7dea742 in ?? () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7df0695 in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff54baa24 in ext2fs_open2 () from
/lib/x86_64-linux-gnu/libext2fs.so.2
#5  0x00007ffff56dca15 in ?? () from
/usr/lib/xen-4.1/lib/fs/ext2fs-lib/fsimage.so
#6  0x00007ffff5ae28a5 in ?? () from
/usr/lib/xen-4.1/bin/../lib/python/../libfsimage.so
#7  0x00007ffff5ae24cc in fsi_open_fsimage () from
/usr/lib/xen-4.1/bin/../lib/python/../libfsimage.so
#8  0x00007ffff5ce5572 in ?? () from
/usr/lib/xen-4.1/bin/../lib/python/fsimage.so
#9  0x00000000004b93d9 in PyEval_EvalFrameEx ()
#10 0x00000000004bfb54 in PyEval_EvalCodeEx ()
#11 0x00000000004c0692 in PyEval_EvalCode ()
#12 0x00000000004df8f2 in ?? ()
#13 0x00000000004e0484 in PyRun_FileExFlags ()
#14 0x00000000004e0f8e in PyRun_SimpleFileExFlags ()
#15 0x00000000004f0ec4 in Py_Main ()
#16 0x00007ffff69a3ead in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#17 0x000000000041f2b9 in _start ()

Let me know if you want some more info.

Alexandre.







More information about the Pkg-xen-devel mailing list