[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with gnokii 0.6.31git, smsd segmentation fault
From: |
Jan Derfinak |
Subject: |
Re: Problem with gnokii 0.6.31git, smsd segmentation fault |
Date: |
Sun, 5 Jun 2011 23:27:08 +0200 (CEST) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
On Wed, 1 Jun 2011, Daniele Forsi wrote:
> 2011/6/1 Pawel Kot:
>
> > So I guess then it is somewhere in the smsd
> > that it fails. Then the backtrace for smsd makes more sense to me.
>
> I could reproduce the segfault making the fake driver return
> GN_ERR_TIMEOUT: in sms_send_single (gsm-sms.c:1712) we were trying to
> set the reference number on unallocated memory, but maybe instead of
> the fix I pushed we should be clearing the memory somewhere in smsd
Can you explain what you mean? The code in A_SendSMSMessage clears data,
prepares data, then calls gn_sms_send and then release data:
gn_data_clear (dt);
dt->sms = d->sms;
d->status = gn_sms_send (dt, sm);
status = d->status;
free (dt->sms->reference);
free (dt);
After GN_ERR_TIMEOUT error, smsd tries to restart connection to phone.
This mean it calls
gn_lib_phone_close
gn_lib_phoneprofile_free
gn_lib_library_free
and then:
gn_lib_phoneprofile_load
gn_lib_phone_open
Jan
--
- RE: Problem with gnokii 0.6.31git, smsd segmentation fault, João Areias, 2011/06/01
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Pawel Kot, 2011/06/01
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Daniele Forsi, 2011/06/01
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault,
Jan Derfinak <=
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Daniele Forsi, 2011/06/05
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Jan Derfinak, 2011/06/05
- RE: Problem with gnokii 0.6.31git, smsd segmentation fault, João Areias, 2011/06/06
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Pawel Kot, 2011/06/06
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Jan Derfinak, 2011/06/06
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Pawel Kot, 2011/06/07
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Daniele Forsi, 2011/06/06
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Jan Derfinak, 2011/06/07
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Pawel Kot, 2011/06/07
- Re: Problem with gnokii 0.6.31git, smsd segmentation fault, Jan Derfinak, 2011/06/07