qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Firefox crashes inside qemu
@ 2005-01-02 14:33 Alexander E. Patrakov
  2005-01-02 14:56 ` Lennert Buytenhek
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-02 14:33 UTC (permalink / raw)
  To: qemu-devel

To reproduce with the latest CVS qemu:

1) Install Windows 2000 (with or without slipstreamed SP4), Russian, into qemu, 
onto a 2GB drive. Haven't tried with the English version.

2) Install Mozilla Firefox 1.0, Russan, into Windows 2000, from the following URL:

http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/win32/ru-RU/Firefox Setup 1.0.exe

3) Go to www.google.ru, type anything in the search box and press Enter.

Firefox will crash. I suppose that there is some bug in the CPU emulation.

How can I help debugging this problem further?

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] Firefox crashes inside qemu
  2005-01-02 14:33 [Qemu-devel] Firefox crashes inside qemu Alexander E. Patrakov
@ 2005-01-02 14:56 ` Lennert Buytenhek
  2005-01-02 15:36   ` [Qemu-devel] " Alexander E. Patrakov
  0 siblings, 1 reply; 9+ messages in thread
From: Lennert Buytenhek @ 2005-01-02 14:56 UTC (permalink / raw)
  To: qemu-devel

Privet!

On Sun, Jan 02, 2005 at 07:33:09PM +0500, Alexander E. Patrakov wrote:

> Firefox will crash. I suppose that there is some bug in the CPU emulation.
> 
> How can I help debugging this problem further?

Can you try that disk image on a 'real' machine and see if it crashes
then also?


cheers,
Lennert

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] Re: Firefox crashes inside qemu
  2005-01-02 14:56 ` Lennert Buytenhek
@ 2005-01-02 15:36   ` Alexander E. Patrakov
  2005-01-02 15:57     ` Lennert Buytenhek
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-02 15:36 UTC (permalink / raw)
  To: qemu-devel

Lennert Buytenhek wrote:

> Privet!
> 
> On Sun, Jan 02, 2005 at 07:33:09PM +0500, Alexander E. Patrakov wrote:
> 
>> Firefox will crash. I suppose that there is some bug in the CPU
>> emulation.
>> 
>> How can I help debugging this problem further?
> 
> Can you try that disk image on a 'real' machine and see if it crashes
> then also?

I instaled win2k from the same CD to a real computer. Firefox downloaded
from the same URL doesn't crash under the same condition. But how do I test
a qemu image on a real machine?

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] Re: Firefox crashes inside qemu
  2005-01-02 15:36   ` [Qemu-devel] " Alexander E. Patrakov
@ 2005-01-02 15:57     ` Lennert Buytenhek
  2005-01-02 16:45       ` [Qemu-devel] " Alexander E. Patrakov
  0 siblings, 1 reply; 9+ messages in thread
From: Lennert Buytenhek @ 2005-01-02 15:57 UTC (permalink / raw)
  To: qemu-devel

On Sun, Jan 02, 2005 at 08:36:30PM +0500, Alexander E. Patrakov wrote:

> >> Firefox will crash. I suppose that there is some bug in the CPU
> >> emulation.
> >> 
> >> How can I help debugging this problem further?
> > 
> > Can you try that disk image on a 'real' machine and see if it crashes
> > then also?
> 
> I instaled win2k from the same CD to a real computer. Firefox downloaded
> from the same URL doesn't crash under the same condition.

There are many different factors in both scenarios besides that one of
them uses qemu and the other one does not: disk size, video card, network
card, etc.


> But how do I test a qemu image on a real machine?

I would just dd it to an old IDE disk, even though that might give issues
with differing head/sector counts.

	dd if=disk.img of=/dev/hdx bs=1024k

(Where /dev/hdx is the old IDE disk.)


--L

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] Re: Re: Firefox crashes inside qemu
  2005-01-02 15:57     ` Lennert Buytenhek
@ 2005-01-02 16:45       ` Alexander E. Patrakov
  2005-01-03  7:16         ` Alexander E. Patrakov
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-02 16:45 UTC (permalink / raw)
  To: qemu-devel

Lennert Buytenhek wrote:

> On Sun, Jan 02, 2005 at 08:36:30PM +0500, Alexander E. Patrakov wrote:
> 
>> >> Firefox will crash. I suppose that there is some bug in the CPU
>> >> emulation.
>> >> 
>> >> How can I help debugging this problem further?
>> > 
>> > Can you try that disk image on a 'real' machine and see if it crashes
>> > then also?
>> 
>> I instaled win2k from the same CD to a real computer. Firefox downloaded
>> from the same URL doesn't crash under the same condition.
> 
> There are many different factors in both scenarios besides that one of
> them uses qemu and the other one does not: disk size, video card, network
> card, etc.
> 
> 
>> But how do I test a qemu image on a real machine?
> 
> I would just dd it to an old IDE disk, even though that might give issues
> with differing head/sector counts.
> 
> dd if=disk.img of=/dev/hdx bs=1024k
> 
> (Where /dev/hdx is the old IDE disk.)

I see. The problem is that I don't have any old IDE disk at hand. But I will
dd that into VMware tomorrow in order to see if the installation is really
bad. As for the geometry, the doc at
http://linux-ntfs.sourceforge.net/ntfs/files/boot.html is known sufficient
for fixing such issues.

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] Re: Re: Firefox crashes inside qemu
  2005-01-02 16:45       ` [Qemu-devel] " Alexander E. Patrakov
@ 2005-01-03  7:16         ` Alexander E. Patrakov
  2005-01-03 14:28           ` Lennert Buytenhek
  0 siblings, 1 reply; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-03  7:16 UTC (permalink / raw)
  To: qemu-devel

Alexander E. Patrakov wrote:

> Lennert Buytenhek wrote:
> 
>> On Sun, Jan 02, 2005 at 08:36:30PM +0500, Alexander E. Patrakov wrote:
>> 
>>> >> Firefox will crash. I suppose that there is some bug in the CPU
>>> >> emulation.
>>> >> 
>>> >> How can I help debugging this problem further?
>>> > 
>>> > Can you try that disk image on a 'real' machine and see if it crashes
>>> > then also?
>>> 
>>> I instaled win2k from the same CD to a real computer. Firefox downloaded
>>> from the same URL doesn't crash under the same condition.
>> 
>> There are many different factors in both scenarios besides that one of
>> them uses qemu and the other one does not: disk size, video card, network
>> card, etc.
>> 
>> 
>>> But how do I test a qemu image on a real machine?
>> 
>> I would just dd it to an old IDE disk, even though that might give issues
>> with differing head/sector counts.
>> 
>> dd if=disk.img of=/dev/hdx bs=1024k
>> 
>> (Where /dev/hdx is the old IDE disk.)
> 
> I see. The problem is that I don't have any old IDE disk at hand. But I
> will dd that into VMware tomorrow in order to see if the installation is
> really bad. As for the geometry, the doc at
> http://linux-ntfs.sourceforge.net/ntfs/files/boot.html is known sufficient
> for fixing such issues.
> 

After changing the IDE driver to "generic dual-channel" (in order to avoid
"inaccessible boot device" blue screen) and dd'ing the disk image into
VMware (using Knoppix and ssh to the host), Firefox doesn't crash. So the
problem is indeed in qemu.

I also had private mail conversation with marc, who suggested to try his
"interp" patch. Since qemu cannot boot win2k with this patch, I had to boot
win2k with the regular qemu, savevm, loadvm into patched qemu and only then
start Firefox. It then crashed as described in the first mail in this
thread.

I hope this information is useful.

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] Re: Re: Firefox crashes inside qemu
  2005-01-03  7:16         ` Alexander E. Patrakov
@ 2005-01-03 14:28           ` Lennert Buytenhek
  2005-01-03 14:53             ` [Qemu-devel] " Alexander E. Patrakov
  2005-01-03 15:16             ` [Qemu-devel] " Alexander E. Patrakov
  0 siblings, 2 replies; 9+ messages in thread
From: Lennert Buytenhek @ 2005-01-03 14:28 UTC (permalink / raw)
  To: qemu-devel

On Mon, Jan 03, 2005 at 12:16:47PM +0500, Alexander E. Patrakov wrote:

> >>> >> Firefox will crash. I suppose that there is some bug in the CPU
> >>> >> emulation.
> >>> >> 
> >>> >> How can I help debugging this problem further?
> >>> > 
> >>> > Can you try that disk image on a 'real' machine and see if it crashes
> >>> > then also?
> >>> 
> >>> I instaled win2k from the same CD to a real computer. Firefox downloaded
> >>> from the same URL doesn't crash under the same condition.
> >> 
> >> There are many different factors in both scenarios besides that one of
> >> them uses qemu and the other one does not: disk size, video card, network
> >> card, etc.
> >> 
> >>> But how do I test a qemu image on a real machine?
> >> 
> >> I would just dd it to an old IDE disk, even though that might give issues
> >> with differing head/sector counts.
> >> 
> >> dd if=disk.img of=/dev/hdx bs=1024k
> >> 
> >> (Where /dev/hdx is the old IDE disk.)
> > 
> > I see. The problem is that I don't have any old IDE disk at hand. But I
> > will dd that into VMware tomorrow in order to see if the installation is
> > really bad. As for the geometry, the doc at
> > http://linux-ntfs.sourceforge.net/ntfs/files/boot.html is known sufficient
> > for fixing such issues.
> 
> After changing the IDE driver to "generic dual-channel" (in order to avoid
> "inaccessible boot device" blue screen) and dd'ing the disk image into
> VMware (using Knoppix and ssh to the host), Firefox doesn't crash. So the
> problem is indeed in qemu.

Does VMware use the same virtual ethernet and video card types as qemu
does?  It might still be that qemu triggers a bug in Windows' handling
of some kind of peripheral that doesn't show up when using VMware.

Do you have any Windows debuggers?  Can you hook Firefox up to a debugger
and see where exactly it crashes?


> I hope this information is useful.

Even though I probably won't be able to debug this myself, this is
definitely a useful datapoint.  Thanks!


cheers,
Lennert

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] Re: Re: Re: Firefox crashes inside qemu
  2005-01-03 14:28           ` Lennert Buytenhek
@ 2005-01-03 14:53             ` Alexander E. Patrakov
  2005-01-03 15:16             ` [Qemu-devel] " Alexander E. Patrakov
  1 sibling, 0 replies; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-03 14:53 UTC (permalink / raw)
  To: qemu-devel

Lennert Buytenhek wrote:

> Does VMware use the same virtual ethernet and video card types as qemu
> does?  It might still be that qemu triggers a bug in Windows' handling
> of some kind of peripheral that doesn't show up when using VMware.

No, but the real PC installed from the same CD uses a Realtek 8029 network
card and Firefox doesn't crash there. So I think one can exclude the
network card as a factor. A video card can be also excluded because the bug
exists also when the -std-vga switch is given.

> Do you have any Windows debuggers?  Can you hook Firefox up to a debugger
> and see where exactly it crashes?

Will try Borland Debugger that comes with Delphi 5 and report here if it
finds anything.

-- 
Alexander E. Patrakov

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] Re: Firefox crashes inside qemu
  2005-01-03 14:28           ` Lennert Buytenhek
  2005-01-03 14:53             ` [Qemu-devel] " Alexander E. Patrakov
@ 2005-01-03 15:16             ` Alexander E. Patrakov
  1 sibling, 0 replies; 9+ messages in thread
From: Alexander E. Patrakov @ 2005-01-03 15:16 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

Lennert Buytenhek wrote:

> Do you have any Windows debuggers?  Can you hook Firefox up to a debugger
> and see where exactly it crashes?

I think that even DrWatson's report in the event log can be utilized here
(attached). Sorry, it's in Russian. If you want me to reproduce this with
English version of Windows 2000, please let me know.

The log, however, clearly mentions ntdll!DbgBreakPoint and "internal
breakpoint" :(

-- 
Alexander E. Patrakov

[-- Attachment #2: crash2.txt.gz --]
[-- Type: application/x-gzip, Size: 6285 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-03 15:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-02 14:33 [Qemu-devel] Firefox crashes inside qemu Alexander E. Patrakov
2005-01-02 14:56 ` Lennert Buytenhek
2005-01-02 15:36   ` [Qemu-devel] " Alexander E. Patrakov
2005-01-02 15:57     ` Lennert Buytenhek
2005-01-02 16:45       ` [Qemu-devel] " Alexander E. Patrakov
2005-01-03  7:16         ` Alexander E. Patrakov
2005-01-03 14:28           ` Lennert Buytenhek
2005-01-03 14:53             ` [Qemu-devel] " Alexander E. Patrakov
2005-01-03 15:16             ` [Qemu-devel] " Alexander E. Patrakov

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).