From nobody@FreeBSD.org  Mon Jul  9 10:18:13 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 43E9437B403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Jul 2001 10:18:13 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.3/8.11.3) id f69HIBg99358;
	Mon, 9 Jul 2001 10:18:11 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200107091718.f69HIBg99358@freefall.freebsd.org>
Date: Mon, 9 Jul 2001 10:18:11 -0700 (PDT)
From: Hal Burch <hburch@lumeta.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ppp hangs if you set device to be a non-existant file
X-Send-Pr-Version: www-1.0

>Number:         28839
>Category:       misc
>Synopsis:       ppp hangs if you set device to be a non-existant file
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 09 10:20:01 PDT 2001
>Closed-Date:    Mon Jul 30 11:41:22 PDT 2001
>Last-Modified:  Mon Jul 30 11:41:52 PDT 2001
>Originator:     Hal Burch
>Release:        4.3-BETA
>Organization:
Lumeta Corporation
>Environment:
FreeBSD scan2.prod.lumeta.com 4.3-BETA FreeBSD 4.3-BETA #0: Thu Mar 22 10:12:08 PST 2001     hburch@scan2.prod.lumeta.com:/usr/src/sys/compile/LOCAL  i386

>Description:
If you set device ppp to a non-existant file, ppp seems to hang.  Moreover, it seems to become unkillable.
>How-To-Repeat:
ppp -interactive

set device "/dev/NOSUCHFILE"
term
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: roam 
State-Changed-When: Mon Jul 9 10:41:28 PDT 2001 
State-Changed-Why:  
A *lot* has happened to the ppp code since March 22nd. 
Can you try the same after updating your sources to a recent -stable? 
All I can get is this: 

[root@ringworld:v0 ~]# ppp -interactive 
Working in interactive mode 
Using interface: tun0 
ppp ON ringworld> set device /dev/nonesuch 
ppp ON ringworld> term 
Warning: deflink: /dev/nonesuch: Bad file descriptor 
Failed to open /dev/nonesuch 
ppp ON ringworld> 

..or if by 'nonexistent' you meant a serial device which does not 
really correspond to a serial port connected to a mode.. 

[root@ringworld:v0 ~]# ppp -interactive 
Working in interactive mode 
Using interface: tun0 
ppp ON ringworld> set device /dev/cuaa0 
ppp ON ringworld> term 
deflink: Entering terminal mode on /dev/cuaa0 
Type `~?' for help 

Packet mode. 
ppp ON ringworld> 

Just after the 'Type ~? for help ' prompt, I typed ~p as per the ppp(8) 
manpage, to switch from terminal to packet mode. 


In any case, update your FreeBSD to a recent -stable, and then 
reply to this message, CC'ing freebsd-gnats-submit@FreeBSD.org, 
so that your reply enters the PR audit trail. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28839 
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Mon Jul 9 11:03:42 PDT 2001 
Responsible-Changed-Why:  
I look after ppp 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28839 

From: Brian Somers <brian@Awfulhak.org>
To: Hal Burch <hburch@lumeta.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: misc/28839: ppp hangs if you set device to be a non-existant file 
Date: Mon, 09 Jul 2001 19:04:53 +0100

 > >Number:         28839
 > >Category:       misc
 > >Synopsis:       ppp hangs if you set device to be a non-existant file
 
 I get this:
 
 $ ppp
 Working in interactive mode
 Using interface: tun1
 ppp ON gw> set device /dev/NOSUCHFILE
 ppp ON gw> o
 Warning: USR: /dev/NOSUCHFILE: Bad file descriptor
 ppp ON gw> q
 
 What does your machine say if you ``set log local phase lcp ipcp chat 
 command'' ?  Maybe you're just seeing a redial pause ?
 -- 
 Brian <brian@freebsd-services.com>                <brian@Awfulhak.org>
       http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
 Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: brian 
State-Changed-When: Mon Jul 30 11:41:22 PDT 2001 
State-Changed-Why:  
No response from the submitter 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28839 
>Unformatted:
