2016-10-01 55 views
1

當我使用stack build構建一個包時,它在安裝依賴包期間隨機失敗。下面是一個例子錯誤消息:「堆棧構建」隨機失敗

While building package statistics-0.13.3.0 using: /home/work/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure (-11) Logs have been written to: /home/work/server/dev/taiji/.stack-work/logs/statistics-0.13.3.0.log

我說:「隨機失敗」,因爲這可以通過重啓stack build固定。但以後再構建另一個軟件包時會失敗。

我看了看dmesg | tail,它說:

[1029507.778048] ghc[16868]: segfault at 7d538d610628 ip 00007f5384094ed0 sp 00007ffceed0bda0 error 4 in libHSrts_thr-ghc8.0.1.so[7f538407a000+63000] [1029524.911751] ghc[17599]: segfault at 100206005838 ip 00007f1c727de754 sp 00007ffdc160fd58 error 4 in libHSghc-8.0.1-ghc8.0.1.so[7f1c6e4de000+49c9000] [1029533.035216] ghc[16789]: segfault at 7da273b664f0 ip 00007fa273b35a8e sp 00007ffe2f55d540 error 4 in libHSrts_thr-ghc8.0.1.so[7fa273b1c000+63000]

任何想法?

+1

日誌文件說什麼? –

+0

什麼都沒有。它是空的。 – kai

+1

GHC中的段錯誤提示編譯器錯誤,不是嗎? –

回答

0

這原來是一個內存缺陷問題。