Ticket #249 (closed merge: fixed)

Opened 9 years ago

Last modified 5 years ago

-caf-all bugs

Reported by: simonmar Owned by: igloo
Priority: low Milestone: 6.6.1
Component: Profiling Version: 6.2.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: prof001 prof002 Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

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

Changed 8 years ago 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

Changed 7 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.6.1
  • os set to Unknown
  • architecture set to Unknown
  • description modified (diff)

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

Changed 7 years ago by igloo

  • testcase set to prof001 prof002

Changed 6 years ago by simonmar

  • owner changed from simonmar to igloo
  • status changed from assigned to new
  • 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

Changed 6 years ago by igloo

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

Merged.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.