Sun 15 Jan 2006 03:14:16 PM UTC, comment #2:
It's exactly the same:
% ./gnokii/gnokii --identify
GNOKII Version 0.6.10
lt-gnokii: pkt.c:55: buffer_expand: Assertion `buf->size >= buf->offs + len' failed.
I rebuilt it with --enable-fulldebug:
% libtool gdb gnokii/gnokii
(gdb) r --identify
Starting program: /usr/local/src/gnokii-0.6.10/gnokii/.libs/lt-gnokii --identify
GNOKII Version 0.6.10
lt-gnokii: pkt.c:55: buffer_expand: Assertion `buf->size >= buf->offs + len' failed.
Program received signal SIGABRT, Aborted.
0xb7cfc7a7 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7cfc7a7 in raise () from /lib/tls/libc.so.6
#1 0xb7cfe04b in abort () from /lib/tls/libc.so.6
#2 0xb7cf5755 in __assert_fail () from /lib/tls/libc.so.6
#3 0xb7e30f8a in buffer_expand (buf=0xbff9ec3c, len=2) at pkt.c:55
#4 0xb7e31411 in pkt_get_uint16 (buf=0xbff9ec3c) at pkt.c:180
#5 0xb7e630a3 in gnapplet_incoming_info (messagetype=1, message=0x8068258 "", length=2, data=0xbff9f3a0, state=0x80600c0) at gnapplet.c:586
#6 0xb7e16f00 in sm_incoming_function (messagetype=1 '\001', message=0x8068258, messagesize=2, state=0x80600c0) at gsm-statemachine.c:127
#7 0xb7e6ab76 in gnbus_rx_statemachine (rx_byte=3 '\003', state=0x80600c0) at gnbus.c:160
#8 0xb7e6ac28 in gnbus_loop (timeout=0xbff9ee48, state=0x80600c0) at gnbus.c:188
#9 0xb7e16d6d in gn_sm_loop (timeout=1, state=0x80600c0) at gsm-statemachine.c:82
#10 0xb7e1731c in __sm_block_timeout (waitfor=1, t=40, data=0xbff9f3a0, state=0x80600c0) at gsm-statemachine.c:240
#11 0xb7e1758b in sm_block_timeout (waitfor=1, t=40, data=0xbff9f3a0, state=0x80600c0) at gsm-statemachine.c:282
#12 0xb7e1761d in sm_block (waitfor=1, data=0xbff9f3a0, state=0x80600c0) at gsm-statemachine.c:292
#13 0xb7e62f14 in gnapplet_get_phone_info (data=0xbff9f3a0, state=0x80600c0) at gnapplet.c:559
#14 0xb7e62f61 in gnapplet_identify (data=0xbff9f3a0, state=0x80600c0) at gnapplet.c:569
#15 0xb7e62e3a in gnapplet_initialise (state=0x80600c0) at gnapplet.c:544
#16 0xb7e62946 in gnapplet_functions (op=GN_OP_Init, data=0x0, state=0x80600c0) at gnapplet.c:424
#17 0xb7e1626f in register_driver (driver=0xb7e90560, model=0x80600c4 "series60", setupmodel=0x0, sm=0x80600c0) at gsm-api.c:114
#18 0xb7e165ae in gn_gsm_initialise (sm=0x80600c0) at gsm-api.c:160
#19 0x0804a4f2 in businit () at gnokii.c:453
#20 0x08058ac2 in main (argc=2, argv=0xbffa3dc4) at gnokii.c:5694
(gdb) up 3
(gdb) p *buf
$1 = {
addr = 0x8068258 "",
size = 2,
offs = 2
}
So the assert condition is 2 > 2 + 2 which is indeed wrong. But I have no idea as to why is the size so small (or the offset so big) unfortunately.
|
Sun 15 Jan 2006 04:05:17 AM UTC, original submission:
I'm using gnokii 0.6.8 from debian/testing. /etc/gnokiirc contains
[global]
port = 00:xx:xx:xx:xx:xx
model = series60
connection = bluetooth
rfcomm_channel = 1
Running gnokii results in:
% gnokii --identify
GNOKII Version 0.6.8
gnokii: pkt.c:55: buffer_expand: Assertion `buf->size >= buf->offs + len' failed.
Any other operation results in the same assert.
Thanks in advance for any ideas!
|