Bug#494167: xvfb: crashes due to dbus/hal problems
Hi Brad,
sorry for only replying a year later...
On Thu, Aug 7, 2008 at 11:15:25 -0400, Brad King wrote:
> I run tests of a project that needs an X server on a nightly basis. For
> years I've been running them off-screen using Xvfb. I start an
> instance:
>
> Xvfb :52 -screen 0 1024x768x24 -fbdir /tmp/xvfb.52 -ac
>
> and then run tests with "DISPLAY=:52". Recently I updated my debian
> testing system and the server has started crashing regularly after a few
> hundred tests have run. I tried building the version of the code being
> tested to a time before this problem started but it didn't help.
> Unfortunately I've been unable to reproduce the crash except by running
> all the tests (and eventually one crashes Xvfb but which one is not
> repeatable). However, I've localized the problem somewhat.
>
> The Xvfb process reports a bunch of these messages (about 1 per test):
>
> ----------------------------------------------------------------------
> FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
> ----------------------------------------------------------------------
This message used to appear on server reset, and is not an issue.
> Later it reports a few messages of this form:
>
> ----------------------------------------------------------------------
> [config/hal] couldn't initialise context: org.freedesktop.DBus.Error.LimitsExceeded (Connection ":1.20" is not allowed to add more match rules (increase limits in configuration file if required))
> ----------------------------------------------------------------------
>
> and then crashes. If I stop the dbus daemon (/etc/init.d/dbus stop) the
> crash does not occur. I found some discussion about this error here:
>
> http://www.nabble.com/org.freedesktop.DBus.Error.LimitsExceeded-td17000158.html
>
> but didn't see much about fixing it.
I tried to reproduce this with Xvfb 1.7.0 (the latest upstream version).
I ran 'Xvfb :1' and 'for i in `seq 200`; do DISPLAY=:1 xterm -e sleep
1', and sure enough after some time I get this:
[config/hal] couldn't add match rule: org.freedesktop.DBus.Error.LimitsExceeded (Connection ":1.1255" is not allowed to add more match rules (increase limits in configuration file if required))
[config/hal] cannot detect a HAL startup.
Xvfb doesn't crash in this version, though, which is an improvement.
In 1.6.x, Xvfb is plagued by bug#529927, so it crashes before the dbus
connection limit is reached.
Cheers,
Julien
Reply to: