[lkml]   [2001]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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?


#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

 \ /
  Last update: 2005-03-22 13:27    [W:0.148 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site