[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Is *-bsd-user target broken?
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] Is *-bsd-user target broken? |
Date: |
Tue, 26 Jun 2012 18:09:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
On 06/26/2012 05:56 PM, Andreas Färber wrote:
Am 26.06.2012 17:49, schrieb Igor Mammedov:
Example of what I've did on FreeBSD, qemu with your recent patches and
ld patch form qemu-devel port:
# ./configure --enable-debug --disable-werror --target-list=i386-bsd-user
# ./i386-bsd-user/qemu-i386 -strace -bsd FreeBSD -L / /bin/ls
After some waiting it SIGSEGVs with following trace:
0x801484e8 in g_hash_table_lookup () from /usr/local/lib/libglib-2.0.so.0
(gdb) bt
#0 0x801484e8 in g_hash_table_lookup () from
/usr/local/lib/libglib-2.0.so.0
#1 0x6001788c in type_table_lookup (name=0x600c72be "i386-cpu") at
qom/object.c:95
#2 0x60017b60 in type_get_by_name (name=0x600c72be "i386-cpu") at
qom/object.c:157
#3 0x60018837 in object_dynamic_cast (obj=0x80534010,
typename=0x600c72be "i386-cpu") at qom/object.c:435
#4 0x6001897e in object_dynamic_cast_assert (obj=0x80534010,
typename=0x600c72be "i386-cpu") at qom/object.c:484
#5 0x60051eff in x86_cpu_realize (obj=0x80534010, errp=0x0) at
/root/qemu/target-i386/cpu.c:1709
#6 0x60053488 in cpu_x86_init (cpu_model=0x600c3711 "qemu32") at
/root/qemu/target-i386/helper.c:1178
#7 0x60022c61 in cpu_init (cpu_model=0x600c3711 "qemu32") at cpu.h:965
#8 0x6002238e in main (argc=7, argv=0xbfbfebd4) at
/root/qemu/bsd-user/main.c:915
Sounds like something is going wrong with linking of qom/cpu.o... Could
On OpenBSD it crashes in other place.
build with --disable-pie and run as "qemu-i386 -strace -bsd OpenBSD -L /
/bin/ls"
yelds after waiting:
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 5929, thread 0xaa6ea800]
0x60028e8a in g_free (ptr=0xaf303000) at /home/qemuup/bsd-user/mmap.c:119
119 munmap(p, *p);
(gdb) bt
#0 0x60028e8a in g_free (ptr=0xaf303000) at /home/qemuup/bsd-user/mmap.c:119
#1 0x60021c3e in setup_arg_pages (p=1074264779, bprm=0xcfbcad3c,
info=0xcfbcaeac) at /home/qemuup/bsd-user/elfload.c:698
#2 0x600259d1 in load_elf_binary (bprm=0xcfbcad3c, regs=0xcfbcaee8,
info=0xcfbcaeac) at /home/qemuup/bsd-user/elfload.c:1395
#3 0x600216d8 in loader_exec (filename=0xcfbcc24b "/bin/ls", argv=0xcfbcc188,
envp=0xa8a25880, regs=0xcfbcaee8, infop=0xcfbcaeac)
at /home/qemuup/bsd-user/bsdload.c:184
#4 0x6002832e in main (argc=7, argv=0xcfbcc170) at
/home/qemuup/bsd-user/main.c:961
you check a clean build before Paolo's refactoring?
Do you know wich commit id?
Andreas
--
-----
Igor