Package: xfce4-sensors-plugin Version: 0.10.99.6-1 Followup-For: Bug #519181
Sorry for my incompetence, but I've never used 'gdb' before. I made an attempt to get an interactive 'gdb' session to run from the script called by my modified *.desktop file, and it seems to have paid off. This is the script called from the *.desktop file: #!/bin/sh xfce4-terminal -x gdb --args /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin $@ I have attached the relevant part of the 'gdb' session, with a similar backtrace to what I've already posted in this thread, and with some more valuable information following that from running 'where' in 'gdb'. HTH, Dave W. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (350, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28-2s13073.090316.desktop.uvesafb (SMP w/2 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xfce4-sensors-plugin depends on: ii libatk1.0-0 1.24.0-2 The ATK accessibility toolkit ii libc6 2.9-6 GNU C Library: Shared libraries ii libcairo2 1.8.6-2+b1 The Cairo 2D vector graphics libra ii libfontconfig1 2.6.0-3 generic font configuration library ii libfreetype6 2.3.9-4 FreeType 2 font engine, shared lib ii libglib2.0-0 2.20.0-1 The GLib library of C routines ii libgtk2.0-0 2.14.7-4+b1 The GTK+ graphical user interface ii libpango1.0-0 1.22.4-2 Layout and rendering of internatio ii libsensors4 1:3.1.0-2 library to read temperature/voltag ii libxfce4util4 4.4.2-3 Utility functions library for Xfce ii libxfcegui4-4 4.4.2-4 Basic GUI C functions for Xfce4 ii xfce4-panel 4.4.2-6 The Xfce4 desktop environment pane Versions of packages xfce4-sensors-plugin recommends: ii hddtemp 0.3-beta15-45 hard drive temperature monitoring ii lm-sensors 1:3.1.0-2 utilities to read temperature/volt Versions of packages xfce4-sensors-plugin suggests: pn xsensors <none> (no description available) -- no debconf information
(gdb) r Starting program: /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin socket_id=16794641 name=xfce4-sensors-plugin-gdb id=12374222572 display_name=Sensor plugin \(gdb\) size=32 screen_position=11 [Thread debugging using libthread_db enabled] [New Thread 0x7f7e70acf7d0 (LWP 6840)] *** glibc detected *** /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin: free(): invalid pointer: 0x0000000000795d60 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f7e704fb1b8] /lib/libc.so.6(cfree+0x76)[0x7f7e704fccf6] /usr/lib/xfce4/modules/libxfce4sensors.so.1(get_hddtemp_value+0x282)[0x7f7e707e3e6c] /usr/lib/xfce4/modules/libxfce4sensors.so.1(remove_unmonitored_drives+0x4c)[0x7f7e707e3821] /usr/lib/xfce4/modules/libxfce4sensors.so.1(initialize_hddtemp+0x1a1)[0x7f7e707e3bae] /usr/lib/xfce4/modules/libxfce4sensors.so.1(initialize_all+0x45)[0x7f7e707e03e9] /usr/lib/xfce4/modules/libxfce4sensors.so.1(sensors_new+0x5f)[0x7f7e707e16ab] /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin[0x4073a2] /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin[0x407445] /usr/lib/libxfce4panel.so.1[0x7f7e7027fdf9] /usr/lib/libgtk-x11-2.0.so.0[0x7f7e6fb678a8] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7f7e6ee8011d] /usr/lib/libgobject-2.0.so.0[0x7f7e6ee93bc8] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x66d)[0x7f7e6ee94ebd] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f7e6ee95503] /usr/lib/libgtk-x11-2.0.so.0[0x7f7e6fc6a62e] /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x341)[0x7f7e6fb61391] /usr/lib/libgdk-x11-2.0.so.0[0x7f7e6f5d5ffc] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24a)[0x7f7e6ebe8e4a] /usr/lib/libglib-2.0.so.0[0x7f7e6ebec510] /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7f7e6ebec9dd] /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7f7e6fb61747] /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin[0x407689] /lib/libc.so.6(__libc_start_main+0xe6)[0x7f7e704a75a6] /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin[0x4036e9] ======= Memory map: ======== 00400000-00409000 r-xp 00000000 08:0a 296390 /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin 00608000-00609000 rw-p 00008000 08:0a 296390 /usr/lib/xfce4-sensors-plugin/xfce4/panel-plugins/xfce4-sensors-plugin 00791000-00859000 rw-p 00791000 00:00 0 [heap] 7f7e64000000-7f7e64021000 rw-p 7f7e64000000 00:00 0 7f7e64021000-7f7e68000000 ---p 7f7e64021000 00:00 0 7f7e68b46000-7f7e68b5c000 r-xp 00000000 08:0a 537593 /lib/libgcc_s.so.1 7f7e68b5c000-7f7e68d5c000 ---p 00016000 08:0a 537593 /lib/libgcc_s.so.1 7f7e68d5c000-7f7e68d5d000 rw-p 00016000 08:0a 537593 /lib/libgcc_s.so.1 7f7e68d5d000-7f7e68d66000 r-xp 00000000 08:0a 197524 /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so 7f7e68d66000-7f7e68f65000 ---p 00009000 08:0a 197524 /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so 7f7e68f65000-7f7e68f66000 rw-p 00008000 08:0a 197524 /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so 7f7e68f66000-7f7e68f71000 r-xp 00000000 08:0a 1449749 /lib/libnss_files-2.9.so 7f7e68f71000-7f7e69170000 ---p 0000b000 08:0a 1449749 /lib/libnss_files-2.9.so 7f7e69170000-7f7e69171000 r--p 0000a000 08:0a 1449749 /lib/libnss_files-2.9.so 7f7e69171000-7f7e69172000 rw-p 0000b000 08:0a 1449749 /lib/libnss_files-2.9.so 7f7e69172000-7f7e6917c000 r-xp 00000000 08:0a 1449978 /lib/libnss_nis-2.9.so 7f7e6917c000-7f7e6937b000 ---p 0000a000 08:0a 1449978 /lib/libnss_nis-2.9.so 7f7e6937b000-7f7e6937c000 r--p 00009000 08:0a 1449978 /lib/libnss_nis-2.9.so 7f7e6937c000-7f7e6937d000 rw-p 0000a000 08:0a 1449978 /lib/libnss_nis-2.9.so 7f7e6937d000-7f7e69392000 r-xp 00000000 08:0a 1449979 /lib/libnsl-2.9.so 7f7e69392000-7f7e69591000 ---p 00015000 08:0a 1449979 /lib/libnsl-2.9.so 7f7e69591000-7f7e69592000 r--p 00014000 08:0a 1449979 /lib/libnsl-2.9.so 7f7e69592000-7f7e69593000 rw-p 00015000 08:0a 1449979 /lib/libnsl-2.9.so 7f7e69593000-7f7e69595000 rw-p 7f7e69593000 00:00 0 7f7e69595000-7f7e6959c000 r-xp 00000000 08:0a 1449976 /l Program received signal SIGABRT, Aborted. [Switching to Thread 0x7f7e70acf7d0 (LWP 6840)] 0x00007f7e704bb105 in raise () from /lib/libc.so.6 (gdb) where #0 0x00007f7e704bb105 in raise () from /lib/libc.so.6 #1 0x00007f7e704bc623 in abort () from /lib/libc.so.6 #2 0x00007f7e704f5b18 in ?? () from /lib/libc.so.6 #3 0x00007f7e704fb1b8 in ?? () from /lib/libc.so.6 #4 0x00007f7e704fccf6 in free () from /lib/libc.so.6 #5 0x00007f7e707e3e6c in get_hddtemp_value (disk=0x81a960 "/dev/sda", suppressmessage=0x812944) at hddtemp.c:590 #6 0x00007f7e707e3821 in remove_unmonitored_drives (chip=0x8194d0, suppressmessage=0x812944) at hddtemp.c:304 #7 0x00007f7e707e3bae in initialize_hddtemp (chips=0x7d3830, suppressmessage=0x812944) at hddtemp.c:415 #8 0x00007f7e707e03e9 in initialize_all (chips=0x817950, suppressmessage=0x812944) at middlelayer.c:68 #9 0x00007f7e707e16ab in sensors_new (plugin=0x7dd0b0, plugin_config_file=0x0) at sensors-interface-common.c:55 #10 0x00000000004073a2 in create_sensors_control (plugin=0x7dd0b0) at sensors-plugin.c:1886 #11 0x0000000000407445 in sensors_plugin_construct (plugin=0x7dd0b0) at sensors-plugin.c:1926 #12 0x00007f7e7027fdf9 in _plugin_event_received (win=<value optimized out>, ev=<value optimized out>, plugin=0x7dd0b0) at xfce-panel-external-plugin.c:449 #13 0x00007f7e6fb678a8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 ---Type <return> to continue, or q <return> to quit--- #14 0x00007f7e6ee8011d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #15 0x00007f7e6ee93bc8 in ?? () from /usr/lib/libgobject-2.0.so.0 #16 0x00007f7e6ee94ebd in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #17 0x00007f7e6ee95503 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #18 0x00007f7e6fc6a62e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #19 0x00007f7e6fb61391 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #20 0x00007f7e6f5d5ffc in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #21 0x00007f7e6ebe8e4a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #22 0x00007f7e6ebec510 in ?? () from /usr/lib/libglib-2.0.so.0 #23 0x00007f7e6ebec9dd in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #24 0x00007f7e6fb61747 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #25 0x0000000000407689 in main (argc=9, argv=0x7fff78c026e8) at sensors-plugin.c:1963