ZTE MF683
Shawn J. Goff
shawn7400 at gmail.com
Thu Sep 20 07:39:29 PDT 2012
> Oops? if this can be easily triggered, can you run it in the following
> way and get me a backtrace (compile it with -ggdb and -O0 as well)?
>
> sudo gdb --args qmicli --nas-get-signal-strength -d /dev/cdc-wdm1
>
I finally got gdb working on my board. Does this help?
(gdb) start
Temporary breakpoint 1 at 0x13a70: file qmicli.c, line 469.
Starting program: /usr/bin/qmicli --nas-get-signal-strength -d /dev/cdc-wdm1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Temporary breakpoint 1, main (argc=4, argv=0xbed33d74) at qmicli.c:469
469 qmicli.c: No such file or directory.
(gdb) continue
Continuing.
[New Thread 0x40df8470 (LWP 450)]
**
ERROR:qmi-utils.c:72:qmi_utils_read_guint8_from_buffer: assertion
failed: (*buffer_size >= 1)
Program received signal SIGABRT, Aborted.
0x404f47cc in raise () from /lib/libc.so.6
(gdb) bt
#0 0x404f47cc in raise () from /lib/libc.so.6
#1 0x404f5c54 in abort () from /lib/libc.so.6
#2 0x404f5c54 in abort () from /lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) start
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) continue
Continuing.
[Thread 0x40df8470 (LWP 450) exited]
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) start
Temporary breakpoint 2 at 0x13a70: file qmicli.c, line 469.
Starting program: /usr/bin/qmicli --nas-get-signal-strength -d /dev/cdc-wdm1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Temporary breakpoint 2, main (argc=4, argv=0xbeb79d74) at qmicli.c:469
469 in qmicli.c
(gdb) break qmi_utils_read_guint8_from_buffer
Breakpoint 3 at 0x40183748: file qmi-utils.c, line 69.
(gdb) continue
Continuing.
[New Thread 0x40dbc470 (LWP 452)]
Breakpoint 3, qmi_utils_read_guint8_from_buffer (buffer=0xbeb79ae4,
buffer_size=0xbeb79ae8, out=0xbeb79aee "") at qmi-utils.c:69
69 qmi-utils.c: No such file or directory.
(gdb) bt
#0 qmi_utils_read_guint8_from_buffer (buffer=0xbeb79ae4,
buffer_size=0xbeb79ae8, out=0xbeb79aee "") at qmi-utils.c:69
#1 0x4018aecc in qmi_message_ctl_allocate_cid_response_parse (
message=<optimized out>, error=0xbeb79b1c) at qmi-ctl.c:1641
#2 0x4018afc4 in allocate_cid_ready (device=<optimized out>,
res=<optimized out>, simple=0x2e448) at qmi-ctl.c:3939
#3 0x402a11d4 in g_simple_async_result_complete ()
from /usr/lib/libgio-2.0.so.0
#4 0x402a1220 in ?? () from /usr/lib/libgio-2.0.so.0
Cannot access memory at address 0x0
#5 0x402a1220 in ?? () from /usr/lib/libgio-2.0.so.0
Cannot access memory at address 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
More information about the libqmi-devel
mailing list