Re: Serious reproducible 2.4.x kernel hang

From: Chris Evans (
Date: Thu Feb 01 2001 - 13:28:45 EST

[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?


#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>

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)
  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
Please read the FAQ at

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