ZTE MF683

Aleksander Morgado aleksander at lanedo.com
Wed Sep 26 08:21:40 PDT 2012


>> > (gdb) start
>> > Temporary breakpoint 1 at 0x14650: file qmicli.c, line 470.
>> > 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=0xbed36d74) at qmicli.c:470
>> > 470     qmicli.c: No such file or directory.
>> > (gdb) break qmi_utils_read_guint8_from_buffer
>> > Breakpoint 2 at 0x401635f8: file qmi-utils.c, line 69.
>> > (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.
>> > [New Thread 0x40ddb470 (LWP 472)]
>> > 
>> > Breakpoint 2, qmi_utils_read_guint8_from_buffer (buffer=0xbed36ae5,
>> >     buffer_size=0xbed36ae5, out=0xbed36ae6 "\002") at qmi-utils.c:69
>> > 69      qmi-utils.c: No such file or directory.
>> > (gdb) print *buffer_size
>> > $1 = 512
>> > (gdb) continue
>> > Continuing.
>> > 
>> > Breakpoint 2, qmi_utils_read_guint8_from_buffer (buffer=0xbed36ae8,
>> >     buffer_size=0xbed36ae6, out=0xbed36ae5 "\003\001") at qmi-utils.c:69
>> > 69      in qmi-utils.c
>> > (gdb) print *buffer_size
>> > $2 = 1
>> > (gdb) continue
>> > Continuing.
>> > 
>> > Breakpoint 2, qmi_utils_read_guint8_from_buffer (buffer=0x39ac0,
>> >     buffer_size=0x40388, out=0x40376000 "\260N\021") at qmi-utils.c:69
>> > 69      in qmi-utils.c
>> > (gdb) print *buffer_size
>> > $3 = 65232
>> > (gdb) continue
>> > Continuing.
>> > 
>> > Breakpoint 2, qmi_utils_read_guint8_from_buffer (buffer=0x39ac0,
>> >     buffer_size=0x40388, out=0x40376000 "\260N\021") at qmi-utils.c:69
>> > 69      in qmi-utils.c
>> > (gdb) print *buffer_size
>> > $4 = 65232
>> > (gdb) continue
>> > Continuing.
>> > **
>> > ERROR:qmi-utils.c:72:qmi_utils_read_guint8_from_buffer: assertion
>> > failed: (*buffer_size >= 1)
>> > [Thread 0x40ddb470 (LWP 472) exited]
>> > 
>> > Program received signal SIGABRT, Aborted.
>> > 0x4049c7cc in raise () from /lib/libc.so.6
>> > (gdb) continue
>> > Continuing.
> None of the buffer_size values printed above make any sense, specially
> the last ones.
> 
> 

Just fixed this in git master, in commit
bf406fdca0b4d1d8973b47461756b66ef9c726ee.

Thanks to Shawn for his tests :-)

-- 
Aleksander


More information about the libqmi-devel mailing list