Closed jengelh closed 1 year ago
I face the very same issue.
Any update on this, please? It's really annoying issue as it's leaving processes that consume 100% of a CPU :/
++ buildroot_umount /proc/sys/fs/binfmt_misc
++ local d=/proc/sys/fs/binfmt_misc
++ local d2=//proc/sys/fs/binfmt_misc
++ echo 'Unmounting /proc/sys/fs/binfmt_misc'
Unmounting /proc/sys/fs/binfmt_misc
++ test -n //proc/sys/fs/binfmt_misc
++ test -L /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
++ test -d /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
++ d2=//proc/sys/fs/binfmt_misc
++ test -n //proc/sys/fs/binfmt_misc
++ test -L /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
++ test -d /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
++ d2=//proc/sys/fs/binfmt_misc
++ test -n //proc/sys/fs/binfmt_misc
++ test -L /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
++ test -d /run/ob/openSUSE_Factory-x86_64//proc/sys/fs/binfmt_misc
There's only one place with d2=
.
It looks like d2="${d2%/*}"
has no effect, but then this is something of a bash bug. (Btw, a revert to older obs-build-2021xxxx also did not cure it, which strengths the idea that sh it at fault.)
Reverting bash to 5.1.15 fixes the problem with obs-build. The git repository at https://git.savannah.gnu.org/git/bash.git is terrible—it's just tarball imports and thus not fine grained enough to pinpoint the problematic change.
4491c03014008046746b569108b7ea629d963e71 is the first bad commit
commit 4491c03014008046746b569108b7ea629d963e71
Author: Chet Ramey <chet.ramey@case.edu>
Date: Thu Jan 20 15:06:05 2022 -0500
bash-5.2-alpha release
I bisected the devel
branch and the issue is fixed with:
commit 055a4552c901e43e6a6007f5bc664a33698dbf85 (HEAD)
Author: Chet Ramey <chet.ramey@case.edu>
Date: Sat Oct 15 13:34:51 2022 -0400
change to readline callback signal handling; fix message when popping shell function context; handle new terminating signals inside terminating signal handler; fix to pattern substitution with null replacement and null string; fix to alias expansion when we get a SIGINT while entering a command substitution in an interactive shell
Can we cherry-pick it for our bash
package?
Apparently, one can't easily apply the patch on top of 5.2
release.
I was promised by the bash maintainer, that the fix will be included in the next minor release.
Fixed in Factory with an update of bash
to Update to bash52-015
.
@jengelh Please close it.
When
osc build
is aborted, it leaves behind a process fragment that is running in an infinite loop. When ^C is first hit,ps xaf
is like (so far so good):then after a second or two,
and it never gets to clean up the remaining mounts