Skip to content

Heap profile w/ debugging RTS dumps core

stolz@menelaos [14:41:59]> ~/a.out +RTS -h
Segmentation fault (core dumped)
stolz@menelaos [14:42:00]> ~/a.out +RTS -hL
Segmentation fault (core dumped)
stolz@menelaos [14:42:55]> ~/a.out +RTS -hT
Segmentation fault (core dumped)

Relevant section from RtsFlags.c:
              case 'h': /* serial heap profile */
#if !defined(PROFILING) && defined(DEBUG)
                switch (rts_argv[arg][2]) {
                  case '\0':
                  case 'L':
                    RtsFlags.ProfFlags.doHeapProfile = HEAP_BY_INFOPTR;
                    break;
                  case 'T':
                    RtsFlags.ProfFlags.doHeapProfile = 
HEAP_BY_CLOSURE_TYPE;
                    break;

 [I don't need profiling, I just thought I'd get a list of all available 
RTS-flags on -h]
Trac metadata
Trac field Value
Version 6.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedNoReason
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information