Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
"Exit code: ExitFailure 11" when trying yesod devel
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 49 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniel Santa Cruz  
View profile  
 More options May 3 2012, 10:25 pm
From: Daniel Santa Cruz <dstc...@gmail.com>
Date: Thu, 3 May 2012 19:25:21 -0700 (PDT)
Local: Thurs, May 3 2012 10:25 pm
Subject: "Exit code: ExitFailure 11" when trying yesod devel

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 devel

Yesod devel server. Press ENTER to quit
Resolving 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.hs
Starting devel application
Devel application launched: http://localhost:3000
Exit code: ExitFailure 11

Did I miss something along the way? Is there any other debugging
information I can provide?

Thanks,
Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luite Stegeman  
View profile  
 More options May 4 2012, 12:37 am
From: Luite Stegeman <stege...@gmail.com>
Date: Fri, 4 May 2012 06:37:24 +0200
Local: Fri, May 4 2012 12:37 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
On Fri, May 4, 2012 at 4:25 AM, Daniel Santa Cruz <dstc...@gmail.com> wrote:

> Yesod devel server. Press ENTER to quit
> Resolving 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.hs
> Starting devel application
> Devel application launched: http://localhost:3000
> Exit code: ExitFailure 11

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.

The only fix I've found is downgrading to GHC 7.0.4, a few weeks ago
the latest STABLE snapshots still had this problem, so unless we can
find this soon, this will probably be a problem in the next Haskell
platform release.

luite


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options May 4 2012, 7:20 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Fri, 4 May 2012 14:20:19 +0300
Local: Fri, May 4 2012 7:20 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

Just to confirm: does this issue only exist on Mac? I just tested on a
Linux machine (LMDE 64-bit) with no issues.

Michael


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luite Stegeman  
View profile  
 More options May 4 2012, 8:54 am
From: Luite Stegeman <stege...@gmail.com>
Date: Fri, 4 May 2012 14:54:12 +0200
Local: Fri, May 4 2012 8:54 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

On Fri, May 4, 2012 at 1:20 PM, Michael Snoyman <mich...@snoyman.com> wrote:
> Just to confirm: does this issue only exist on Mac? I just tested on a
> Linux machine (LMDE 64-bit) with no issues.

Yes, mac only, possibly only 64 bit. (System here: OS X 10.7.3, 64 bit
GHC, xcode 4.3 with llvm-gcc i686-apple-darwin11-llvm-gcc-4.2 (GCC)
4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) )

luite


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Weber  
View profile  
 More options May 4 2012, 9:07 am
From: Greg Weber <g...@gregweber.info>
Date: Fri, 4 May 2012 06:07:08 -0700
Local: Fri, May 4 2012 9:07 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
I recommend using a VM (not just for Haskell, but anything you would
deploy to Linux) on Mac if you have 8G of memory (and can easily spare
some for your VMs). When the new Haskell Platform comes out I want to
create a downloadable VM.

Greg Weber


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options May 4 2012, 9:34 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Fri, 4 May 2012 16:34:29 +0300
Local: Fri, May 4 2012 9:34 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

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.
On May 4, 2012 4:07 PM, "Greg Weber" <g...@gregweber.info> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luite Stegeman  
View profile  
 More options May 4 2012, 9:39 am
From: Luite Stegeman <stege...@gmail.com>
Date: Fri, 4 May 2012 15:39:18 +0200
Local: Fri, May 4 2012 9:39 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
On Fri, May 4, 2012 at 3:34 PM, Michael Snoyman <mich...@snoyman.com> wrote:
> 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've already spent some time on this, but so far without any success.
I've tried gdb and valgrind (the latter needs some extra syscall
wrappers to support the ghc runtime on 64 bit OS X), but haven't been
able to narrow it down in any way. Does anyone have suggestions for
strategies or tools that might help here? Valgrind reports some
invalid memory accesses, but haskell being haskell, getting
information about where and why is a whole different matter...

luite


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options May 4 2012, 9:44 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Fri, 4 May 2012 16:44:00 +0300
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

On May 4, 2012 4:39 PM, "Luite Stegeman" <stege...@gmail.com> wrote:

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Weber  
View profile  
 More options May 4 2012, 9:49 am
From: Greg Weber <g...@gregweber.info>
Date: Fri, 4 May 2012 06:49:02 -0700
Local: Fri, May 4 2012 9:49 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
Have you tried the new profiling-based stack trace feature? I have not yet.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luite Stegeman  
View profile  
 More options May 4 2012, 9:49 am
From: Luite Stegeman <stege...@gmail.com>
Date: Fri, 4 May 2012 15:49:55 +0200
Local: Fri, May 4 2012 9:49 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

On Fri, May 4, 2012 at 3:44 PM, Michael Snoyman <mich...@snoyman.com> wrote:
> 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.

I've asked/mentioned this in the #ghc irc channel a few times but
without any results (Simon Marlow is often there). No ticket yet
because the test case (default yesod scaffold) isn't terribly useful
for tracking down the bug.

luite


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luite Stegeman  
View profile  
 More options May 4 2012, 10:17 am
From: Luite Stegeman <stege...@gmail.com>
Date: Fri, 4 May 2012 16:17:50 +0200
Local: Fri, May 4 2012 10:17 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

On Fri, May 4, 2012 at 3:49 PM, Greg Weber <g...@gregweber.info> wrote:
> Have you tried the new profiling-based stack trace feature? I have not yet.

Haven't tried it yet, but i thought that would only help with stack
traces from haskell exceptions, not with segfaults. Do you know if it
should?

luite


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Weber  
View profile  
 More options May 4 2012, 10:37 am
From: Greg Weber <g...@gregweber.info>
Date: Fri, 4 May 2012 07:37:16 -0700
Local: Fri, May 4 2012 10:37 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
With profiling there should be some kind of information on how the
program is executing that is always present. It should be possible to
log function calls while the program is running. This is all
theoretical though, I haven't tried it. Probably I am giving really
bad advice :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
srhb  
View profile  
 More options Jun 20 2012, 4:34 am
From: srhb <sbrofe...@gmail.com>
Date: Wed, 20 Jun 2012 01:34:19 -0700 (PDT)
Local: Wed, Jun 20 2012 4:34 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

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.

This error still persists on GHC 7.4.2

-- Sarah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lyndon Maydwell  
View profile   Translate to Translated (View Original)
 More options Jun 20 2012, 4:54 am
From: Lyndon Maydwell <maydw...@gmail.com>
Date: Wed, 20 Jun 2012 16:54:46 +0800
Local: Wed, Jun 20 2012 4:54 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
This is the exact issue I'm trying to resolve now.

I've built 4 different versions of GHC as updating GHC seemed to
resolve it in the past. The problem seems to be related to runghc on
devel.hs as I was able to launch the server fine when I used the
binary. I'll be more than happy to help resolve this as I love Yesod
when it's all working smoothly, but it is a real pain when a large
chunk of time is taken up dealing with this issue.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options Jun 20 2012, 5:51 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Wed, 20 Jun 2012 12:51:50 +0300
Local: Wed, Jun 20 2012 5:51 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

I'd like to get this resolved as well, but I have no access to a Mac
system, and even if I did, my complete lack of experience on that platform
probably wouldn't help.

Here's a simple question: are you able to compile and run devel.hs?

Michael

On Wed, Jun 20, 2012 at 11:54 AM, Lyndon Maydwell <maydw...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lyndon Maydwell  
View profile  
 More options Jun 20 2012, 5:57 am
From: Lyndon Maydwell <maydw...@gmail.com>
Date: Wed, 20 Jun 2012 17:57:40 +0800
Local: Wed, Jun 20 2012 5:57 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rodrigo Gadea  
View profile  
 More options Jun 20 2012, 6:10 am
From: Rodrigo Gadea <rodrigo.ga...@gmail.com>
Date: Wed, 20 Jun 2012 07:10:27 -0300
Local: Wed, Jun 20 2012 6:10 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

On Wed, Jun 20, 2012 at 6:57 AM, Lyndon Maydwell <maydw...@gmail.com> wrote:
> 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.

Yeh, don't tell anyone but Haskell's package system (cabal et al.) really
sucks. I don't think the "reinventing the wheel" approach is valid here,
scale is showing that despite of "programming / sysadmin-on-spare-time",
the package system has to be reviewed in order to keep "growing" on a
"stable manner". That said (as the *ssh*le of Torvalds said), I find darcs
way better than git (it's more bazaar-esque), so it's surprising (to me)
that having a such a good vcs they didn't spoke between them. (Heading to
AR (tomorrow) - will see if I can make it for Rants Friday).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lyndon Maydwell  
View profile  
 More options Jun 20 2012, 10:41 am
From: Lyndon Maydwell <maydw...@gmail.com>
Date: Wed, 20 Jun 2012 22:41:01 +0800
Local: Wed, Jun 20 2012 10:41 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
It looks like I probably recalled incorrectly :)

The compiled version of devel.hs has the same issue, although there is
no error code listed on exit.

Example session:

lyndon@endpin ~/temp/Foo yesod devel
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring Foo-0.0.0...
Rebuilding application...
Building Foo-0.0.0...
Preprocessing library Foo-0.0.0...
[1 of 8] Compiling Settings.Development ( Settings/Development.hs,
dist/build/Settings/Development.o )
[2 of 8] Compiling Model            ( Model.hs, dist/build/Model.o )
[3 of 8] Compiling Settings         ( Settings.hs, dist/build/Settings.o )
[4 of 8] Compiling Settings.StaticFiles ( Settings/StaticFiles.hs,
dist/build/Settings/StaticFiles.o )
[5 of 8] Compiling Foundation       ( Foundation.hs, dist/build/Foundation.o )
[6 of 8] Compiling Import           ( Import.hs, dist/build/Import.o )
[7 of 8] Compiling Handler.Home     ( Handler/Home.hs,
dist/build/Handler/Home.o )
[8 of 8] Compiling Application      ( Application.hs, dist/build/Application.o )
Registering Foo-0.0.0...
Starting development server: runghc
-package-confdist/package.conf.inplace devel.hs
Starting devel application
Devel application launched: http://localhost:3000
Exit code: ExitFailure 11

lyndon@endpin ~/temp/Foo ghc --make devel.hs
[1 of 1] Compiling Main             ( devel.hs, devel.o )
Linking devel ...
lyndon@endpin ~/temp/Foo ./devel
Starting devel application
Devel application launched: http://localhost:3000
Migrating: CREATE TABLE "user"("id" INTEGER PRIMARY KEY,"ident"
VARCHAR NOT NULL,"password" VARCHAR NULL,CONSTRAINT "unique_user"
UNIQUE ("ident"))
Migrating: CREATE TABLE "email"("id" INTEGER PRIMARY KEY,"email"
VARCHAR NOT NULL,"user" INTEGER NULL REFERENCES "user","verkey"
VARCHAR NULL,CONSTRAINT "unique_email" UNIQUE ("email"))
lyndon@endpin ~/temp/Foo ./devel
Starting devel application
Devel application launched: http://localhost:3000
lyndon@endpin ~/temp/Foo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options Jun 20 2012, 10:48 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Wed, 20 Jun 2012 17:48:05 +0300
Local: Wed, Jun 20 2012 10:48 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

Could you try removing the forkIO call in `main` in devel.hs? Also, what
happens if you keep the file the same, but compile with -threaded?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lyndon Maydwell  
View profile  
 More options Jun 20 2012, 10:51 am
From: Lyndon Maydwell <maydw...@gmail.com>
Date: Wed, 20 Jun 2012 22:51:44 +0800
Local: Wed, Jun 20 2012 10:51 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
ForkIO and -threaded changes don't seem to have had any impact.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ricardo Boccato Alves  
View profile  
 More options Jun 20 2012, 11:35 pm
From: Ricardo Boccato Alves <bocc...@gmail.com>
Date: Thu, 21 Jun 2012 00:35:48 -0300
Local: Wed, Jun 20 2012 11:35 pm
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
Not sure if this helps, but I only got this error with the 64bit
version of the Haskell Platfom (2012.2.0.0), when I switched to the
32bits version the problem stopped.

I am a Haskell newbie, but if there are any tests you want me to do
I'll be happy to help. I am using a MacBookPro Core2 duo, 4GB with OSX
10.7 (lion).

[]s,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Cantor  
View profile  
 More options Jun 21 2012, 12:58 pm
From: Max Cantor <mxcan...@gmail.com>
Date: Thu, 21 Jun 2012 09:58:08 -0700
Local: Thurs, Jun 21 2012 12:58 pm
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

I got this alot when using cabal dev.  Since I started using hsenv
(formerly virthualenv) and regular yesod devel the problem went away.

Max

On Wed, Jun 20, 2012 at 8:35 PM, Ricardo Boccato Alves <bocc...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Ambo  
View profile  
 More options Jun 22 2012, 3:01 am
From: Vincent Ambo <taz...@googlemail.com>
Date: Fri, 22 Jun 2012 09:01:03 +0200
Local: Fri, Jun 22 2012 3:01 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel

This error only happens when using the 64bit version of GHC.

Am 20.06.2012 um 10:34 schrieb srhb:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lyndon Maydwell  
View profile  
 More options Jun 22 2012, 3:31 am
From: Lyndon Maydwell <maydw...@gmail.com>
Date: Fri, 22 Jun 2012 15:31:48 +0800
Local: Fri, Jun 22 2012 3:31 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
I am also running a 64 bit GHC.

I'm leaning more towards GHC issue than Yesod issue at this point but
that's just a guess :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Snoyman  
View profile  
 More options Jun 22 2012, 3:40 am
From: Michael Snoyman <mich...@snoyman.com>
Date: Fri, 22 Jun 2012 10:40:48 +0300
Local: Fri, Jun 22 2012 3:40 am
Subject: Re: [Yesod] "Exit code: ExitFailure 11" when trying yesod devel
Based on everything I've heard, it *is* a GHC issue. I think Luite has
said as much in the past. The problem is that we don't have a simple
test case to reproduce. I do think that it would be worthwhile filing
a report with GHC and explain that we haven't been able to whittle the
problem down yet, and see if they have any advice.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 49   Newer >
« Back to Discussions « Newer topic     Older topic »