Bug#539624: segfaults if the system doesn't have hal

Rogério Brito rbrito at ime.usp.br
Sun Aug 9 10:52:26 UTC 2009


On Aug 09 2009, Rogério Brito wrote:
> I just rebuilt it. The result is attached (did not sleep this night). I
> could delve into the code a little bit, but I'm just way too tired (it
> probably is an obvious null pointer dereference; well, it always is).
> :-)

Well, I couldn't resist and I put an assertion there.

Of course, there was a NULL pointer dereference: the "devices" pointer
is initialized to NULL at the top of the function and can never get
assigned any value (well, this is the case here):

,----
| (...)
| libhal.c 3126 : LibHalContext *ctx is NULL
| rhythmbox: brasero-medium-monitor.c:451: brasero_medium_monitor_init: Assertion `devices != ((void *)0)' failed.
| Aborted
`----


Regards, Rogério Brito.

-- 
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org






More information about the pkg-gnome-maintainers mailing list