Closed iand675 closed 13 years ago
Also of note, running $(appname)-test instead works fine.
If it's a segfault, it's almost certainly not code from Yesod. The one exception would be the database backend. Which one are you using?
sqlite
However, I've tried it on a database-free app as well and still get a segfault. I'm not saying it's yesod specifically, but just wanted to make you aware.
Understood, just trying to diagnose. If you get any more information on this, please let me know. In the meanwhile, I think the major goal for Yesod 0.9 will be to overhaul wai-handler-devel. I have a few ideas of how to do that...
After a lot of poking around, it seems that it's a bug in Hint. Good call.
Can you send a bug report either to the author of the cafe?
Still doing a little investigation to get more details, will file report soon.
I'm having the same problem. Running ubuntu 10.10 64bit on VirtualBox with a Windows 7 host.
Fresh install of GHC 7.02 and the haskell-platform-2011.2.0.0.
The error is: Attempting to interpret your app... Interpreting success, new app loaded GET /auth/page/email/register Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Segmentation fault
And looking into /var/log/syslog I find this error: Apr 8 08:45:41 ubuntu kernel: [60503.892516] wai-handler-dev[2445] general protection ip:43429d58 sp:7fa68f0f9de0 error:0 in HSnetwork-2.2.1.10.o[4340f000+132000]
I know there were a few issues with GHC 7.02. Can you try again with 7.03?
I upgraded GHC to 7.03 and followed the yesod in 5 minutes steps, also unregistering wai-0.4.0 and I'm still getting a segmentation fault.
OK, sounds like more motivation to me to do the overhaul of wai-handler-devel then. I don't think fixing Hint will be an easy task. Thanks for checking on the new version.
I haven't been able to track it down where it's happening exactly, but here's what I do know:
I ran the generator to create a fresh app with a fresh install of GHC 7.0.3. Upon running
I received the following output:
OS X 10.6 GHC 7.0.3
Packages installed by yesod & cabal install of app: