From owner-freebsd-current Sat Nov 14 22:29:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA25524 for freebsd-current-outgoing; Sat, 14 Nov 1998 22:29:42 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from xkis.kis.ru (xkis.kis.ru [195.98.32.200]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA25514; Sat, 14 Nov 1998 22:29:28 -0800 (PST) (envelope-from dv@dv.ru) Received: from localhost (dv@localhost) by xkis.kis.ru (8.9.0/8.9.0) with SMTP id JAA05951; Sun, 15 Nov 1998 09:29:01 +0300 (MSK) Date: Sun, 15 Nov 1998 09:29:01 +0300 (MSK) From: Dmitry Valdov X-Sender: dv@xkis.kis.ru To: Brian Somers cc: Brian Somers , current@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) In-Reply-To: <199811140022.AAA12862@woof.lan.awfulhak.org> 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 Hmmm. I don't did anything with my 'hostname'. It valid.. I think, I understand the problem. Look here: If default route exists and connection isn't established than gethostbyname () trying to get host by name via DNS server which isn't here. I think You should do anything with it. Please don't advice me to insert my hostname to /etc/hosts and set 'hosts' first in /etc/host.conf just because FreeBSD has default with 'bind' prior to 'hosts'. For what do You want to call function gethostbyname ()? May be it will better to call it after executing ppp.conf to make user able to 'delete! default' before gethostbyname () called? On Sat, 14 Nov 1998, Brian Somers wrote: > Date: Sat, 14 Nov 1998 00:22:03 +0000 > From: Brian Somers > To: Dmitry Valdov > Cc: Brian Somers , current@FreeBSD.ORG > Subject: Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) > > > 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 () > > The gethostbyname() is the only thing I know in ppp that causes ppp > to hang - hence my previous message: > > [.....] > > ---------- 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''. > [.....] > > This is what's causing the problem here. > -- > 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