Date: Thu, 1 Feb 2001 18:28:45 +0000 (GMT) From: Chris Evans <chris@scary.beasts.org> To: Malcolm Beattie <mbeattie@sable.ox.ac.uk> Subject: Re: Serious reproducible 2.4.x kernel hang [cc: davem because of the severity] On Thu, 1 Feb 2001, Malcolm Beattie wrote: > rid of the hang. So it looks as though some combination of > shutdown(2) and SIGABRT is at fault. After the hang the kernel-side Nope - I've nailed it to a _really_ simple test case. It looks like a read() on a shutdown() unix dgram socket just kills the kernel. Demo code below. I wonder if this affects UP or is SMP only? Malcolm, does the below code reproduce the problem for you? Cheers Chris #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> int main(int argc, const char* argv[]) { int retval; int sockets[2]; char buf[1]; retval = socketpair(PF_UNIX, SOCK_DGRAM, 0, sockets); if (retval != 0) { perror("socketpair"); exit(1); } shutdown(sockets[0], SHUT_RDWR); read(sockets[0], buf, 1); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/