ExitError (-11) when /bin/sh is the dash shell

オープン
#6,806 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
haskell, shell

調査の方向性

/bin/sh を dash にリンクした状態で、まず報告に示されている詳細な stack build コマンドを使って失敗を再現します。プロセス呼び出し ghc-pkg ... dump --expand-pkgroot を追跡し、その後、/bin/sh として dash を使用した状態で Stack が正常にビルドを完了できることを確認します。

索引モデルが issue の本文から書いたものです。

説明

component: linux needs reproduction

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commercialhaskell/stack のほかの issue

commercialhaskell/stack の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。