qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Coredump from qemu


From: Avi Kivity
Subject: Re: [Qemu-devel] Coredump from qemu
Date: Sun, 23 Mar 2008 15:19:13 +0200
User-agent: Thunderbird 2.0.0.12 (X11/20080226)

Zdenek Kabelac wrote:
Hi

During execution of qemu I've got this crash:

#0  0x0000000000407a29 in qemu_mod_timer (ts=0x2e8cf90,
expire_time=130685351465) at /usr/src/debug/kvm-63/qemu/vl.c:1073
#1  0x0000000000425590 in pcnet_ioport_writew (opaque=0x0,
addr=1836332585, val=8090216)
    at /usr/src/debug/kvm-63/qemu/hw/pcnet.c:1617
#2  0x0000000000501cf1 in kvm_outw (opaque=<value optimized out>,
addr=13865, data=29288)
    at /usr/src/debug/kvm-63/qemu/qemu-kvm.c:457
#3  0x000000000051e2a0 in kvm_run (kvm=0x2dbb030, vcpu=1) at libkvm.c:719
#4  0x0000000000501646 in kvm_cpu_exec (env=<value optimized out>) at
/usr/src/debug/kvm-63/qemu/qemu-kvm.c:127
#5  0x00000000005021a5 in kvm_main_loop_cpu (env=0x2e8f010) at
/usr/src/debug/kvm-63/qemu/qemu-kvm.c:307
#6  0x0000000000502302 in ap_main_loop (_env=<value optimized out>) at
/usr/src/debug/kvm-63/qemu/qemu-kvm.c:338
#7  0x000000353420740a in start_thread () from /lib64/libpthread.so.0
#8  0x00000035336e5d1d in clone () from /lib64/libc.so.6

(gdb) print alarm_timer
$1 = (struct qemu_alarm_timer *) 0x0


It happend during detach of gdb and quit of the qemu itsell - I assume
no all timers were probably stoped when quit_timers was executed ?


Looks like.

Maybe check for non NULL pointer is enough qemu_mod_timer?


I think the correct solution is to allow devices to register a shutdown function, which would be called after main_loop() (but before quit_timers) , which would execute qemu_del_timer() in the case of pcnet. It's also necessary for device hotremove.

--
error compiling committee.c: too many arguments to function





reply via email to

[Prev in Thread] Current Thread [Next in Thread]