On Mon, Jul 03, 2006 at 02:43:53PM +0100, Sam Morris wrote:

> > A second one runs fine.
> 
> Ok, can you get a stack trace of the crashing applet? I'm attaching a
> package that includes debugging symbols (if you want to compile your own
> instead, invoke 'debian/rules binary DEB_BUILD_OPTIONS=noopt,nostrip').

I have amd64 machines, so I have rebuilt the package myself. The result:

(sensors-applet:10249): Sensors Applet-DEBUG: creating new active sensor
(sensors-applet:10249): Sensors Applet-DEBUG: setting num samples to: 0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47563759517168 (LWP 10249)]
0x0000000000407194 in active_sensor_update (active_sensor=0x6f2490, 
sensors_applet=0x5d8a20) at active-sensor.c:564
564                             if ((sensor_value_range(sensor_value, 
sensor_low_value, sensor_high_value) != 
sensor_value_range(active_sensor->sensor_values[0], 
active_sensor->sensor_low_value, active_sensor->sensor_high_value)) || 
!(active_sensor->updated)) {
(gdb) bt full 6
#0  0x0000000000407194 in active_sensor_update (active_sensor=0x6f2490, 
sensors_applet=0x5d8a20) at active-sensor.c:564
        model = <value optimized out>
        iter = {stamp = -2142798167, user_data = 0x628e40, user_data2 = 0x0, 
user_data3 = 0x0}
        path = (GtkTreePath *) 0x706aa0
        sensor_path = (gchar *) 0x706b70 "sensor://it8712-isa-0290/51"
        sensor_id = (gchar *) 0x706b20 "M/B Temp"
        sensor_label = (gchar *) 0x706ba0 "M/B Temp"
        sensor_type = TEMP_SENSOR
        sensor_interface = LIBSENSORS
        sensor_enabled = 1
        sensor_low_value = 20
        sensor_high_value = 60
        sensor_alarm_enabled = <value optimized out>
        sensor_multiplier = 1
        sensor_offset = 0
        sensor_value = 298
        icon_pixbuf = <value optimized out>
        graph_color = <value optimized out>
        value_text = (gchar *) 0x706ca0 "298"
        scale = <value optimized out>
        error = (GError *) 0x0
        tooltip = (gchar *) 0x5e8540 "M/B Temp 298"
        __PRETTY_FUNCTION__ = "active_sensor_update"
#1  0x000000000040cbb5 in sensors_applet_sensor_enabled 
(sensors_applet=0x5d8a20, path=<value optimized out>) at sensors-applet.c:1004
        active_sensor = (ActiveSensor *) 0x7068e0
        __PRETTY_FUNCTION__ = "sensors_applet_sensor_enabled"
#2  0x000000000040d323 in sensors_applet_add_sensor_full_details 
(sensors_applet=0x5d8a20, path=0x6edcc0 "sensor://it8712-isa-0290/51",
    id=0x5edae0 "M/B Temp", label=0x5edae0 "M/B Temp", interface=LIBSENSORS, 
type=TEMP_SENSOR, enable=1, low_value=20, high_value=60, alarm_enable=0,
    alarm_command=0x412ff1 "", alarm_timeout=0, multiplier=1, offset=0, 
icon_type=CPU_ICON, graph_color=0x411f24 "#ff0000") at sensors-applet.c:907
        interfaces_iter = {stamp = -2142798167, user_data = 0x52c660, 
user_data2 = 0x0, user_data3 = 0x0}
        sensors_iter = {stamp = -2142798167, user_data = 0x628e40, user_data2 = 
0x0, user_data3 = 0x0}
        not_empty_tree = <value optimized out>
        node_interface = 7
        not_end_of_interfaces = <value optimized out>
        not_end_of_sensors = <value optimized out>
        sensor_id = (gchar *) 0x6f3310 ""
        icon = <value optimized out>
        tree_path = (GtkTreePath *) 0x6edca0
        __PRETTY_FUNCTION__ = "sensors_applet_add_sensor_full_details"
#3  0x000000000040d4ac in sensors_applet_add_sensor (sensors_applet=0x7068e0, 
path=0x6edcc0 "sensor://it8712-isa-0290/51",
    id=0x1c <Address 0x1c out of bounds>, label=0x1 <Address 0x1 out of 
bounds>, interface=4278124287, enable=<value optimized out>, type=1223419880,
    icon_type=CPU_ICON) at sensors-applet.c:959
        low_value = 0
        high_value = 3.0604876669010184e-317
        __PRETTY_FUNCTION__ = "sensors_applet_add_sensor"
#4  0x0000000000410b4f in libsensors_sensors_interface_init 
(sensors_applet=0x5d8a20) at libsensors-sensors-interface.c:225
        visible = 1
        icon = CPU_ICON
        url = (gchar *) 0x710420 ""
        __PRETTY_FUNCTION__ = "libsensors_sensors_interface_init"
#5  0x000000000040c7c9 in sensors_applet_init (sensors_applet=0x5d8a20) at 
sensors-applet.c:1167
        __PRETTY_FUNCTION__ = "sensors_applet_init"
(More stack frames follow...)
(gdb) print *active_sensor
$1 = {sensors_applet = 0x5d8a20, label = 0x701840, icon = 0x705810, value = 
0x701920, graph = 0x704880, graph_frame = 0x568ca0,
  label_event_box = 0x568310, icon_event_box = 0x568430, value_event_box = 
0x5683a0, graph_event_box = 0x5684c0, graph_color = {pixel = 0, red = 0,
    green = 0, blue = 0}, sensor_row = 0x6f2400, notification = 0x0, updated = 
0, alarm_timeout_id = -1, alarm_command = 0x0, alarm_timeout = 0,
  sensor_values = 0x0, num_samples = 0, sensor_low_value = 0, sensor_high_value 
= 0}
(gdb) print *sensors_applet
$2 = {applet = 0x5bd000, size = 0, sensors = 0x5c1e70, selection = 0x0, 
get_sensor_value = {0, 0x40ece0 <acpi_sensors_interface_get_sensor_value>,
    0x40fed0 <hddtemp_sensors_interface_get_sensor_value>, 0, 0, 0, 0, 0x410c30 
<libsensors_sensors_interface_get_sensor_value>, 0, 0, 0, 0},
  timeout_id = 0, prefs_dialog = 0x0, table = 0x0, active_sensors = 0x0, 
tooltips = 0x0}

I guess it crashes when trying to evaluate active_sensor->sensor_values[0], 
because sensor_values is a NULL pointer.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to