Openmoko Bug #1955: pppd persist and holdoff does not work

Openmoko Public Trac bugs at docs.openmoko.org
Sat Jan 17 02:12:48 CET 2009


#1955: pppd persist and holdoff does not work
---------------------+------------------------------------------------------
 Reporter:  niccolo  |          Owner:  julian_chu
     Type:  defect   |         Status:  new       
 Priority:  normal   |      Milestone:  Om2007.2  
Component:  Distro   |        Version:            
 Severity:  normal   |       Keywords:            
 Haspatch:  0        |      Blockedby:            
Estimated:           |    Patchreview:            
 Blocking:           |   Reproducible:  always    
---------------------+------------------------------------------------------

Comment(by niccolo):

 I did forther testing and I strongly believe there is a bug in pppd. So I
 wrote a mail to Paul Mackerras and James Carlson (contacts in the README).
 This is the mail, just for the record.

 I'm using pppd on the FreeRunner phone, running the OpenMoko
 distribution. The problem is always reproducible and it is as
 follow:

 - start pppd with its chat script
 - the chatscript fails for whatever (e.g. no GPRS signal)
 - pppd waits for the "holdoff" time
 - chatscript is **NOT** fired up again
 - pppd stalls in an endless select()

 this happens despite my configuration file which contains:

 maxfail 0
 holdoff 13
 persist

 If I SIGHUP pppd, it ends the select() and does a new chat
 attempt.

 Because I need an always-on connection on un unattended mobile
 phone, you understand that this is very annoying.

 Reading the source I suspec that the for() loop in main.c:494
 does start chat only in the first run, not in the second.

 The phone environment:

 * pppd version 2.4.3-r4
 * OpenMoko 2008.12 (based on Angstrom armv4t)
 * Linux om-gta02 2.6.24 #1 PREEMPT Wed Dec 17 02:13:29 CST 2008
   armv4tl

 I attach my configuration file and an strace of the pppd process.
 Thank you very much for any hints.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1955#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list