Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 1998 00:22:03 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Dmitry Valdov <dv@dv.ru>
Cc:        Brian Somers <brian@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.sbin/ppp ip.c (fwd) 
Message-ID:  <199811140022.AAA12862@woof.lan.awfulhak.org>
In-Reply-To: Your message of "Thu, 12 Nov 1998 23:03:10 %2B0300." <Pine.BSF.4.02A.9811122249450.12434-100000@localhost> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>
> To: Dmitry Valdov <dv@dv.ru>
> Cc: Brian Somers <brian@FreeBSD.ORG>, 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811140022.AAA12862>