OoO En  cette nuit  nuageuse du mercredi  24 décembre 2008,  vers 01:26,
Luca Falavigna <dktrkr...@ubuntu.com> disait :

> pnee applet crashes in various places due to NULL pointer deference:

> (gdb) backtrace
> #0  0xb748532e in xnee_is_type_nr_set (xd=0x8c56558, type=4, nr=21) at 
> xnee_range.c:666
> #1  0xb74863e3 in xnee_set_ranges (xd=0x8c56558) at xnee_range.c:68
> #2  0xb747b890 in xnee_replay_main_loop (xd=0x8c56558, read_mode=20) at 
> xnee_replay.c:280
> #3  0xb7475dfc in xnee_start (xd=0x8c56558) at xnee.c:225
> #4  0x0805233e in ?? ()
> #5  0xb74544ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> #6  0xb73d033e in clone () from /lib/tls/i686/cmov/libc.so.6
> (gdb) list
> 661     int i ; 
> 662   
> 663     for (i=0; i<xrs->type[type].index ;i++)
> 664       {
> 665         if ( xrs->type[type].data[i] == nr )
> 666           {
> 667             return True;
> 668           }
> 669       }
> 670   
> (gdb)

> Upstream fixed this issue with the attached patch.

> Since pnee support has been dropped recently, this patch should help to bring
> it back again. Thank you!

Hi Luca!

Thanks for the patch. I still get segfaults after patching:

#0  0x00000000004057b3 in lookup_widget (widget=0xffffffffffffffff, 
    widget_name=0x40b08b "spinbutton3") at support.c:27
        __inst = (GTypeInstance *) 0xffffffffffffffff
        __r = 0
        parent = (GtkWidget *) 0xffffffffffffffff
        found_widget = <value optimized out>
#1  0x0000000000408bee in pnee_set_events_to_record (
    togglebutton=<value optimized out>, user_data=0x6182c0) at callbacks.c:333
        nr = <value optimized out>
        window = <value optimized out>
        __func__ = "pnee_set_events_to_record"
#2  0x000000000040a78f in pnee_start_recording (
    pnee_applet_in=<value optimized out>) at pnee_impl.c:210
        ret = <value optimized out>
        pa = (pnee_panel_applet *) 0x6182c0
        __func__ = "pnee_start_recording"
#3  0x00007f84122e5fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x00007f841205b5ad in clone () from /lib/libc.so.6
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

I will look a bit at it later.
-- 
BOFH excuse #58:
high pressure system failure

Attachment: pgphQXsErm5Oy.pgp
Description: PGP signature

Reply via email to