[MLton-devel] RE: calling SML from C in MLton

Mike Thomas miketh@brisbane.paradigmgeo.com
Thu, 1 May 2003 15:28:21 +1000


| > Running under "gdb" seems superficially OK eg:
|
| The straces you sent seem superficially OK too -- notice the
| appearance of the "no files" usage message.  So both gdb and strace
| appear to be tweaking stuff enough to miss the bug.
|
| > Maybe you could forward a debug symbol version of the mllex
| > executable plus an appropriate break point label (presumably main)
| > to start debugging from?

|
| It might be easier if you build it yourself.  You can do so by adding
| "-debug true -native false" to the FLAGS line in mllex/Makefile and
| running make in the mllex directory.  I'm curious to see how that
| version runs.  Actually, I'm also curious to see how it runs if you
| build a version on your machine without the extra flags too.

With and without the extra flags:

$ ./mllex
Segmentation fault (core dumped)

Unfortunately I can't cause the crash in gdb and of course the C files are
not kept by the build process.  Any way of stopping their deletion?

Cheers

Mike Thomas.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel