[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled |
Date: |
Sun, 15 Mar 2009 17:16:50 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
Paul Brook schrieb:
>>> But really funny think is the change that triggers the bug is precisely
>>> this: -Monitor *cur_mon;
>>> +Monitor *cur_mon = NULL;
>>>
>>> Obviously, kqemu is happier having garbage in the cur_mon than NULL
>>>
>> I rather expect that to _hide_ the bug. The "garbage" might be a
>> left-over from the heap.
>>
>
> This change does precisely nothing. In C all global and static variables are
> implicitly zero initialized.
>
> Paul
>
>
>
This change changes the location of variable cur_mon from BSS to DATA
segment.
For buggy code, such changes surely can have an effect. Maybe some other
variable in data which is located before cur_mon destroys cur_mon.
Running in gdb with a hardware watchpoint on any change of cur_mon might
help
to see if cur_mon is overwritten.
Stefan
- [Qemu-devel] SIGSEGV on Windows with KQEMU enabled, Consul, 2009/03/06
- Re: [Qemu-devel] SIGSEGV on Windows with KQEMU enabled, Anthony Liguori, 2009/03/06
- [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Consul, 2009/03/12
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Johannes Schindelin, 2009/03/13
- [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Consul, 2009/03/13
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Johannes Schindelin, 2009/03/14
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Andreas Färber, 2009/03/14
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Paul Brook, 2009/03/14
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled,
Stefan Weil <=
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Avi Kivity, 2009/03/15
- Re: [Qemu-devel] Re: SIGSEGV on Windows with KQEMU enabled, Johannes Schindelin, 2009/03/16