GNU Xnee: Workaround for Xvfb bug
Saturday, November 29th, 2008 | Free Software, GNU, GNU Xnee, Software, Uncategorized, geek
I have been trying to automate some profiling (with gprof) by running some apps in Xvfb and record/replay with Xnee. Problem is, Xvfb crashes. In order to spot the bug I set up a less complex enviroment
Here’s the set up:
Terminal 1: Xvfb -ac :22
Terminal 2: export DISPLAY=:22 ; while (true) ; do xterm -e sleep 2 ; done
After executing some five or six programs Xvfb crashed. After some purely non scientific investigations it turns out that
- the bug happens less often when I run Xvfb through gdb (see below)
- Xvfb goes down with a seg fault in FreeColormap
Hmmm, colormap….. How about if we lower the colors in Xvfb? Yes, that’s it. Now, let’s move forward. To stress Xvfb a bit more, I have a new setup to test before I go on with Xnee’s automated profile (and coverage of course) tests:
Terminal 1: Xvfb -ac -screen 0 640x480x16 :21
Terminal 2: export DISPLAY=:22 ; while (true) ; do xterm -e sleep 2 ; done
Terminal 2: export DISPLAY=:22 ; while (true) ; do xdpyinfo ; xwininfo -root ; xset r on; done
…. after 1743 program executions I feel I am beginning to see a good enough work around.
And for those interested in the gdb printout, enjoy:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7c2fa10 (LWP 18983)]
0x08156e2b in FreeColormap ()
No comments yet.
Leave a comment
hesa / identi.ca
- hesa: @andreasn Njaej. Kanske verkligheten? Dario Fo 'Fladdermössens by'. Annars säger jag alltid Umberto Eco.
- hesa: @fauno Ask Johan him self: http://www.sociology.gu.se/english/Contact/Staff_A-O/Soderberg_Johan/
- hesa: Very seldom I remove the cables from power cuz bad weather. Tonite I have. Wish I could measure the Lumen and Decibel. Thunder and lightning
Me elsewhere ..
Pages
Links
Categories
- Blogroll (1)
- book (8)
- Coffee (1)
- Copyright (3)
- Copyleft (2)
- datum (2)
- Education (5)
- English (2)
- event (48)
- conference (36)
- Food (1)
- Bread (1)
- Map (1)
- Music (9)
- Musik (16)
- Personal (13)
- Politics (2)
- politik (5)
- Religion (2)
- Software (145)
- Sport (6)
- Stupidities (2)
- Svenska (3)
- Translation (3)
- Uncategorized (18)
![[FSFe Fellow]](http://www.rejas.se/images/fsfe_fellow_badge_small.png)
