From owner-freebsd-current Thu Nov 12 12:06:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA15320 for freebsd-current-outgoing; Thu, 12 Nov 1998 12:06:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from home.dv.ru (home.dv.ru [195.98.33.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14962; Thu, 12 Nov 1998 12:03:55 -0800 (PST) (envelope-from dv@dv.ru) Received: from localhost (dv@localhost) by home.dv.ru (8.9.1/8.9.1) with SMTP id XAA12472; Thu, 12 Nov 1998 23:03:11 +0300 (MSK) (envelope-from dv@dv.ru) X-Authentication-Warning: home.dv.ru: dv owned process doing -bs Date: Thu, 12 Nov 1998 23:03:10 +0300 (MSK) From: Dmitry Valdov X-Sender: dv@localhost To: Brian Somers , current@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! There is gdb's output: 0x280d7ea4 in _poll () (gdb) bt #0 0x280d7ea4 in _poll () #1 0x280f4f11 in res_send () #2 0x280f1c57 in res_query () #3 0x280f2101 in __res_querydomain () #4 0x280f1e55 in res_search () #5 0x280eb5c8 in _gethostbydnsname () #6 0x280ea23f in gethostbyname2 () #7 0x280ea1c3 in gethostbyname () #8 0x805cd4e in ipcp_Init (ipcp=0x8078714, bundle=0x80785f0, l=0x80a3000, parent=0x8078648) at ipcp.c:359 #9 0x804c1d1 in bundle_Create (prefix=0x807366d "/dev/tun", type=1, argv=0xefbfdc44) at bundle.c:858 #10 0x8061df5 in main (argc=1, argv=0xefbfdc44) at main.c:324 #11 0x804a34d in _start () There is a part of my config file. There IS "delete! default": default: delete! default set log Phase Chat LCP IPCP CCP tun command +debug set device /dev/modem set speed 57600 set reconnect 1 50 set timeout 300 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE0Q0S0=1 pmdemand: delete! default set phone 777777 set login "TIMEOUT 120 ogin:--ogin: cbdv word: XXXX string: YYYYY CONNECT set log +debug set timeout 300 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns There is netstat -rn: home# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 127.0.0.1 127.0.0.1 UH 0 33 lo0 When I delete default, ppp works OK: home# ppp -auto pmdemand Working in auto mode ^C home# route delete default delete net default home# ppp -auto pmdemand Working in auto mode Using interface: tun0 home# Is it enought to make you sure that it isn't user error? :) You can reprodyce the problem by: 1. uncommenting 'pmdemand' section and add there delete! default 2. starting ppp with 'ppp -auto pmdemand' 3. killing it with -9 4. starting it again ---------- Forwarded message ---------- Date: Thu, 12 Nov 1998 11:30:04 +0300 (MSK) From: Dmitry Valdov To: dv@home.dv.ru Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) ---------- Forwarded message ---------- Date: Thu, 12 Nov 1998 01:08:05 +0000 From: Brian Somers To: Dmitry Valdov Cc: Brian Somers , current@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) Are you doing anything funny with ``hostname'' on your machine ? The only reports I've heard where ppp hangs at startup is when your ``hostname'' won't resolve (see http://www.FreeBSD.org/FAQ/userppp.html). If this isn't the problem, I'd appreciate if you could build ppp with -g and when it hangs, run ``gdb -p whatever'' and do a ``bt''. Cheers. > I've just tried to put > "delete! default" in ppp.conf file and it has no effect. ppp hangs when > default route exists. > > > On Wed, 11 Nov 1998, Dmitry Valdov wrote: > > > > > > > ---------- Forwarded message ---------- > > Date: Tue, 10 Nov 1998 21:40:53 +0000 > > From: Brian Somers > > To: Jason Fesler > > Cc: Kris Kennaway , > > Dmitry Valdov , Brian Somers , > > current@FreeBSD.ORG > > Subject: Re: cvs commit: src/usr.sbin/ppp ip.c > > > > > > Sorry for the "implicit bug report", Brian, but I've been meaning to track > > > > this down for a long time and make sure it's not user error. I often see this > > > > > > I've had this since the 2.2.2 days when I first started running ppp. > > > After a while (hours, days, weeks - random) either carrier isn't noticed > > > as being missing, or all outgoing packets don't cross the serial cable to > > > to the other side. After a while I kinda gave up. > > > > Ppp won't expect carrier if it's not detected when ppp starts doing > > LCP. This allows null-modem cables without the correct wiring to > > work. > > > > As I've said to a couple of these posts - enable debug logging and > > you'll see the carrier status reported every second. You can also > > ``show modem'' to see what things look like. > > > > > I now every few minutes fping a few hosts on the nearby remote side. If > > > they _all_ fail (a good 10 second timeout is given) then I kill -9 the ppp > > > session, wait 2 seconds, then restart ppp. It's caught every strange > > > random bug on either side soon enough that I no longer have to try and > > > call home and walk the wife through ppp.. > > > > Ppp should be a lot more reliable these days. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message