byorgey / BlogLiterately

Command-line tool for formatting and publishing blog posts.
GNU General Public License v3.0
19 stars 4 forks source link

segfaults, likely GHC bug #10

Closed bergey closed 10 years ago

bergey commented 10 years ago
2013-11-27 17:22:26 +0100   <cinimod`>  Ok it installed but I still get a segfault
2013-11-27 17:22:35 +0100   <cinimod`>  ~/Dropbox/Private/Ising $ ~/Library/Haskell/ghc-7.6.2/lib/BlogLiterately-diagrams-0.1.2.4/bin/BlogLiteratelyD Cutdown.lhs
2013-11-27 17:22:35 +0100   <cinimod`>  Segmentation fault: 11
2013-11-27 17:23:00 +0100   <bergey>    Someone should write a script that parses .cabal files, and does sandboxed builds with every possible combination of dependencies. Maybe with the nix-hash style Cabal that hasn't been written, to save time. :)
2013-11-27 17:23:29 +0100   <bergey>    Huh. This is where the fact that I don't actually use diagrams-builder may be a problem.
2013-11-27 17:23:53 +0100   <cinimod`>  Someone did write something like that at OdHac but I don't know if it ever got incorporated
2013-11-27 17:24:03 +0100   <bergey>    And I have to go. I'm happy to take a look this evening if you haven't sorted it by then.
2013-11-27 17:24:14 +0100   <cinimod`>  I am not even sure where to start
2013-11-27 17:24:50 +0100   <cinimod`>  I have never looked at the code base for BlogLiteratelyD
2013-11-27 17:24:56 +0100   <cinimod`>  I am merely a humble user
2013-11-27 17:25:25 +0100   <cinimod`>  I suspect you won't even be able to reproduce the problem
2013-11-27 17:28:33 +0100   <cinimod`>  With an older version of BlogLiterately I get
2013-11-27 17:28:36 +0100   <cinimod`>  ~/Dropbox/Private/Ising $ ~/Library/Haskell/ghc-7.6.2/lib/BlogLiterately-diagrams-0.1.2/bin/BlogLiteratelyD Cutdown.lhs
2013-11-27 17:28:36 +0100   <cinimod`>  BlogLiteratelyD: internal error: stg_ap_pp_ret
2013-11-27 17:28:36 +0100   <cinimod`>  (GHC version 7.6.2 for x86_64_apple_darwin)
2013-11-27 17:28:39 +0100   <cinimod`>  Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
2013-11-27 17:28:42 +0100   <cinimod`>  Abort trap: 6
byorgey commented 10 years ago

The second part is clearly a GHC bug. The first looks like what happens when you somehow link against a different version of a package than you built against.

byorgey commented 10 years ago

Since I haven't heard about any further problems, and there's no clear evidence this is really a problem with BlogLiterately, I'm closing this ticket.