clone and file locking bug

Thorsten Kukuk (kukuk@weber.uni-paderborn.de)
Thu, 8 May 1997 13:19:47 +0200 (MET DST)


Hello,

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

-- 
Thorsten Kukuk  kukuk@vt.uni-paderborn.de
                http://www-vt.uni-paderborn.de/~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.