Reproducable data corruption on xen-unstable
With the xen-unstable snapshot from today (and also the fedora-patched one from the 25th) I am seeing lots of display corruption, weird behaviour and crashes and hangs in X. Here is a reproducable test case (non-deterministic, but it fails every time for me) for crashing or incorrect behaviour, in case this is useful:
Note when I say "crashes", I'm referring to userspace crashes.
To reproduce:
1. Boot into Fedora Core 3 under Xen (see http://www.fedoraproject.org/wiki/FedoraXenQuickstart ) [not sure if this is necessary]
2. Disable X acceleration in Xorg.conf [not sure if this is necessary]
3. Download http://www.greenrd.org/sw/fptest/ which should be 100% deterministic, but running under Xen-unstable, it isn't. It reads no input, and just does lots of floating point tests.
4. Build it with ./build
5. Start up a Konsole and run ./test to run the test 100 times.
- Note it will NOT fail if you are using an xterm (presumably because they use different rendering techniques, and presumably the technique used by xterm makes this memory corruption or whatever it is much less likely to occur).
Nor will it fail on the console. I haven't tried other terminal emulators.
Expected results: The last test should complete with no errors
Actual results: After a while, one of the test runs either crashes, or detects floating-point errors, or both.
None of the anomalous behaviour occurs under the same Fedora-patched kernel when it is not compiled for Xen.
Signature · 8 lines
Robin ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 3 lines · Robin Green
With the xen-unstable snapshot from today (and also the fedora-patched one from the 25th) I am seeing lots of display corruption, weird behaviour and crashes and hangs in X.
I'll:
1) upgrade Fedora rawhide to the latest xen-unstable code 2) apply the AGP patch ;)
I will let the list know when a new Fedora package with these changes is available.
Signature · 10 lines
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 8 lines · Rik van Riel
Quoted 3 lines · Robin Green
With the xen-unstable snapshot from today (and also the fedora-patched one from the 25th) I am seeing lots of display corruption, weird behaviour and crashes and hangs in X.
I'll:
1) upgrade Fedora rawhide to the latest xen-unstable code 2) apply the AGP patch ;)
I was under the impression that the Xorg server I'm using (savage) doesn't use AGP yet, at least not in the release that's in FC3. Er, how exactly do I tell if it's using AGP?
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 2 lines · Robin Green
I was under the impression that the Xorg server I'm using (savage) doesn't use AGP yet, at least not in the release that's in FC3. Er, how exactly do I tell if it's using AGP?
Tonight's rawhide kernel (2.6.10-1.1120_FC4) has the Xen agpgart patch, as well as last night's xen-unstable source tree. Could you please try reproducing the bug with the latest kernel ?
Signature · 10 lines
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Quoted 9 lines · Rik van Riel
Quoted 2 lines · Robin Green
I was under the impression that the Xorg server I'm using (savage) doesn't use AGP yet, at least not in the release that's in FC3. Er, how exactly do I tell if it's using AGP?
Tonight's rawhide kernel (2.6.10-1.1120_FC4) has the Xen agpgart patch, as well as last night's xen-unstable source tree. Could you please try reproducing the bug with the latest kernel ?
It is reproducable still. Latest xen also.
I also rebuilt 2.6.10-1.1121_FC4 without any AGP options enabled, and it is still reproducable.
And whether savage or vesa X server is used, or whether NoAccel is on or off, it still occurs. (However, the konsole window should be quite tall or it may not occur - mine is 800 pixels [44 lines] high.)
I also found that
su -c 'renice 19 /sbin/pidof X'
makes the probability of the bug occuring higher. Counterintuitive, maybe, but true.
If no-one else can reproduce it, I can attempt to put some assertions in the paranoia.c code to determine if this is main memory corruption or register corruption. (I suspect the latter.) Let me know if you want me to try this.
Just to reiterate, no this is not hardware error, because it does not occur outside of Xen :)
Could this possibly be related to the other bug I found, the "APIC error
on CPU0"? That interrupt handler may be still operating, for all I know - my patch doesn't _disable_ it, it just shuts it up.
Signature · 8 lines
Robin ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl