Your message dated Wed, 14 Feb 2018 15:35:01 -0800
with message-id <871shnf8m2....@glaurung.internal.golden-gryphon.com>
and subject line make hangs when synchronizing output and redirecting to null
has caused the Debian Bug report #855336,
regarding make hangs when synchronizing output and redirecting to null
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
855336: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855336
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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 bug, since I observed this
only a couple weeks ago after an upgrade.
Unfortunatly I can`t pinpoint a date or version.

Kind Regards, Norbert


cat >Makefile <<'EOF'
# run with
# 
# rm -rf subdir
# make -O >/dev/null
#
# add -j2, then you can' t even terminate it 

FILE := a b

all: $(addprefix subdir/,$(FILE))

$(addprefix subdir/,$(FILE)):
        echo "$@"
        mkdir -p $(dir $@); touch $@
EOF

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (200, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages make depends on:
ii  libc6  2.24-9

make recommends no packages.

Versions of packages make suggests:
pn  make-doc  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi,

        Now make does need to treat output file writing as a critical
 region -- otherwise, parralel makes (-j N) would all stomp on each
 other and interleave letters as they write. So we need locking to make
 output redirection with ||lel makes work. There is no sane way to
 handle not waiting for a lock -- if sub makes are all trying to write,
 how would the second submake decide what to do, if it is not to wait
 for the lock?

        So I would say this is not a bug, and make is working as
 expected. The culprit here is something thaqt locks up the file that
 make expects to redirect output to (/dev/null). I suggest not doing
 that :-)

        manoj
-- 
A committee is a life form with six or more legs and no brain. Lazarus
Long, "Time Enough For Love"
Manoj Srivastava <sriva...@acm.org> 
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C

Attachment: smime.p7s
Description: S/MIME cryptographic signature


--- End Message ---

Reply via email to