Hi,
I'm trying to deploy a snap-0.11 application under a sub-url and ran into a segmentation fault. I could reproduce it via:
mkdir testapp
cd testapp
snap-0.11 init default
cabal-dev install-deps
# change src/Site.hs:85 from
# addRoutes routes
# to
# addRoutes [("/foo/bar", route routes)]
cabal-dev configure
cabal-dev build
dist/build/testapp/testapp
(I don't know if this is the intended way to install an application under a sub-url, but couldn't find documentation adressing this.)
While URLs like /foo/bar, /foo/bar/login etc. work as expected, the url /foo/ leads to a segmentation fault (using GHC 7.6.2):
$ dist/build/snap-011-default/snap-011-default
no port specified, defaulting to port 8000
User JSON datafile not found. Creating a new one.
Initializing app @ /
Initializing heist @ /
...loaded 7 templates from ~/testapp/snaplets/heist/templates
Initializing CookieSession @ /sess
Initializing JsonFileAuthManager @ /auth
Listening on
http://0.0.0.0:8000/ Segmentation fault
The log files also do not mention anything suspicious.
I really appreciate some advice on this issue. If someone needs more information about my environment, I will be happy to provide it.
Regards,
Björn