clone and file locking bug

Thorsten Kukuk (
Thu, 8 May 1997 13:19:47 +0200 (MET DST)


I have a problem with all rescent kernels:

I have a program, which uses linuxthreads with the clone call.
If I lock a file with fcntl in a thread, the lock will never
be released if the program will be aborted with Ctrl-C.
cat /proc/locks when the program runs. After pressing Ctrl-C,
cat /proc/locks will result in a kernel fault with 2.1.35. With
pre-2.1.37-5, the system hangs complete.
I uses glibc 2.0.x and the glibc-linuxthreads.


Thorsten Kukuk
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.