
#11300: outofmem RTS testcase fails on ARM ----------------------------------+------------------------------- Reporter: bgamari | Owner: bgamari Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Linux | Architecture: arm Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ----------------------------------+------------------------------- Comment (by bgamari): The problem appears to be that the RTS is failing to allocate, {{{ $ gdb ./outofmem ... Reading symbols from ./outofmem...done. (gdb) break stg_exit Breakpoint 1 at 0x32a378: file rts/RtsStartup.c, line 533. (gdb) run Starting program: /mnt/ext/exp/ghc/testsuite/tests/rts/outofmem [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux- gnueabihf/libthread_db.so.1". outofmem: out of memory (requested 1074790400 bytes) Breakpoint 1, stg_exit (n=1) at rts/RtsStartup.c:533 533 if (exitFn) (gdb) bt #0 stg_exit (n=1) at rts/RtsStartup.c:533 #1 0x0034d5a8 in my_mmap_or_barf (addr=0x76900000, size=1074790400, operation=3) at rts/posix/OSMem.c:225 #2 0x0034d710 in osGetMBlocks (n=1025) at rts/posix/OSMem.c:285 #3 0x00370e68 in getCommittedMBlocks (n=1025) at rts/sm/MBlock.c:534 #4 0x00370f68 in getMBlocks (n=1025) at rts/sm/MBlock.c:580 #5 0x0033facc in alloc_mega_group (mblocks=1025) at rts/sm/BlockAlloc.c:327 #6 0x0033fbdc in allocGroup (n=262145) at rts/sm/BlockAlloc.c:354 #7 0x0034a0c8 in allocate (cap=0x3f02c0 <MainCapability>, n=268435459) at rts/sm/Storage.c:818 #8 0x00353070 in stg_newByteArrayzh$def () Backtrace stopped: previous frame identical to this frame (corrupt stack?) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11300#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler