
#14089: Segmentation fault/access violation using Yesod and Postgresql ---------------------------------+-------------------------------------- Reporter: Burtannia | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by Burtannia): Replying to [comment:4 RyanGlScott]: Hi, the steps to reproduce are following the yesod quick start guide, I was using yesod-postgres at the time rather than yesod-sqlite: stack new project-name yesod-postgres && cd project-name stack build yesod-bin cabal-install --install-ghc stack build website-0.0.0 is because I named the project "website", if you called it potato then that package would be potato-0.0.0. ---- Running it now is giving me a different error: {{{ potato-0.0.0: build (lib + exe) Preprocessing library potato-0.0.0... [ 1 of 11] Compiling Settings ( src\Settings.hs, .stack- work\dist\ca59d0 ab\build\Settings.o ) -- While building package potato-0.0.0 using: C:\sr\setup-exe-cache\x86_64-windows\Cabal- simple_Z6RU0evB_1.24.2.0_ghc-8. 0.2.exe --builddir=.stack-work\dist\ca59d0ab build lib:potato exe:potato --ghc-o ptions " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure (-1073740940) }}} I then get a dialog box telling me ghc has stopped working. ---- If I use the yesod-sqlite template rather than yesod-postgres I get the same seg fault as before: {{{ emu-0.0.0: configure (lib + exe) Configuring emu-0.0.0... emu-0.0.0: build (lib + exe) Preprocessing library emu-0.0.0... [ 1 of 11] Compiling Settings ( src\Settings.hs, .stack- work\dist\ca59d0 ab\build\Settings.o ) [ 2 of 11] Compiling Settings.StaticFiles ( src\Settings\StaticFiles.hs, .stack- work\dist\ca59d0ab\build\Settings\StaticFiles.o ) Segmentation fault/access violation in generated code -- While building package emu-0.0.0 using: C:\sr\setup-exe-cache\x86_64-windows\Cabal- simple_Z6RU0evB_1.24.2.0_ghc-8. 0.2.exe --builddir=.stack-work\dist\ca59d0ab build lib:emu exe:emu --ghc- options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14089#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler