wget http://pastebin.com/pastebin.php?dl=m22a6261b -O lang.def
sglr -s SDF -p /opt/sdf-bundle/v2.4/share/pgen/Sdf2.baf -i lang.def -o lang.asfix
gdb –args /opt/sdf2-bundle/v2.4/bin/parsetablegen.exe -v -i lang.asfix -o lang.tvl -m ElLang-J
run

gives:
[New thread 3764.0x6ac]
(no debugging symbols found)
(no debugging symbols found)
[New thread 3764.0xd10]
generating parsetable from lang.asfix

Program received signal SIGSEGV, Segmentation fault.
ATmakeAppl1 (sym=726, arg0=0xf1e4a8) at memory.c:1166
1166 memory.c: No such file or directory.
in memory.c

I am not sure whether the problem is in the .def file, sdfchecker gives 3 errors:
SdfChecker:error: Main module not defined
— Main
SdfChecker:error: symbol is not defined by any production
— EFooStringChars [file: ElLang-J.def line: 39 col: 3]
SdfChecker:error: symbol is not defined by any production
— VarRefL [file: ElLang-J.def line: 33 col: 3]

The first one can be ignored according to FAQ. The other two I’m not sure if it’s safe to ignore them. On the other side I don’t know how to fix them (it’s using advanced features I’m not familiar with). I will also ask the author of the grammar what he thinks.

Submitted on 24 October 2009 at 18:06

On 26 October 2009 at 09:55 Jira commented:

STR-779, rbvermaa:
This has to do with the limited default stacksize in cygwin. I will generate a new binary distribution with a bigger stacksize later today.


On 29 October 2009 at 18:48 Jira commented:

STR-779, rbvermaa:
There are new cygwin binaries available for strategoxt-0.17 compiled with a bigger stack size. See,
ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/cygwin/strategoxt-0.17-cygwin.tar.gz
ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/cygwin/strategoxt-superbundle-0.17-cygwin.tar.gz

Log in to post comments