
#7636: threadStackUnderflow: not enough space for return values -------------------------------+-------------------------------------------- Reporter: mojojojo | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 7.6.2 Component: Compiler | Version: 7.6.2 Keywords: | Os: MacOS X Architecture: x86_64 (amd64) | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Changes (by mojojojo): * version: 7.6.1 => 7.6.2 Comment: Here's what I did, but didn't get that output you expected: {{{ huge-black-box-mac:src mojojojo$ ghc -debug AmazonDataImporter [ 1 of 25] Compiling Database.PostgreSQL.Simple.QueryM ( Database/PostgreSQL/Simple/QueryM.hs, Database/PostgreSQL/Simple/QueryM.o ) [ 2 of 25] Compiling Database.PostgreSQL.Simple.SQL ( Database/PostgreSQL/Simple/SQL.hs, Database/PostgreSQL/Simple/SQL.o ) [ 3 of 25] Compiling Model.SearchSource ( Model/SearchSource.hs, Model/SearchSource.o ) [ 4 of 25] Compiling Util.PrettyPrint ( Util/PrettyPrint.hs, Util/PrettyPrint.o ) [ 5 of 25] Compiling OctalUTF8 ( OctalUTF8.hs, OctalUTF8.o ) [ 6 of 25] Compiling Model.SearchTask ( Model/SearchTask.hs, Model/SearchTask.o ) [ 7 of 25] Compiling Model.FileLogConfig ( Model/FileLogConfig.hs, Model/FileLogConfig.o ) [ 8 of 25] Compiling Model.OutputLogConfig ( Model/OutputLogConfig.hs, Model/OutputLogConfig.o ) [ 9 of 25] Compiling Model.Config ( Model/Config.hs, Model/Config.o ) [10 of 25] Compiling Data.Aeson.Parser.Internal ( Data/Aeson/Parser/Internal.hs, Data/Aeson/Parser/Internal.o ) [11 of 25] Compiling Data.Aeson.Functions ( Data/Aeson/Functions.hs, Data/Aeson/Functions.o ) [12 of 25] Compiling Data.Aeson.Generic2 ( Data/Aeson/Generic2.hs, Data/Aeson/Generic2.o ) [13 of 25] Compiling Data.Yaml.Generic ( Data/Yaml/Generic.hs, Data/Yaml/Generic.o ) [14 of 25] Compiling VK.Database ( VK/Database.hs, VK/Database.o ) [15 of 25] Compiling Model.AmazonDataImporterState ( Model/AmazonDataImporterState.hs, Model/AmazonDataImporterState.o ) [16 of 25] Compiling Util.Logging ( Util/Logging.hs, Util/Logging.o ) [17 of 25] Compiling Database.PostgreSQL.Simple.QueryA ( Database/PostgreSQL/Simple/QueryA.hs, Database/PostgreSQL/Simple/QueryA.o ) [18 of 25] Compiling Database.PostgreSQL.Simple.Queries ( Database/PostgreSQL/Simple/Queries.hs, Database/PostgreSQL/Simple/Queries.o ) [19 of 25] Compiling Database.Amazon.Artist ( Database/Amazon/Artist.hs, Database/Amazon/Artist.o ) [20 of 25] Compiling Database.Amazon.MP3 ( Database/Amazon/MP3.hs, Database/Amazon/MP3.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package pretty-1.1.1.0 ... linking ... done. Loading package array-0.4.0.1 ... linking ... done. Loading package deepseq-1.3.0.1 ... linking ... done. Loading package containers-0.5.0.0 ... linking ... done. Loading package bytestring-0.10.0.2 ... linking ... done. Loading package text-0.11.2.3 ... linking ... done. Loading package attoparsec-0.10.4.0 ... linking ... done. Loading package blaze-builder-0.3.1.0 ... linking ... done. Loading package old-locale-1.0.0.5 ... linking ... done. Loading package time-1.4.0.1 ... linking ... done. Loading package primitive-0.5.0.1 ... linking ... done. Loading package vector-0.10.0.1 ... linking ... done. Loading package blaze-textual-0.2.0.8 ... linking ... done. Loading package postgresql-libpq-0.8.2.2 ... linking ... done. Loading package template-haskell ... linking ... done. Loading package transformers-0.3.0.0 ... linking ... done. Loading package postgresql-simple-0.2.4.1 ... linking ... done. [21 of 25] Compiling Database.Amazon ( Database/Amazon.hs, Database/Amazon.o ) [22 of 25] Compiling Control.Concurrent.STM.TBQueue.Util ( Control/Concurrent/STM/TBQueue/Util.hs, Control/Concurrent/STM/TBQueue/Util.o ) [23 of 25] Compiling Control.Monad.Parallel ( Control/Monad/Parallel.hs, Control/Monad/Parallel.o ) [24 of 25] Compiling Config ( Config.hs, Config.o ) [25 of 25] Compiling Main ( AmazonDataImporter.hs, AmazonDataImporter.o ) Linking AmazonDataImporter ... huge-black-box-mac:src mojojojo$ gdb AmazonDataImporter GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug 5 03:00:42 UTC 2012) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ..... done (gdb) directory ~/Downloads/ghc-ghc-7.6.2-release Source directories searched: /Users/mojojojo/Downloads/ghc- ghc-7.6.2-release:$cdir:$cwd (gdb) run Starting program: /Users/mojojojo/Dropbox/Dev/radiox/vk- bot/src/AmazonDataImporter Reading symbols for shared libraries ++++.................................................... done Reading symbols for shared libraries ....................... done 2013-02-06 20:01:56 MSK: Fetching 1000 tasks AmazonDataImporter: Control.Monad.Trans.Resource.register': The mutable state is being accessed after cleanup. Please contact the maintainers. 2013-02-06 20:01:57 MSK: Fetching 1000 tasks 2013-02-06 20:01:58 MSK: Fetching 1000 tasks 2013-02-06 20:01:58 MSK: Fetching 1000 tasks AmazonDataImporter: internal error: threadStackUnderflow: not enough space for return values (GHC version 7.6.2 for x86_64_apple_darwin) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Program received signal SIGABRT, Aborted. 0x00007fff8e63fd46 in __kill () (gdb) bt #0 0x00007fff8e63fd46 in __kill () #1 0x00007fff99debdf0 in abort () #2 0x00000001011830b0 in rtsFatalInternalErrorFn (s=Could not find the frame base for "rtsFatalInternalErrorFn". ) at rts/RtsMessages.c:170 #3 0x0000000101182c28 in barf (s=0x1012020d0 "threadStackUnderflow: not enough space for return values") at rts/RtsMessages.c:42 #4 0x000000010118fee5 in threadStackUnderflow (cap=0x10134e1c0, tso=0x103993bc0) at rts/Threads.c:686 #5 0x000000010118a3be in findRetryFrameHelper (cap=0x10134e1c0, tso=0x103993bc0) at rts/Schedule.c:2782 #6 0x00000001011ad11e in stg_retryzh () Previous frame inner to this frame (gdb could not unwind past this frame) (gdb) }}} The source directory I pointed it to was a root of unpacked archive I got from here: https://github.com/ghc/ghc/archive/ghc-7.6.2-release.zip You'll have to provide some step-by-step instructions if you need something more. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7636#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler