GNOME Bugzilla – Bug 399147
crash in Sound:
Last modified: 2007-01-23 10:29:19 UTC
Version: 2.16.2 What were you doing when the application crashed? Distribution: Gentoo Base System version 1.12.6 Gnome Release: 2.16.2 2007-01-16 (Gentoo) BugBuddy Version: 2.16.0 Memory status: size: 19984384 vsize: 0 resident: 19984384 share: 0 rss: 10944512 rss_rlim: 0 CPU usage: start_time: 1169414113 rtime: 0 utime: 87 stime: 0 cutime:78 cstime: 0 timeout: 9 it_real_value: 0 frequency: 10 Backtrace was generated from '/usr/bin/gnome-sound-properties' (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) `system-supplied DSO at 0xb7fe4000' has disappeared; keeping its symbols. (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1225935184 (LWP 12109)] 0xb7fe4410 in __kernel_vsyscall ()
+ Trace 104107
Thread 1 (Thread -1225935184 (LWP 12109))
Ups, sorry... in ends up in the bugtracking system. Wow. Cool . Well I was just starting the control center. I'm recompiling the control center then the gnomeui with -g3 -ggdb right now and then try it again. ;) Best regards, Dirk.
It says it crashed in sound-properties-capplet.c:458. I'm not able to inspect any variables right now, -O1 was apparently still too optimistic. I'll update you guys in about 16h.
471 libhal_ctx_set_dbus_connection (ctx, connection); 472 473 libhal_ctx_init (ctx, &error); 474 475 devices = libhal_find_device_by_capability (ctx, "alsa", &num, &error); 476 477 for (i = 0; i < num; i++) { 478 device_added_callback (ctx, devices[i]); 479 } On line 477 'error' and 'devices' look for me like: (gdb) print error $8 = {name = 0x80d0260 "org.freedesktop.DBus.Error.ServiceUnknown", message = 0x8177b68 "The name org.freedesktop.Hal was not provided by any .service files", dummy1 = 0, dummy2 = 0, dummy3 = 0, dummy4 = 0, dummy5 = 1, padding1 = 0xbf8f8928} (gdb) print devices $9 = (char **) 0x0 For some weird reason this time (-O0) I do not get a segmentation fault. dirk@localhost ~ $ gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. OS: Linux/Gentoo. Software was this time compiled with: FEATURES="nostrip keepwork test" USE="debug -gps" CFLAGS="-march=pentium-m -O0 -pipe -mfpmath=sse -msse2 -g3 -ggdb" emerge gnome-base/control-center gnome-base/libgnomeui Previously with: FEATURES="nostrip keeptemp keepwork noclean test" USE="debug -gps" CFLAGS="-march=pentium-m -O1 -pipe -mfpmath=sse -msse2 -g3 -ggdb" emerge gnome-base/control-center gnome-base/libgnomeui And before with a normal emerge. I have the following settings in make.conf: CFLAGS="-march=pentium-m -O2 -pipe -mfpmath=sse -msse2 " CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="" ACCEPT_KEYWORDS=""
Thanks for your bug report. Can you try a more recent version? Code has been added after 2.16.2 to properly check for errors returned, and I suspect those will fix your problem.
After digging around for a bit, this looks indeed like a duplicate of bug 363005. Please reopen if you find this is not the case. There's also a patch over there you can check out. *** This bug has been marked as a duplicate of 363005 ***
The patch #79410 worked quite well. The Gentoo-docs also mentioned hald should be started. Sorry for this. All the missing features work now, too. ;)