[MLton] Overflow Exception

Raymond Racine ray@hcoop.net
Tue, 14 Sep 2004 22:34:08 -0400


Hey Steve,

I did try -exn-history true.
Ran in strace as well along with a C compile with cc-opt -g  in gdb to
see what I could see.  But I'm not facile in these areas.

It appears the handler [ ... handle exn => app print (MLton.Exn.history
exn)] around main is not being called. 

In fact it appears to die pretty much on exe "start-up".

Even though the code itself is pretty small I had lots of dependencies
on the smlnj-lib, SMLNJ Regexp stuff.  So I'll need to pack up and send
a chunk of stuff if it comes to that. 

I'll do more due diligence on my end so I'm not wasting your time and
then tar it up and ship it off if I don't see something.  I was sort of
fishing around for some kind of magic debug/compiler setting.

In order then,

#1. Attempt with MLton 200402027 
#2. Double check a few things.
#3  tar up a ready to go test case and mail it off to you.

Regards,

Ray


On Tue, 2004-09-14 at 22:07, Stephen Weeks wrote:

> > Originally sent to mlton-user list but I didn't see it make it so
> > trying MLton developer list.
> 
> That's because the address you sent from wasn't on the whitelist.  It
> now is.  I took the mail on MLton instead of MLton-user because it
> concerned the CVS version.
> 
> > When I run it against a small 5-6 line file I get an immediate 
> > "unhandled exception: Overflow"
> ...
> > MLton is a recent 2 day old cvs clean build. 
> > 
> > Looking for some debugging hints or pointers to some doc, mail archive
> > reference etc on some debugging suggestions...
> 
> I'd say to try with MLton 20040227 first, to see if the behavior is
> any different.
> 
> You can also compile with -exn-history true, which should at least
> show where the exception was raised.
> 
> You're also welcome to send the code.
> 
> _______________________________________________
> MLton mailing list
> MLton@mlton.org
> http://www.mlton.org/mailman/listinfo/mlton