GNOME Bugzilla – Bug 348993
cd_cache_new_hal_ctx needs to call libhal_ctx_init
Last modified: 2006-08-15 01:03:47 UTC
What were you doing when the application crashed? I launched it. Distribution: Gentoo Base System version 1.12.1 Gnome Release: 2.15.90 2006-07-26 (Gentoo) BugBuddy Version: 2.15.90 Memory status: size: 172609536 vsize: 0 resident: 172609536 share: 0 rss: 22323200 rss_rlim: 0 CPU usage: start_time: 1154035491 rtime: 0 utime: 122 stime: 0 cutime:116 cstime: 0 timeout: 6 it_real_value: 0 frequency: 8 Backtrace was generated from '/usr/bin/rhythmbox' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1210538320 (LWP 16070)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 69711
Thread 1 (Thread -1210538320 (LWP 16070))
*** Bug 349123 has been marked as a duplicate of this bug. ***
What versions of totem, dbus, and hal are you using?
* media-video/totem Latest version available: 1.5.90-r2 Latest version installed: 1.5.90-r2 * sys-apps/dbus Latest version available: 0.62 Latest version installed: 0.62 * sys-apps/hal Latest version available: 0.5.7-r3 Latest version installed: 0.5.7-r3
I've noticed the problem occurs when there is a CD in a drive. Rhythmbox crashes when I launch it with CD mounted. And with ejected CD, Rhythmbox crashes at the moment when I insert a CD.
any messages printed to standard out before the crash?
smoku@wing ~ $ LANG=POSIX rhythmbox ** (bug-buddy:9781): WARNING **: Couldn't load icon for Dziennik systemowy ** (bug-buddy:9781): WARNING **: Couldn't load icon for Open Folder ** (bug-buddy:9781): WARNING **: Couldn't load icon for Przeglądarka komponentów Bonobo glibtop: This machine has 1 CPUs, 1 are being monitored. smoku@wing ~ $
smoku@wing ~ $ LANG=POSIX rhythmbox NameOwnerChanged org.gnome.Rhythmbox ->:1.68 NameOwnerChanged :1.69 ->:1.69 NameOwnerChanged org.freedesktop.Notifications ->:1.69 NameOwnerChanged org.freedesktop.Notifications :1.69-> NameOwnerChanged :1.69 :1.69-> >>> NOW I INSERTED A CD... IT WAS MOUNTED AND: <<< ** (bug-buddy:10606): WARNING **: Couldn't load icon for Dziennik systemowy ** (bug-buddy:10606): WARNING **: Couldn't load icon for Open Folder ** (bug-buddy:10606): WARNING **: Couldn't load icon for Przeglądarka komponentów Bonobo glibtop: This machine has 1 CPUs, 1 are being monitored. smoku@wing ~ $
*** Bug 351177 has been marked as a duplicate of this bug. ***
Does gentoo build dbus with DBUS_DISABLE_CHECKS by default? I just get a message saying 'Attempt to remove filter function 0xb7b9c8c0 user data 0x95bac30, but no such filter has been added' when I insert a CD.
Created attachment 70835 [details] [review] totem patch totem-disc needs to call libhal_ctx_init(), and probably shouldn't call libhal_ctx_shutdown() when hal context initialization fails, since it only undoes work done by libhal_ctx_init(). This fixes the 'attempt to remove filter..' messages for me, and it should fix the crash. Please test.
Yes. This patch fixed the crash. Many thanks. :-)
OK, reassigning to totem. Thanks for testing it.
bug 350118 is the same one.
Thanks for the patch Jonathan. 2006-08-14 Bastien Nocera <hadess@hadess.net> * src/plparse/totem-disc.c: (cd_cache_new_hal_ctx): Patch from Jonathan Matthew <jonathan@kaolin.wh9.net> to avoid crashing when using HAL to detect a disc type (Closes: #348993)
*** Bug 350118 has been marked as a duplicate of this bug. ***