qemu-devel
[Top][All Lists]
Advanced

[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





reply via email to

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