[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

and then:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]