After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 399147 - crash in Sound:
crash in Sound:
Status: RESOLVED DUPLICATE of bug 363005
Product: gnome-control-center
Classification: Core
Component: Sound
2.16.x
Other All
: High critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-21 21:20 UTC by dirk
Modified: 2007-01-23 10:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description dirk 2007-01-21 21:20:33 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 ()

Thread 1 (Thread -1225935184 (LWP 12109))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 main
  • #0 __kernel_vsyscall

Comment 1 dirk 2007-01-21 21:24:52 UTC
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.
Comment 2 dirk 2007-01-21 21:52:17 UTC
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.
Comment 3 dirk 2007-01-22 06:04:14 UTC
 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=""
Comment 4 Jens Granseuer 2007-01-22 20:22:03 UTC
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.
Comment 5 Jens Granseuer 2007-01-22 21:07:59 UTC
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 ***
Comment 6 dirk 2007-01-23 10:29:19 UTC
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. ;)