Opened 9 years ago

Closed 9 years ago

Last modified 45 years ago

#453 closed bug (Fixed)

scavenge_one: strange object 47

Reported by: tuananhbirm Owned by: nobody
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Hi, i am running GHC 6.4, in Redhat 9, running
sometimes with flag -threaded on.


Please look at the file Mult.hs

and function: startM1 (17-20)

run this function for different inputs (orignially,
multiply (1%7) with (0%2)) try to run with : (1%3) and
(0%1)
                  (2%3) and (0%1)
                  (1%2) and (0%1)
                  (1%5) and (0%1)


Best regards
TuanAnh


Attachments (7)

Mult.2.hs (7.0 KB) - added by tuananhbirm 9 years ago.
Arithmetic.2.hs (5.2 KB) - added by tuananhbirm 9 years ago.
Converter.2.hs (3.5 KB) - added by tuananhbirm 9 years ago.
Stream.2.hs (3.5 KB) - added by tuananhbirm 9 years ago.
Thread.2.hs (2.8 KB) - added by tuananhbirm 9 years ago.
Trit.2.hs (2.4 KB) - added by tuananhbirm 9 years ago.
Utilities.2.hs (328 bytes) - added by tuananhbirm 9 years ago.

Download all attachments as: .zip

Change History (12)

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

Changed 9 years ago by tuananhbirm

comment:1 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

Fixed now, thanks for a good report.

I'd like to use this as a test case - how can I provide
inputs that allow it to run for a shorter time?

comment:2 Changed 9 years ago by simonmar

  • Status changed from assigned to closed

comment:3 Changed 9 years ago by tuananhbirm

Logged In: YES 
user_id=1341750

 what do you mean by "allow it to run for a shorter time" ? 

btw, how do i use the fixed version of ghc ? (is there a
patch for this bug or something similar ? )

Thanks a lot
TuanAnh

comment:4 Changed 9 years ago by simonmar

Logged In: YES 
user_id=48280

After fixing the bug, I ran the test program for about
30mins and it still hadn't finished.  Is there a way to run
it for, say, 5 seconds?

The fix will be in version 6.4.1.

comment:5 Changed 9 years ago by tuananhbirm

Logged In: YES 
user_id=1341750

 The program is supposed to compute an infinite list, so it
would never finish (however i never see the error after
100-150 digits). 

If you always get the result of [1,0,0,0,0.....     , then
try with inputs whose denominators are not power of 2 (like
(1%3 and 1%3)                                              
        or (1%3 and 3%5)) ...

Best regards
TuanAnh
Note: See TracTickets for help on using tickets.