[Bug 351] New: openmoko-panel-gsm segfaults

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Sun Apr 1 14:08:06 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=351

           Summary: openmoko-panel-gsm segfaults
           Product: OpenMoko
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: openmoko-panel-gsmgprs
        AssignedTo: buglog at lists.openmoko.org
        ReportedBy: jluebbe at lasnet.de


The change in r1548 causes a segfault while starting matchbox-panel.

** (matchbox-panel:1566): DEBUG: moko_panel_applet_init
** (matchbox-panel:1566): DEBUG: moko_panel_applet_init
** (matchbox-panel:1566): DEBUG: moko_panel_applet_init

Program received signal SIGSEGV, Segmentation fault.
0x408b76e4 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x408b76e4 in strlen () from /lib/libc.so.6
#1  0x4088a15c in vfprintf () from /lib/libc.so.6
#2  0x408aa64c in vsnprintf () from /lib/libc.so.6
#3  0x40890b64 in snprintf () from /lib/libc.so.6
#4  0x40a1cfc8 in mb_panel_applet_create () from
/usr/lib/matchbox-panel/libopenmoko-panel-gsm.so
#5  0x0000a070 in _start ()

It seem this typo causes the bug:

    applet->gsm_quality = GSM_SIGNAL_ERROR;
    applet->gsm_quality = GPRS_CLOSE;

    snprintf (path, 512, "%s/%s", PKGDATADIR, gsm_q_name[applet->gsm_quality]);

gsm_q_name[GPRS_CLOSE] is not initialized.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the buglog mailing list