Bus Error/Segmentation Fault

9 views
Skip to first unread message

ryan....@gmail.com

unread,
Jan 20, 2017, 1:11:06 AM1/20/17
to Shake build system
When running my shake pipeline I sometimes get bus errors or segmentation faults. I've run into this again recently and this time it's happening consistently after a particular system call. When I run the command from the command line it works fine, and also it's worked fine before in previous instances.

Any idea what would cause a segmentation fault in a simple shake setup? Any tips for debugging?

Thanks,
Ryan

Neil Mitchell

unread,
Jan 20, 2017, 1:51:30 AM1/20/17
to Ryan Eckbo, Shake build system
Hi Ryan,

Unfortunately Shake seems to be uniquely good at triggering GHC errors
(I think it's hit about 4 over its history). Has anything changed
recently? In particular, have you upgraded Shake or the Process
library? What GHC are you on? Which OS?

No shake-specific tips - just minimise the test case, and then at some
point it usually stops involving Shake at all. Since Shake doesn't do
any C stuff, it's rarely actually Shake.

Thanks, Neil

ryan....@gmail.com

unread,
Jan 21, 2017, 7:01:58 PM1/21/17
to Shake build system
I fixed the problem - it had something to do with mismatched gcc/stack versions in a cluster environment. I did a stack clean/build in a fresh environment and it started working again. Phew!

Thanks,
Ryan

Neil Mitchell

unread,
Jan 22, 2017, 8:55:52 AM1/22/17
to Ryan Eckbo, Shake build system
Glad it's fixed - although we now have 3 instances of stack messing up
a compile and screwing up in a few short weeks... I've added a link to
the ticket https://github.com/ndmitchell/shake/issues/510 pointing at
this thread - hopefully a pattern will emerge.

Thanks, Neil
Reply all
Reply to author
Forward
0 new messages