[GHC] #2148: x86_64 code use several GiB of memory generates:
internal error: ASSERTION FAILED: file sm/Storage.c, line 1126
GHC
trac at galois.com
Thu Mar 13 16:51:07 EDT 2008
#2148: x86_64 code use several GiB of memory generates: internal error: ASSERTION
FAILED: file sm/Storage.c, line 1126
----------------------------+-----------------------------------------------
Reporter: twhitehead | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 6.8.3
Component: Runtime System | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86_64 (amd64)
Os: Linux |
----------------------------+-----------------------------------------------
Comment (by twhitehead):
I managed to cleanup the code even further and still have it exhibit the
bug. The new code just generate a list of M N-length substrings (when I
said prefixes above, I meant substrings) from the fixed !ByteString
['0'..'Z'].
Compiling as above ("ghc --make -O2 -debug Bug") and running with "./Bug 8
134217728" (i.e., N=8 and M=134217728) produces the following after about
an hour and three quarters:
{{{
Starting block 0
Starting block 1
Memory leak detected
gen 0 blocks : 57
gen 1 blocks : 2523057
nursery : 128
allocate() : 0
retainer : 0
arena blocks : 0
exec : 0
free : 5830
total : 2529072
in system : 3555720
Bug_: internal error: ASSERTION FAILED: file sm/Storage.c, line 1206
(GHC version 6.8.2 for x86_64_unknown_linux)
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
}}}
I'll attach the simplified code.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2148#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list