* [Qemu-devel] Coredump from qemu
@ 2008-03-21 13:46 Zdenek Kabelac
2008-03-23 13:19 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Zdenek Kabelac @ 2008-03-21 13:46 UTC (permalink / raw)
To: qemu-devel; +Cc: kvm-devel
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 ?
Maybe check for non NULL pointer is enough qemu_mod_timer?
I'm using kvm64 fedora rawhide packages.
Zdenek
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Coredump from qemu
2008-03-21 13:46 [Qemu-devel] Coredump from qemu Zdenek Kabelac
@ 2008-03-23 13:19 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-03-23 13:19 UTC (permalink / raw)
To: qemu-devel; +Cc: kvm-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-23 13:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 13:46 [Qemu-devel] Coredump from qemu Zdenek Kabelac
2008-03-23 13:19 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).