ExitError (-11) when /bin/sh is the dash shell
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- cli, operating-systems
調査の方向性
/bin/sh を dash にリンクした状態で、まず報告に示されている詳細な stack build コマンドを使って失敗を再現します。プロセス呼び出し ghc-pkg ... dump --expand-pkgroot を追跡し、その後、/bin/sh として dash を使用した状態で Stack が正常にビルドを完了できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Please follow the steps below for reporting a bug in Stack:
Make sure that you are using the latest release (currently Stack 3.7.1). See the
upgrade instructions
to upgrade.
Please use the following schema for your bug report:
General summary/comments (optional)
stack gives off ExitError (-11) when /bin/sh is linked to dash
Steps to reproduce
link /bin/sh to /usr/local/bin/dash
run any stack command: for example - stack build
Expected
Build the program.
Actual
Fails to build the program.
If you suspect that a Stack command misbehaved, please include the output of
that command in --verbose mode. If the output is larger than a page please
paste the output in a Gist.
stack --verbose build
Version 3.7.1, Git revision cfae313a06ea9f7278e0ac55a58341fa0440f1aa x86_64 hpack-0.38.1
2025-09-11 16:02:16.517136: [debug] Checking for project config at: /home/joan/.config/xmonad/stack.yaml
2025-09-11 16:02:16.517372: [debug] Loading project config file stack.yaml
2025-09-11 16:02:16.519595: [debug] Use of Casa server enabled: (CasaRepoPrefix "https://casa.stackage.org", 1280).
2025-09-11 16:02:16.521620: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2025-09-10 13:02:16.521587036 UTC]
2025-09-11 16:02:16.522097: [debug] Using package location completions from a lock file
2025-09-11 16:02:16.531135: [debug] Loaded snapshot from Pantry database.
2025-09-11 16:02:16.733574: [debug] Running Hpack on /home/joan/.config/xmonad/package.yaml
2025-09-11 16:02:16.735726: [debug] Hpack output unchanged in /home/joan/.config/xmonad/exmonad.cabal
2025-09-11 16:02:16.736369: [debug] Prefetching git repos: []
2025-09-11 16:02:16.736408: [debug] []
2025-09-11 16:02:16.748622: [debug] Asking for a supported GHC version
2025-09-11 16:02:16.748790: [debug] Installed tools:
- ghc-tinfo6-9.10.2
2025-09-11 16:02:16.748913: [debug] Run process: /sbin/ldconfig -p
2025-09-11 16:02:16.750329: [debug] Process finished in 1ms: /sbin/ldconfig -p
2025-09-11 16:02:16.750378: [debug] Did not find shared library libc.musl-x86_64.so.1
2025-09-11 16:02:16.750447: [debug] Run process: /bin/ldd --version
2025-09-11 16:02:16.752107: [debug] Process finished in 2ms: /bin/ldd --version
2025-09-11 16:02:16.752154: [debug] Found shared library libc6 in version: 2.42
2025-09-11 16:02:16.752600: [debug] Did not find shared library libtinfo.so.5
2025-09-11 16:02:16.752708: [debug] Found shared library libtinfo.so.6 in /usr/lib/
2025-09-11 16:02:16.752750: [debug] Found shared library libncursesw.so.6 in 'ldconfig -p' output
2025-09-11 16:02:16.752802: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
2025-09-11 16:02:16.752979: [debug] Did not find shared library libgmp.so.3
2025-09-11 16:02:16.753011: [debug] Potential GHC builds: tinfo6, ncurses6
2025-09-11 16:02:16.753071: [debug] Found already installed GHC builds: tinfo6
2025-09-11 16:02:16.753250: [debug] (SQL) SELECT "id","actual_version","arch","ghc_path","ghc_size","ghc_modified","ghc_pkg_path","runghc_path","haddock_path","cabal_version","global_db","global_db_cache_size","global_db_cache_modified","info","global_dump" FROM "compiler_cache" WHERE "ghc_path"=?; [PersistText "/home/joan/.local/share/stack/programs/x86_64-linux/ghc-tinfo6-9.10.2/bin/ghc-9.10.2"]
2025-09-11 16:02:16.799258: [debug] Loaded compiler information from cache
2025-09-11 16:02:16.799393: [debug] Asking for a supported GHC version
2025-09-11 16:02:16.799442: [debug] Resolving package entries
2025-09-11 16:02:16.799504: [debug] Parsing the targets
2025-09-11 16:02:16.804234: [debug] Applying and checking flags
2025-09-11 16:02:16.806935: [debug] SourceMap constructed
2025-09-11 16:02:16.812329: [debug] Starting to execute command inside EnvConfig
2025-09-11 16:02:16.815174: [debug] Finding out which packages are already installed
2025-09-11 16:02:16.815343: [debug] Run process: /home/joan/.local/share/stack/programs/x86_64-linux/ghc-tinfo6-9.10.2/bin/ghc-pkg-9.10.2 --global --no-user-package-db dump --expand-pkgroot
2025-09-11 16:02:16.896271: [error] Received ExitFailure (-11) when running
Raw command: /home/joan/.local/share/stack/programs/x86_64-linux/ghc-tinfo6-9.10.2/bin/ghc-pkg-9.10.2 --global --no-user-package-db dump --expand-pkgroot
Stack version
stack --version
Version 3.7.1, Git revision cfae313a06ea9f7278e0ac55a58341fa0440f1aa x86_64 hpack-0.38.1
Method of installation
- Official binary, downloaded via haskellstack.org or from Stack's repository
Platform
Arch Linux x86_64 - amd64, normal 64bit intel i5
- 主要言語
- Haskell
- スター
- 4.1k
- フォーク
- 857
- 平均マージ
- 17時間 32分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
commercialhaskell/stack のほかの issue
-
Build Stack against Cabal >= 3.18対応中かも @mpilgrem が 14 日前に担当しました。 オープン
commercialhaskell/stack#6976 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
commercialhaskell/stack#6954 ·
-
Support type-checking without compiling再び着手できるかも @mpilgrem が 135 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomponent: build type: enhancement
commercialhaskell/stack#6951 · リアクション 3 件 · 担当者 1 名 ·
-
Support semaphore-compat 2.0.0再び着手できるかも @mpilgrem が 158 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンcomponent: build in progress type: enhancement
commercialhaskell/stack#6934 · コメント 3 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
commercialhaskell/stack#6864 · コメント 1 件 ·
commercialhaskell/stack の issue をすべて見る
似ている issue
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
alunduil/network-arbitrary#293 ·
メンテナーはふだん 1 日以内に返信
-
area:client bug priority-low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
simplex-chat/simplex-chat#8372 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信