Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-21 Thread Darren Salt
I'm seeing the same (no such device or address) here. I'd rebuilt and
reinstalled 2.4.3-2005321+1, and the problem went away (or at least I didn't
notice it again). I'm now using 2.4.3-2005321+2, and the problem occurred
again today (after an unexpected disconnection, i.e. not an inactivity
time-out) - I've rebuilt and reinstalled it; hopefully the problem has gone
again...

In case it's relevant: the kernel on that machine is 2.4.29 (kernel.org), the
modem is on /dev/ttyS0 (standard external serial), and the CONFIG_PPP_*
options are as follows:

  CONFIG_PPP_MULTILINK = n
  CONFIG_PPP_FILTER= n
  CONFIG_PPP_ASYNC = y
  CONFIG_PPP_SYNC_TTY  = n
  CONFIG_PPP_DEFLATE   = y
  CONFIG_PPP_BSDCOMP   = n

-- 
| Darren Salt   | linux (or ds) at | nr. Ashington,
| sarge,| youmustbejoking  | Northumberland
| RISC OS   | demon co uk  | Toon Army
|   URL:http://www.youmustbejoking.demon.co.uk/progs.linux.html

Plagiarism saves thought.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-21 Thread Marco d'Itri
On May 21, Darren Salt [EMAIL PROTECTED] wrote:

 I'm seeing the same (no such device or address) here. I'd rebuilt and
 reinstalled 2.4.3-2005321+1, and the problem went away (or at least I didn't
No, I'm sure that the bug is present in 2.4.3-2005321+1 too.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-21 Thread Darren Salt
I demand that Marco d'Itri may or may not have written...

 On May 21, Darren Salt [EMAIL PROTECTED] wrote:
 I'm seeing the same (no such device or address) here. I'd rebuilt and
 reinstalled 2.4.3-2005321+1, and the problem went away (or at least I
 didn't

 No, I'm sure that the bug is present in 2.4.3-2005321+1 too.

Yes. Why do you think that I rebuilt and reinstalled that version? :-)

-- 
| Darren Salt   | nr. Ashington, | linux (or ds) at
| sarge,| Northumberland | youmustbejoking
| RISC OS   | Toon Army  | demon co uk
|   Say NO to software patents

A gleekzorp without a tornpee is like a quop without a fertsneet.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-02 Thread David Burrows
Hi,

I am also getting this error with kernel 2.6.11.7 and dialup modem (USB
ISDN).  The problem is with persist or demand, first connection goes
through fine, reconnection fails with tcsetattr error.  I am using latest
Debian sid tree.  Downgrading ppp to version 2.4.2+20040428-6 seems to
resolve the problem.  All versions after that one have this problem.  I
did some further debugging and discovered that the first time the
connection goes around the fd is 7, the next time it goes to reconnect the
fd increases to 8.  This might be normal, I'm not sure whats going on.

Thanks for your time,

David Burrows.




Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-02 Thread Marco d'Itri
On May 02, David Burrows [EMAIL PROTECTED] wrote:

 did some further debugging and discovered that the first time the
 connection goes around the fd is 7, the next time it goes to reconnect the
 fd increases to 8.  This might be normal, I'm not sure whats going on.
This bug should be fixed by the patch from #306261, but I'm not sure if
it's the same issue of #306820.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-05-02 Thread David Burrows
 On May 02, David Burrows [EMAIL PROTECTED] wrote:

 did some further debugging and discovered that the first time the
 connection goes around the fd is 7, the next time it goes to reconnect
 the
 fd increases to 8.  This might be normal, I'm not sure whats going on.
 This bug should be fixed by the patch from #306261, but I'm not sure if
 it's the same issue of #306820.

Unfortunately this patch did not resolve the problem.  I think you're
right, it may be a different issue to #306820.  On further investigation
my syslog actually says:

May  2 09:31:14 shed pppd[8131]: Starting link
May  2 09:31:14 shed pppd[8131]: tcgetattr: No such device or address
(line 909)
May  2 09:31:15 shed pppd[8131]: tcsetattr: No such device or address
(line 1003)
May  2 09:31:15 shed pppd[8131]: Exit.

Only thing which might be different is I'm using the cdc_adm driver, and
/dev/ttyACM0.

If I downgrade to 2.4.2+20040428-6 it works fine.  Also if I type pon
again it reconnects fine.  I've tried to do a bit of debugging myself, but
all I can tell is the reconnect case is a different codepath to the
original connect.  And its getting confused somewhere with fds, or perhaps
opening the same device node twice.

David.




Bug#306820: ppp in on demand mode hangs with tcsetattr: Invalid argument error

2005-04-28 Thread Paolo Benvenuto
Package: ppp
Version: 2.4.3-20050321+1
Severity: normal

Since last actualization, ppp sometimes gives error an exits when reconnecting.

Here is the syslog excerpt:

---
Apr 28 01:35:37 localhost pppd[31486]: Script /etc/ppp/ip-up started (pid 25876)
Apr 28 01:35:37 localhost postfix/postfix-script: refreshing the Postfix mail 
system
Apr 28 01:35:37 localhost postfix/master[6589]: reload configuration
Apr 28 01:35:37 localhost pppd[31486]: Script /etc/ppp/ip-up finished (pid 
25876), status = 0x0
Apr 28 01:35:53 localhost postfix/pickup[25916]: 0D9CC84041: uid=0 from=root
Apr 28 01:35:53 localhost postfix/cleanup[25935]: 0D9CC84041: 
message-id=[EMAIL PROTECTED]
Apr 28 01:35:53 localhost postfix/qmgr[25917]: 0D9CC84041: from=[EMAIL 
PROTECTED], size=2742, nrcpt=1 (queue active)
Apr 28 01:35:53 localhost postfix/local[25937]: 0D9CC84041: to=[EMAIL 
PROTECTED], orig_to=paolo, relay=local, delay=1, status=sApr 28 01:35:53 
localhost postfix/qmgr[25917]: 0D9CC84041: removed
Apr 28 01:35:59 localhost no-ip[6348]: guaricano.no-ip.org set to 200.88.158.169
Apr 28 01:38:16 localhost pppd[31486]: Hangup (SIGHUP)
Apr 28 01:38:16 localhost pppd[31486]: Connect time 2.7 minutes.
Apr 28 01:38:16 localhost pppd[31486]: Sent 1340 bytes, received 1561 bytes.
Apr 28 01:38:16 localhost pppd[31486]: Script /etc/ppp/ip-down started (pid 
25999)
Apr 28 01:38:16 localhost pppd[31486]: sent [LCP TermReq id=0x9 User request]
Apr 28 01:38:16 localhost postfix/postfix-script: refreshing the Postfix mail 
system
Apr 28 01:38:16 localhost postfix/master[6589]: reload configuration
Apr 28 01:38:16 localhost pppd[31486]: Script /etc/ppp/ip-down finished (pid 
25999), status = 0x1
Apr 28 01:38:19 localhost pppd[31486]: sent [LCP TermReq id=0xa User request]
Apr 28 01:38:22 localhost pppd[31486]: Connection terminated.
Apr 28 01:38:22 localhost pppd[31486]: tcflush failed: Input/output error
Apr 28 01:39:01 localhost /USR/SBIN/CRON[26046]: (root) CMD (  [ -d 
/var/lib/php4 ]  find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/mApr 28 
02:02:01 localhost /USR/SBIN/CRON[26614]: (root) CMD (/usr/bin/sudo 
/usr/sbin/ntpdate -u ntp.ubuntulinux.org ntp-1.mcs.anl.gov  ntp-Apr 28 02:02:01 
localhost pppd[31486]: Starting link
Apr 28 02:02:01 localhost pppd[31486]: tcsetattr: Invalid argument (line 964)
Apr 28 02:02:02 localhost pppd[31486]: tcsetattr: Invalid argument (line 1003)
Apr 28 02:02:02 localhost pppd[31486]: Exit.
Apr 28 02:02:06 localhost postfix/pickup[26024]: 497A684041: uid=0 from=root
Apr 28 02:02:06 localhost postfix/cleanup[26628]: 497A684041: 
message-id=[EMAIL PROTECTED]
Apr 28 02:02:06 localhost postfix/qmgr[26025]: 497A684041: from=[EMAIL 
PROTECTED], size=1242, nrcpt=1 (queue active)
Apr 28 02:02:06 localhost postfix/local[26630]: 497A684041: to=[EMAIL 
PROTECTED], orig_to=paolo, relay=local, delay=0, status=sApr 28 02:02:06 
localhost postfix/qmgr[26025]: 497A684041: removed
Apr 28 02:02:59 localhost no-ip[6348]: Can't get status for ppp0. (19)
---

This is my peer's config: /etc/ppp/peers/codetel :

# This optionfile was generated by pppconfig 2.3.10.
#
#
hide-password
noauth
connect /usr/sbin/chat -f /etc/chatscripts/codetel

/dev/ttyS0
115200
defaultroute
noipdefault
user mision
remotename codetel
ipparam codetel

demand
usepeerdns
idle 200
maxfail 0
holdoff 1
logfile /var/log/ppp
debug
---

/etc/ppp/options is untouched.


Note: I can't understand why reportbug asked me whether to put the final debconf
information.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=es_DO.UTF-8, LC_CTYPE=es_DO.UTF-8 (charmap=UTF-8)

Versions of packages ppp depends on:
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libpam-modules  0.76-22  Pluggable Authentication Modules f
ii  libpam-runtime  0.76-22  Runtime support for the PAM librar
ii  libpam0g0.76-22  Pluggable Authentication Modules l
ii  libpcap0.7  0.7.2-7  System interface for user-level pa
ii  makedev 2.3.1-77 creates device files in /dev
ii  netbase 4.21 Basic TCP/IP networking system
ii  procps  1:3.2.1-2The /proc file system utilities
ii  zlib1g  1:1.2.2-3compression library - runtime

-- debconf information:
  ppp/maxfail:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]