[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix segfault when running GN_OP_Terminate
From: |
Pawel Kot |
Subject: |
Re: [PATCH] fix segfault when running GN_OP_Terminate |
Date: |
Tue, 14 Jun 2005 00:16:18 +0200 |
Hi Bastien,
On 6/14/05, Bastien Nocera <address@hidden> wrote:
> The attached program crashes straight before printing the model for the
> phone. It works fine with my patch applied. Maybe some other data needs
> to be zero'ed in gn_data_clear?
Well, it runs fine for me.
> It gives me that backtrace:
> #0 0x00be0df9 in free () from /lib/tls/libc.so.6
> #1 0xb7f945c1 in device_close (state=0xbffff2dc) at device.c:120
> #2 0xb7fca274 in link_terminate (state=0xbffff2dc) at utils.c:55
> #3 0xb7fa4e1f in pgen_terminate (data=0x0, state=0xbffff2dc) at
> generic.c:51
> #4 0xb7fc20aa in Terminate (data=0x0, state=0xbffff2dc) at atgen.c:1772
> #5 0xb7fc22a6 in Functions (op=GN_OP_Init, data=0x0, state=0xbffff2dc)
> at atgen.c:242
> #6 0xb7f927e4 in gn_sm_functions (op=GN_OP_Terminate, data=0x0, sm=0x0)
> at gsm-statemachine.c:347
> #7 0x0804885d in main (argc=2, argv=0xbffff6a4) at gnokii-identify.c:56
Could you show 'bt full' output?
Something apparently was overwritten/not initialized. Not sure what.
take care,
pkot
PS. Which gcc version do you use?
--
Pawel Kot
http://www.gnokii.org/