[GHC] #14006: Heap profiling ghc gives hp2ps error
GHC
ghc-devs at haskell.org
Mon Jul 24 17:39:30 UTC 2017
#14006: Heap profiling ghc gives hp2ps error
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.4.1
Component: Runtime System | Version: 8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Debugging | Unknown/Multiple
information is incorrect | Test Case:
Blocked By: | Blocking:
Related Tickets: #11645 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by bgamari:
Old description:
> Running GHC with heap profiling and then running `hp2ps` on the result
> gives
>
> {{{
> hp2ps: ghc-stage2.hp, line 17405, samples out of sequence
> }}}
>
> Reproduction (GHC commit 4700baaf8f9bf3c44a53a595d840c7c14cfd6f98)
>
> {{{
> cabal unpack skylighting-0.1.1.5
> cd skylighting-0.1.1.5
> cabal configure --with-ghc=$HOME/src/ghc-clean-july12/inplace/bin/ghc-
> stage2 \
> --enable-profiling -fexecutable
> cabal build
> touch src/Skylighting/Syntax/Php.hs
>
> /home/dfeuer/src/ghc-clean-july12/inplace/bin/ghc-stage2 --make -i \
> -isrc -idist/build -O -prof -fprof-auto-exported -osuf p_o -hisuf \
> p_hi -optPdist/build/autogen/cabal_macros.h -hide-all-packages \
> -package-db dist/package.conf.inplace -package-id aeson-1.2.1.0 \
> -package base-4.10.0.0 -package blaze-html-0.9.0.1 -package \
> bytestring-0.10.8.2 -package case-insensitive-1.2.0.10 -package \
> containers-0.5.10.2 -package directory-1.3.0.2 -package \
> filepath-1.4.1.2 -package hxt-9.3.1.16 -package mtl-2.2.1 -package \
> regex-pcre-builtin-0.94.4.8.8.35 -package safe-0.3.15 -package \
> text-1.2.2.2 -package utf8-string-1.0.1.1 -XHaskell2010 \
> Skylighting.Types Skylighting.Regex \
> Skylighting.Tokenizer Skylighting.Syntax.Php -j1 +RTS \
> -s -h -N1
>
> hp2ps ghc-stage2.hp
> }}}
New description:
Running GHC with heap profiling and then running `hp2ps` on the result
gives
{{{
hp2ps: ghc-stage2.hp, line 17405, samples out of sequence
}}}
Reproduction (GHC commit 4700baaf8f9bf3c44a53a595d840c7c14cfd6f98)
{{{
cabal unpack skylighting-0.1.1.5
cd skylighting-0.1.1.5
cabal install --enable-profiling --only-dependencies -fexecutable
cabal configure --with-ghc=$HOME/src/ghc-clean-july12/inplace/bin/ghc-
stage2 \
--enable-profiling -fexecutable
cabal build
touch src/Skylighting/Syntax/Php.hs
/home/dfeuer/src/ghc-clean-july12/inplace/bin/ghc-stage2 --make -i \
-isrc -idist/build -O -prof -fprof-auto-exported -osuf p_o -hisuf \
p_hi -optPdist/build/autogen/cabal_macros.h -hide-all-packages \
-package-db dist/package.conf.inplace -package-id aeson-1.2.1.0 \
-package base-4.10.0.0 -package blaze-html-0.9.0.1 -package \
bytestring-0.10.8.2 -package case-insensitive-1.2.0.10 -package \
containers-0.5.10.2 -package directory-1.3.0.2 -package \
filepath-1.4.1.2 -package hxt-9.3.1.16 -package mtl-2.2.1 -package \
regex-pcre-builtin-0.94.4.8.8.35 -package safe-0.3.15 -package \
text-1.2.2.2 -package utf8-string-1.0.1.1 -XHaskell2010 \
Skylighting.Types Skylighting.Regex \
Skylighting.Tokenizer Skylighting.Syntax.Php -j1 +RTS \
-s -h -N1
hp2ps ghc-stage2.hp
}}}
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14006#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list