Ticket #249 (closed merge: fixed)

Opened 4 years ago

Last modified 2 weeks ago

-caf-all bugs

Reported by: simonmar Assigned to: igloo
Priority: low Milestone: 6.6.1
Component: Profiling Version: 6.2.1
Severity: normal Keywords:
Cc: Difficulty: Unknown
Test Case: prof001 prof002 Architecture: Unknown/Multiple
Operating System: Unknown/Multiple

Description (Last modified by igloo)

P.C.Callaghan [p.c.callaghan@durham.ac.uk] submitted
this bug: 

I'm trying to use the -caf-all flag with ghc-6.02, in
conjunction with -O
(which means going via C...)

But in a few modules of a large program, the .hc files
contain duplicate
definitions of "MODsat_CAF_cc_ccs" (where MOD = a
particular module)

I can't see an obvious pattern to the number of
duplications. All the
affected modules use MPCs heavily. It doesn't look like
the duplications
are 1-1 with the instance decls. It only happens on a
few modules out
of many which also use classes heavily.

NB I hand-patched the .hc files by hand, and in the
results, not much of
the dictionary/caf info showed up! Should -auto-dicts work?


Change History

08/09/05 13:23:39 changed by pimlott

Logged In: YES 
user_id=498741

This problem is easily reproduced with GHC 6.4.  Just put
"main = return ()" in try.hs, then

    % ghc -prof -caf-all try.hs         
    /tmp/ghc27311.hc:155: error: redefinition of
‘Mainmain_CAF_cc_ccs’
    /tmp/ghc27311.hc:150: error: previous definition of
‘Mainmain_CAF_cc_ccs’ was here

10/13/06 08:13:35 changed by igloo

  • difficulty set to Unknown.
  • milestone set to 6.6.1.
  • os set to Unknown.
  • description changed.
  • architecture set to Unknown.

See also 931 for another example of the problem. Tested by prof001 and prof002.

10/16/06 18:09:15 changed by igloo

  • testcase set to prof001 prof002.

02/28/07 07:53:23 changed by simonmar

  • status changed from assigned to new.
  • owner changed from simonmar to igloo.
  • type changed from bug to merge.

Now fixed. To merge:

Wed Feb 28 07:50:09 PST 2007  Simon Marlow <simonmar@microsoft.com>
  * Fix #249 (-caf-all bugs)

and in the testsuite:

Wed Feb 28 15:51:29 GMT 2007  Simon Marlow <simonmar@microsoft.com>
  * prof001 & prof002 are not broken now

03/01/07 06:17:10 changed by igloo

  • status changed from new to closed.
  • resolution changed from None to fixed.

Merged.

09/30/08 08:40:45 changed by simonmar

  • architecture changed from Unknown to Unknown/Multiple.

09/30/08 08:52:01 changed by simonmar

  • os changed from Unknown to Unknown/Multiple.