6.4 profiling bug

Christian Maeder maeder at tzi.de
Wed Sep 21 11:26:23 EDT 2005


this bug is fixed in ghc-6.4.1 (see my attached profile)

Christian


Daniel Fischer wrote:
> Hello,
> I have encountered some strange behaviour with David Tweeds LaTeX-preprocessor
> (slightly modified code attached).
> When I compile it for profiling (-prof -auto-all) and run it on a .tex-file 
> containing some math-environment, it segfaults.
> Files without math are processed properly.
> All .tex-files are processed correctly (except for the weaknesses inherent in 
> the code) when the code is compiled not for profiling or with
> ghc-6.2.2 -prof -auto-all, so I'm rather convinced, it's a 6.4-bug.
> 
> If you could explain this behaviour, I'd be grateful.
> 
> Cheers,
> 
> Daniel Fischer
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

-------------- next part --------------
	Wed Sep 21 17:23 2005 Time and Allocation Profiling Report  (Final)

	   lpp +RTS -p -RTS Triv

	total time  =        0.00 secs   (0 ticks @ 20 ms)
	total alloc =     112,836 bytes  (excludes profiling overheads)

COST CENTRE                    MODULE               %time %alloc

trieLkp                        Trie                   0.0    8.9
relate                         Trie                   0.0   14.1
normTrie                       LPPTries               0.0    2.6
mathTrie                       LPPTries               0.0    6.1
lineCatTrie                    LPPTries               0.0    6.2
envNames                       LPPTries               0.0    4.7
CAF                            GHC.Handle             0.0    7.8
writeOutFile                   Main                   0.0   17.9
main                           Main                   0.0   12.5
format                         Main                   0.0    2.3
expEnd                         Main                   0.0    1.0
expBegin                       Main                   0.0    1.8
doMacs                         Main                   0.0    1.1
concRev                        Main                   0.0    2.0
break'                         Main                   0.0    6.5


                                                                                               individual    inherited
COST CENTRE              MODULE                                               no.    entries  %time %alloc   %time %alloc

MAIN                     MAIN                                                   1           0   0.0    0.0     0.0  100.0
 CAF                     Main                                                 172           3   0.0    0.1     0.0   71.6
  formParas              Main                                                 181           1   0.0    1.0     0.0    3.0
   lineType              Main                                                 185           7   0.0    0.0     0.0    2.0
    trieLkp              Trie                                                 186          22   0.0    1.0     0.0    2.0
     relate              Trie                                                 201          65   0.0    1.1     0.0    1.1
     con2tag_RelRes#     Trie                                                 200          65   0.0    0.0     0.0    0.0
   con2tag_LineCat#      LPPTries                                             184          46   0.0    0.0     0.0    0.0
  main                   Main                                                 178           1   0.0   12.5     0.0   68.4
   expContSeqsNSymbols   Main                                                 182           1   0.0    0.5     0.0   35.7
    doMacs               Main                                                 192          13   0.0    1.1     0.0   29.3
     concRev             Main                                                 198          19   0.0    2.0     0.0    2.0
     break'              Main                                                 193          60   0.0    6.5     0.0   26.2
      trieLkp            Trie                                                 194          66   0.0    7.5     0.0   19.6
       relate            Trie                                                 197         582   0.0   12.2     0.0   12.2
       con2tag_RelRes#   Trie                                                 196         582   0.0    0.0     0.0    0.0
    expCS                Main                                                 187           7   0.0    1.0     0.0    5.5
     expEnd              Main                                                 209           2   0.0    1.0     0.0    1.0
     expBegin            Main                                                 202           2   0.0    1.8     0.0    2.7
      getAbbr            Trie                                                 203           2   0.0    0.0     0.0    0.9
       compAbbr          Trie                                                 204           6   0.0    0.3     0.0    0.9
        relate           Trie                                                 207          29   0.0    0.5     0.0    0.5
        con2tag_RelRes#  Trie                                                 206          56   0.0    0.0     0.0    0.0
     trieLkp             Trie                                                 188          16   0.0    0.4     0.0    0.8
      relate             Trie                                                 191          24   0.0    0.3     0.0    0.3
      con2tag_RelRes#    Trie                                                 190          24   0.0    0.0     0.0    0.0
    splitScan            Main                                                 183           8   0.0    0.5     0.0    0.5
   format                Main                                                 180           1   0.0    2.3     0.0    2.3
   writeOutFile          Main                                                 179           1   0.0   17.9     0.0   17.9
 CAF                     GHC.Int                                              144           1   0.0    0.1     0.0    0.1
 CAF                     GHC.Handle                                           125           9   0.0    7.8     0.0    7.8
 CAF                     System.Posix.Internals                               109           9   0.0    0.2     0.0    0.2
 CAF                     LPPTries                                              92           5   0.0    0.1     0.0   20.3
  mathTrie               LPPTries                                             208           1   0.0    6.1     0.0    6.1
  envNames               LPPTries                                             205           1   0.0    4.7     0.0    4.7
  lineCatTrie            LPPTries                                             199           1   0.0    6.2     0.0    6.2
  normTrie               LPPTries                                             195           1   0.0    2.6     0.0    2.6
  csTrie                 LPPTries                                             189           1   0.0    0.8     0.0    0.8
 CAF                     Trie                                                  91           1   0.0    0.0     0.0    0.0


More information about the Glasgow-haskell-bugs mailing list