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 you check a clean build before Paolo's refactoring? Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg