MSYS2-packages: pacman: sometimes hangs validating GPG signatures
I first saw this on Windows on ARM, but it seems to have shown up on msys2-autobuild recently too (https://github.com/msys2/msys2-autobuild/runs/4552699834?check_suite_focus=true and https://github.com/msys2/msys2-autobuild/runs/4575182521?check_suite_focus=true).
What I saw on ARM was that pstree
showed two pacman processes, one a child of the other. If I killed the child, via its winpid and taskkill, pacman would complain about a GPGME error and things would move on (with a failed invocation of pacman). If I killed the parent, the child would still hang around as an apparent zombie.
I tried to debug it once a while back, but I seem to recall that attempting to attach a debugger to it caused it to ‘unblock’ and exit, which made trying to figure out what was going on pretty difficult.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (20 by maintainers)
Commits related to this issue
- fhandler_pipe: add sanity limit to handle loops Attempt to avoid an exception I caught once in gdb, trying to debug msys2/MSYS2-packages#2752 — committed to jeremyd2019/msys2-runtime by jeremyd2019 3 years ago
https://github.com/msys2/msys2-runtime/commit/0ce992c1e40f843d5f264e87908a6decfd6681d1
Patch seems to have done a world of good on ARM, have been building packages for hours and haven’t had to manually intervene and kill anything yet!
So far so good on ARM. Sent patch to cygwin-patches: https://cygwin.com/pipermail/cygwin-patches/2021q4/011611.html