Re: Kernel 2.4.2 command execution hangs and then succeded after 2 minutes....!? STRACE-DUMP

From: Manfred Spraul (manfred@colorfullife.com)
Date: Wed Mar 07 2001 - 11:04:05 EST


----- Original Message -----
From: "Andrea Barisani" <lcars@infis.univ.trieste.it>
To: "Manfred Spraul" <manfred@colorfullife.com>
Cc: <linux-kernel@vger.kernel.org>
Sent: Wednesday, March 07, 2001 3:03 PM
Subject: Re: Kernel 2.4.2 command execution hangs and then succeded
after 2 minutes....!? STRACE-DUMP

> On Wed, 7 Mar 2001, Manfred Spraul wrote:
>
> > Could you use strace and check what the apps are doing during these
2
> > minutes?
> >
> > Perhaps it's a variation of the nis hang:
> > 2.4 doesn't forword udp error messages to the user space app, and
thus a
> > nis query to a nonexistant nis server blocks until the udp packets
time
> > out.
> >
>
> Here are the three traces (mc,pine,tar)
> The system hangs for minutes in the last part, before the interrupt
> Sorry for the size of this email...:)

I got a new DSL connection last week, and right now I have a flat rate
:-)

> sendto(5,
";\255Cn\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\3\0\0"..., 56, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("127.0.0.1")}}, 16) = 56
That's the problem:
NIS is configured and tries to connect to the NIS server on localhost.
It uses portmap to locate the server, but portmap is not running.
2.2 just forwarded the error message to the application, but 2.4
silently ignores the error message because these error messages caused
spurious application faults.

Check your nis configuration (afaik /etc/nsswitch.conf)

--
    Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:23 EST