[ ghc-Bugs-940226 ] ghci failure using .ghci to define macro
SourceForge.net
noreply at sourceforge.net
Mon Aug 23 10:44:20 EDT 2004
Bugs item #940226, was opened at 2004-04-22 18:40
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=940226&group_id=8032
Category: Runtime System
Group: 5.04.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghci failure using .ghci to define macro
Initial Comment:
orielmaxime at yahoo.com
Windows 2000
I have defined a macro that I adore (it runs quick check
on all properties within a file). Manually, when I run
ghci, I type the following to set up that macro:
:load OdmQuickCheck
:def checkAll checkAll
I then proceed to the meat of my GHCI session, knowing
I can now type something like:
:checkAll IntersectionTest
and receive immediate feedback as to whether my
latest "optimization" actually broke the algorithm.
Okay. That's all background.
So, I put the two lines above into a .gchi file:
:load OdmQuickCheck
:def checkAll checkAll
Then, I invoked ghci with a different module from the
command line:
ghci IntersectionTest
I'm hoping, then, to be able to directly use the macro:
:checkAll IntersectionTest
After all the tests have run, something "bad" happens,
and I see the following:
C:\ghc\GHC-50~1.3\bin\ghc.exe: fatal error:
scavenge_stack: weird activation record found on
stack: 0
I think this may have something to do with the
compiled/interpreted state of the modules involved, and
whether the module itself imports OdmQuickCheck, but
I've been unable to so far to isolate these dependencies.
I'm hoping that you'll know right off... that it has
something to do with the :def command not fully binding
the macro... but if you have no idea, let me know and I
can provide more data, sample code, more data points,
etc. Don't hesitate to let me know what you need.
Thanks!
oriel
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2004-08-23 14:44
Message:
Logged In: YES
user_id=48280
Submitter reports that the problem no longer occurs with a
recent GHC.
----------------------------------------------------------------------
Comment By: Simon Marlow (simonmar)
Date: 2004-04-23 08:37
Message:
Logged In: YES
user_id=48280
This is a new one on me. Could you provide enough
instructions to reproduce the problem please?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=940226&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list