Hi Andrew,

I ran git bisect which found the following as the first faulty commit:

6c691b3e5099de380a9d2f97d5c72f4a978bb794 is the first bad commit
commit 6c691b3e5099de380a9d2f97d5c72f4a978bb794
Author: Herbert Xu <herb...@gondor.apana.org.au>
Date:   Sat May 19 02:39:41 2018 +0800

    jobs: Only clear gotsigchld when waiting for everything
    
    The gotsigchld flag is always cleared in dowait but not all callers
    of dowait will wait for everything.  In particular, when jp is set
    we only wait until the set job isn't running anymore.
    
    This patch fixes this by only clearing gotsigchld if jp is unset.
    It also changes the waitcmd to actually set jp which corresponds
    to the behaviour of bash/ksh93/mksh.
    
    The only other caller of dowait that doesn't wait for everything
    is the jobless reaper.  This is in fact redundant now that we wait
    after every simple command.  This patch removes it.
    
    Finally as every caller of dowait needs to wait until either the
    given job is not running, or until all terminated jobs have been
    processed, this patch moves the loop into dowait itself.
    
    Fixes: 03876c0743a5 ("eval: Reap zombies after built-in...")
    Signed-off-by: Herbert Xu <herb...@gondor.apana.org.au>


https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?id=6c691b3e5099de380a9d2f97d5c72f4a978bb794

As you asked on IRC, to reproduce the problem I used autopkgtest with
LXC like this (on sid)

# autopkgtest-build-lxc debian sid
# autopkgtest --test-name=timedated systemd -- lxc -s autopkgtest-sid

If you want to edit the timedated script, you can also use

# apt-get source systemd
# vi  systemd-246.6/debian/tests/timedated
# autopkgtest --test-name=timedated systemd-246.6/ -B -- lxc -s
autopkgtest-sid


Regards,
Michael

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to