Bug#855336: make hangs when synchronizing output and redirecting to null

2018-02-13 Thread Manoj Srivastava
Hi, I looked into this. The relevant bits appear in output.c: --8<---cut here---start->8--- /* Obtain the lock for writing output. */ static void * acquire_semaphore (void) { static struct flock fl; fl.l_type = F_WRLCK; fl.l_whence = SEEK_SET;

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-20 Thread Norbert Lange
Hi, I opened up a report for docker: https://github.com/docker/docker/issues/31182 I ran lslocks as root and with several flags, I could not get a more detailed output. For completeness, here is a (reduced) correct report with a blocked make: make11052 POSIX0B WRITE* 0 0 0

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-18 Thread James Cowgill
Hi, On 18/02/17 08:27, Norbert Lange wrote: > Hi, > > sorry for messing up years. > lslocks only showed makes locking /dev/null, but it appears to be that > the culprit is a running dockerd daemon. lslocks shouldn't be showing make holding a lock in /dev/null because it does so for a very short

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-18 Thread Norbert Lange
Hi, sorry for messing up years. lslocks only showed makes locking /dev/null, but it appears to be that the culprit is a running dockerd daemon. I dont understand why, but with the service disabled a blocked make will suddenly continue. to install the service: echo >

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-17 Thread James Cowgill
Hi, On 17/02/17 18:08, Norbert Lange wrote: > Hello, > > Tried reproducing it at work (where it first happened on a build server). > On my PC at home with 4 cores / 12 thread the bug reproduces always > On a 6 core / 12 threads Xeon Server the bug reproduces always > On my work PC with 4 cores

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-17 Thread Norbert Lange
Hello, Tried reproducing it at work (where it first happened on a build server). On my PC at home with 4 cores / 12 thread the bug reproduces always On a 6 core / 12 threads Xeon Server the bug reproduces always On my work PC with 4 cores / 4 threads running in a VMware Instance it doesnt

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-17 Thread James Cowgill
Hi, On 16/02/17 21:52, Norbert Lange wrote: > Package: make > Version: 4.1-9 > Severity: important > > Dear Maintainer, > > running the attached Makefile will hang the process, > if multiple jobs are used then the process wont respond to a > TERM and has to be killed. > > The very same issue

Bug#855336: make hangs when synchronizing output and redirecting to null

2017-02-16 Thread Norbert Lange
Package: make Version: 4.1-9 Severity: important Dear Maintainer, running the attached Makefile will hang the process, if multiple jobs are used then the process wont respond to a TERM and has to be killed. The very same issue is observed with make-guile. I believe this to not be an upstream