Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For weeks now I have been struggling with a weird problem on 2 machines (not all of my Arch boxes, only some of them). It started with
staging-x86_64-build
not working (while other variants worked) then it spread to be custommakechrootpkg
invocations, then toextra-x86_64-build
, and lastly to another machine. I've tried blowing away the chroots and rebuilting them, reinstalled the tooling, etc. and nothing seems to touch the problem. The manifestation is simple. Right after integrity checks, I get a sefgault as it transitions to runningmakepkg
in the chroot:Every time. Any package. Any chroot.
I tried messing around with this line with just generic
sudo
commands likesudo true
and found either-i
or-u
work fine in isolation, it is the combination of them that causes sudo to segfault (e.g.sudo -iu builduser true
will segfault). Since-u
is required here and I could not figure out why-i
is required, I just removed it and found my builds all work fine.I don't know if this is needed for some edge cases, hence this might be the wrong fix, but I'm at least opening this Draft for comment to bring attention to the problem.