Firefox crashes inside qemu
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?
Signature · 1 line
Alexander E. Patrakov
Privet!
Quoted 3 lines · Alexander E. Patrakov
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
Quoted 11 lines · Lennert Buytenhek
Privet!
Quoted 4 lines · Alexander E. Patrakov
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?
Signature · 1 line
Alexander E. Patrakov
Quoted 10 lines · Alexander E. Patrakov
Quoted 7 lines
Quoted 4 lines
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.
Quoted 1 line
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
Quoted 18 lines · Lennert Buytenhek
Quoted 10 lines · Alexander E. Patrakov
Quoted 7 lines
Quoted 4 lines
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.
Quoted 8 lines
Quoted 1 line
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/hdxis 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.
Signature · 1 line
Alexander E. Patrakov
Quoted 27 lines · Alexander E. Patrakov
Quoted 25 lines · Lennert Buytenhek
Quoted 10 lines · Alexander E. Patrakov
Quoted 7 lines
Quoted 4 lines
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.
Quoted 1 line
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
Quoted 8 lines
Quoted 1 line
(Where
/dev/hdxis 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.
Signature · 1 line
Alexander E. Patrakov
Quoted 30 lines · Alexander E. Patrakov
Quoted 22 lines
Quoted 22 lines
Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
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.
Quoted 1 line
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
Quoted 7 lines
Quoted 1 line
(Where
/dev/hdxis 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.
Quoted 4 lines
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?
Quoted 1 line
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
Quoted 3 lines · Lennert Buytenhek
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.
Quoted 2 lines
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.
Signature · 1 line
Alexander E. Patrakov
Quoted 2 lines · Lennert Buytenhek
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" :(
Signature · 1 line
Alexander E. Patrakov