msys2 / msys2/msys2-runtime

MSYS2 bash.exe wont quit

Open
#351 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
240
Forks
60
Avg merge
2d 3h
Merged PRs (30d)
1

Description

The program in the following repo demonstrates a bug of bash.exe.

https://github.com/mrev11/msys2-bugreport

In the state after the 2026-06-17 update the program works as expected.

[2026-06-17T10:47:24+0200] [PACMAN] Running 'pacman -Syu'                                       
[2026-06-17T10:47:24+0200] [PACMAN] synchronizing package lists                                 
[2026-06-17T10:47:26+0200] [PACMAN] starting core system upgrade                                
[2026-06-17T10:47:26+0200] [PACMAN] starting full system upgrade                                
[2026-06-17T10:47:47+0200] [ALPM] transaction started                                           
[2026-06-17T10:47:48+0200] [ALPM] upgraded binutils (2.46-2 -> 2.46.1-1)                        
[2026-06-17T10:47:51+0200] [ALPM] upgraded mingw-w64-clang-x86_64-headers (14.0.0.r92.g818fa6510
[2026-06-17T10:47:52+0200] [ALPM] upgraded mingw-w64-clang-x86_64-crt (14.0.0.r92.g818fa6510-1 -
[2026-06-17T10:47:52+0200] [ALPM] upgraded mingw-w64-clang-x86_64-libwinpthread (14.0.0.r92.g818
[2026-06-17T10:47:52+0200] [ALPM] upgraded mingw-w64-clang-x86_64-pkgconf (1~2.5.1-1 -> 1~2.5.1-
[2026-06-17T10:47:52+0200] [ALPM] upgraded mingw-w64-clang-x86_64-winpthreads (14.0.0.r92.g818fa
[2026-06-17T10:47:52+0200] [ALPM] transaction completed                                         
[2026-06-17T10:47:52+0200] [ALPM] running 'texinfo-install.hook'...                             
[2026-06-17T10:47:58+0200] [PACMAN] Running 'pacman -Syu'                                       
[2026-06-17T10:47:58+0200] [PACMAN] synchronizing package lists                                 
[2026-06-17T10:47:59+0200] [PACMAN] starting core system upgrade                                
[2026-06-17T10:47:59+0200] [PACMAN] starting full system upgrade                                

But recently (as of 2026-07-22) the program hangs, because after some time
the MSYS2 bash.exe will not quit any more.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked mrev11/msys2-bugreport reproduction and compare its behavior before and after the 2026-07-22 update. Investigate the MSYS2 bash.exe exit path and the listed pacman update context; done means the program completes without bash.exe hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.