While that might be a good short term solution to the problem, and good general advice for making sure code runs smoothly on the production server, it's not a good long term response to this problem. Mac users should be able to run Yesod locally. Hopefully our GSoC project will help fix this, but if anyone running a Mac has time to try and isolate this bug, I'd appreciate it.
I have no advice, and without a Mac, can't really help too much. It might be worth turning to the cafe or the GHC team for some advice at this point. At the very least, it's good if they know that there's some regression in the 7.4 series.
Michael
I seem to recall being able to do this earlier today, although I can't
confirm as I've blown away my Haskell install again.
Hi,On Friday, May 4, 2012 6:37:24 AM UTC+2, Luite Stegeman wrote:
This is probably a bug in GHC 7.4.1. Unfortunately I haven't been able
to make a smaller test case, or to find out more about why this
happens. If you do, please report, perhaps we can narrow it down to
open a ticket.
Given that you've worked this bug down to a much simpler reproducing
case, would it be possible to file a bug with GHC?
Well, it turns out that it was relatively simple to isolate where in Yesod the bug is triggered.Here is a minimal program that causes the segfault. It's almost certainly a ghc bug
but is it triggered when one tries to do sql migrations. So it could actually be the sqlite3 driver.
On Friday, May 4, 2012 12:25:21 PM UTC+10, Daniel Santa Cruz wrote:Hello all,I have tried to start my journey into Haskell web development tonight, but I seem to have hit a few snags. I'm on a Mac, using OS X 10.7.3, with ghc 7.4.1 installed via homebrew, and cabal-install-0.14.0 installed from source.On a completely clean ghc install (i.e. after removing ~/.ghc and ~/.cabal), an attempt at: "cabal install yesod-platform" failed, due to language-javascript requiring a version of happy >= 1.18.5 but could not be found. Interestingly, installing happy by itself installs 1.18.9. Attempting an install of the yesod-platform after that seemed to work like a charm.I then followed the instructions to create a scaffolded site via "yesod init", specifying sqlite as my database. Trying to do "yesod devel" on my site complained about persistence-sqlite missing, which was trivial to fix -- I assume that this is not installed when doing the yesod-platform because there are multiple options available. Once that was done, I tried to do the "yesod devel" again, only to be met with:
> yesod develYesod devel server. Press ENTER to quitResolving dependencies...
Configuring demo-0.0.0...Rebuilding application...Building demo-0.0.0...Preprocessing library demo-0.0.0...Registering demo-0.0.0...
Starting development server: runghc -package-confdist/package.conf.inplace devel.hsStarting devel applicationDevel application launched: http://localhost:3000Exit code: ExitFailure 11
Did I miss something along the way? Is there any other debugging information I can provide?
Thanks,Daniel