Ticket #351 (closed defect: fixed)
openmoko-panel-gsm segfaults
| Reported by: | jluebbe@… | Owned by: | buglog@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | openmoko-panel-gsmgprs | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
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.

fixed - thanks Jan Luebbe & Daniel Willmann.