HPC gives spurious results if sources are compiled with -cpp

Trac doesn't seem to work for us so I'm sending this bug report by email. ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1 ghc.exe -fhpc -cpp --make CommonHPC.hs -o CommonHPC commonHPC hpc markup CommonHPC --fun-entry-count This gives no entry counts for fact in Common.hs. With more complex modules, you get spurious red, yellow and green over expressions. Dominic. CommonHPC.hs: module Main (main) where import Common main = do test test test = do putStrLn $ show $ fact 4 putStrLn $ show $ fact 5 Common.hs: module Common ( fact ) where fact 0 = 1 fact n = n * fact (n-1)

Hello Simon, Wednesday, July 15, 2009, 4:36:28 PM, you wrote:
Trac doesn't seem to work for us so I'm sending this bug report by email.
What's the symptom?
i filled bugreport few days ago and when i hit send it was crashdumped -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

On Wed, Jul 15, 2009 at 04:59:27PM +0400, Bulat Ziganshin wrote:
Hello Simon,
Wednesday, July 15, 2009, 4:36:28 PM, you wrote:
Trac doesn't seem to work for us so I'm sending this bug report by email.
What's the symptom?
i filled bugreport few days ago and when i hit send it was crashdumped
If it gives a stacktrace and says "The database was locked" or something, then if you wait a couple of seconds and "reload" (say yes to the "are you sure you want to resend the data" questions) then it'll probably work. Thanks Ian

Simon Marlow
On 14/07/2009 10:08, Dominic Steinitz wrote:
Trac doesn't seem to work for us so I'm sending this bug report by email.
What's the symptom?
Cheers, Simon
I hit "New Bug" and get TICKET_CREATE privileges are required to perform this operation If I then hit "login" I get a Create New Ticket screen. I then fill in the details and hit submit and I get TICKET_CREATE privileges are required to perform this operation and all my details are lost :-(

On Wed, Jul 15, 2009 at 04:05:14PM +0000, Dominic Steinitz wrote:
Simon Marlow
writes: On 14/07/2009 10:08, Dominic Steinitz wrote:
Trac doesn't seem to work for us so I'm sending this bug report by email.
What's the symptom?
Cheers, Simon
I hit "New Bug" and get
TICKET_CREATE privileges are required to perform this operation
If I then hit "login" I get a Create New Ticket screen.
I then fill in the details and hit submit and I get
TICKET_CREATE privileges are required to perform this operation
and all my details are lost :-(
I've explicitly added "dominic" and "Dominic" to group "user", but I don't think that should be necessary. If that doesn't fix it then my guess would be that you have some sort of firewall or HTTP proxy that is fiddling with the cookie data. When you log in, does trac say "logged in as ...", or does it still look like you are not logged in? Thanks Ian

Ian Lynagh wrote:
On Wed, Jul 15, 2009 at 04:05:14PM +0000, Dominic Steinitz wrote:
Simon Marlow
writes: On 14/07/2009 10:08, Dominic Steinitz wrote:
Trac doesn't seem to work for us so I'm sending this bug report by email. What's the symptom?
Cheers, Simon
I hit "New Bug" and get
TICKET_CREATE privileges are required to perform this operation
If I then hit "login" I get a Create New Ticket screen.
I then fill in the details and hit submit and I get
TICKET_CREATE privileges are required to perform this operation
and all my details are lost :-(
I've explicitly added "dominic" and "Dominic" to group "user", but I don't think that should be necessary.
If that doesn't fix it then my guess would be that you have some sort of firewall or HTTP proxy that is fiddling with the cookie data.
When you log in, does trac say "logged in as ...", or does it still look like you are not logged in?
Thanks Ian
Ian, We are behind a proxy and a firewall so that's the most likely explanation. I don't think I have a problem logging in to other sites (I'm sure I would have noticed). I'm not in work now so I can't try anything out. I know I have to set up various darcs environment variables at work to get darcs to work (DARCS_PROXYUSERPWD is one and there may be another). Thanks for investigating, Dominic.

On Tue, Jul 14, 2009 at 09:08:46AM +0000, Dominic Steinitz wrote:
ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1
ghc.exe -fhpc -cpp --make CommonHPC.hs -o CommonHPC
commonHPC
hpc markup CommonHPC --fun-entry-count
This gives no entry counts for fact in Common.hs.
Thanks for the report; I've filed it here: http://hackage.haskell.org/trac/ghc/ticket/3376 Thanks Ian
participants (4)
-
Bulat Ziganshin
-
Dominic Steinitz
-
Ian Lynagh
-
Simon Marlow