<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Guy,</div><div><br></div><div>You are on the right track with the two lines in the makefile commented out.</div><div><br></div><div>Something has perhaps changed since it has been built in that mode. &nbsp;Try adding this to the top of itsdb.c:</div><div><br></div><div>#define capi_printf printf</div><div><br></div><div>and running "make" again?</div><div>Woodley<br><br><br></div><div><br>On Nov 16, 2016, at 8:47 AM, Guy Emerson &lt;<a href="mailto:gete2@cam.ac.uk">gete2@cam.ac.uk</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div>I used the precompiled binary and grammar - I didn't realise that librepp was only for compiling from source.<br><br></div>Running gdb, I get:<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x00007fffdec22300 in ?? ()<br>(gdb) backtrace<br>#0&nbsp; 0x00007fffdec22300 in ?? ()<br>#1&nbsp; 0x000000000046290a in visit_lexicon (stem=&lt;optimized out&gt;, visitor=0x7fffdec22300) at lexicon.c:137<br>#2&nbsp; 0x00000000004845fc in lexical_lookup (tc=0x7f27168d0000) at morpho.c:283<br>#3&nbsp; 0x00000000004df9b1 in lexical_lookup_into_chart (token_chart=0x7f27168d0000) at lexical-parse.c:64<br>#4&nbsp; 0x00000000004c0ff8 in parse_with_token_chart (token_chart=0x7f27168d0000, start=46875) at parse.c:481<br>#5&nbsp; 0x00000000004c37e1 in parse_line1 (line=0x7fffdec22540 "Hello") at parse.c:743<br>#6&nbsp; 0x00000000004c3936 in parse_line (line=0x6005692cfc ",-i\005`") at parse.c:768<br>#7&nbsp; 0x0000000000516677 in main_input_loop (fin=0x7f271708f640 &lt;_IO_2_1_stdin_&gt;) at main.c:443<br>#8&nbsp; 0x0000000000517561 in main (argc=4, argv=0x7fffdec276c8) at main.c:653<br><br><br></div>If I try to compile the ERG image (using the precompiled binary), I also get a seg fault:<br><br>Program received signal SIGSEGV, Segmentation fault.<br>0x00007fffcea82cd8 in ?? ()<br>(gdb) backtrace<br>#0&nbsp; 0x00007fffcea82cd8 in ?? ()<br>#1&nbsp; 0x00000000004ccfbe in iterate_conf_list (key=&lt;optimized out&gt;, callback=0x7fffcea82cd8) at conf.c:534<br>#2&nbsp; 0x00000000004ce9aa in load_preprocessor () at preprocessor.c:58<br>#3&nbsp; 0x0000000000472772 in load_grammar (path=0x7fffcea831fc "/home/Guy/delphin/erg/trunk/ace/config.tdl") at tdl.c:1660<br>#4&nbsp; 0x0000000000515dbe in initialize_engine () at main.c:523<br>#5&nbsp; 0x000000000051735d in main (argc=6, argv=0x7fffcea82fb8) at main.c:620<br><br><br></div>If I try to compile ACE from source, without any changes, there is an error that itsdb.h is not found.<br><br></div>If I try to compile ACE after commenting out the two lines in the Makefile for itsdb, there is an error that capi_printf is not defined in itsdb.o.<br><br></div><div>If I also remove itsdb.o from the Makefile, many things are undefined.<br></div><div><br><br><br></div>As I'm not a C developer, I have very little sense about how easy this would be to debug or to fix...&nbsp; I'm quite happy to be told this is not worth the effort!<br><br><div><div><div><div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-15 17:12 GMT+00:00 Woodley Packard <span dir="ltr">&lt;<a href="mailto:sweaglesw@sweaglesw.org" target="_blank">sweaglesw@sweaglesw.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Out of curiousity, Guy, were you able to use the precompiled binary for ACE or did you have to compile your own?&nbsp; I wouldn’t have thought you would need to install the librepp and boost dependencies if using the binaries.&nbsp; It looks like you are using the precompiled ERG image though.&nbsp; You could be getting a crash if you are using a stock 0.9.24 grammar image with SVN trunk ACE source code.&nbsp; On the off chance that you are doing that, please try compiling the ERG image with the same ACE binary you are using.&nbsp; It *might* be helpful to recompile the ERG image anyway.<br>
<br>
Regards,<br>
-Woodley<br>
<span class="gmail-m_-5011576991605837287im gmail-m_-5011576991605837287HOEnZb"><br>
&gt; On Nov 15, 2016, at 6:33 AM, Guy Emerson &lt;<a href="mailto:gete2@cam.ac.uk" target="_blank">gete2@cam.ac.uk</a>&gt; wrote:<br>
&gt;<br>
</span><div class="gmail-m_-5011576991605837287HOEnZb"><div class="gmail-m_-5011576991605837287h5">&gt; I am trying to run ACE on Windows 10's new Linux Subsystem.&nbsp; I can run ACE with the ERG, but whatever input I give, I get the message "ERROR: DEADLY SIGNAL!"<br>
&gt;<br>
&gt; It looks like it finishes the token mapping, and fails when applying a syntactic rule.&nbsp; Verbose output is below.<br>
&gt;<br>
&gt; I've already installed repp-0.2.2 (which required me to also install libboost), and I've set the TMPDIR environment variable, as suggested on the ACE homepage.<br>
&gt;<br>
&gt; Any ideas on what else I would need to do?&nbsp; Could there be other dependencies I need to install?<br>
&gt;<br>
&gt; Best,<br>
&gt; Guy<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ./ace -g erg-1214-x86-64-0.9.24.dat -1Tf -vvv<br>
&gt; NOTE: loading frozen grammar ERG (1214)<br>
&gt; NOTE: semantic index hash contains 28857 entries in 65536 slots<br>
&gt; NOTE: max-ent model hash contains 659414 entries in 1048576 slots<br>
&gt; NOTE: 9280 types, 38259 lexemes, 293 rules, 47 orules, 101 instances, 48101 strings, 216 features<br>
&gt; permanent RAM: 4k<br>
&gt;<br>
&gt; Hello<br>
&gt; Hello/UH<br>
&gt; token #12 le 0x7f07295d7fcc vtx [0-1] char [0-5] string 'hello' dag #D[token +FORM: #D["hello"] +FROM: &lt;1&gt;= #D["0"] +TO: #D["5"] +ID: #D[*diff-list* LIST: #D[*list*] LAST: #D[*list*] ] +TNT: #D[null_tnt +TAGS: #D[*null*] +PRBS: #D[*null*] +MAIN: #D[tnt_main +TAG: #D["UH"] +PRB: #D["1.0"] ] ] +CLASS: #D[alphabetic +INITIAL: #D[+] +CASE: #D[capitalized+lower] ] +TRAIT: #D[token_trait +UW: #D[-] +IT: #D[italics] +LB: #D[bracket_null] +RB: #D[bracket_null] +HD: #D[token_head +LL: #D[ctype -CTYPE-: #D[string] ] +TG: #D[string] +TI: &lt;1&gt; ] ] +PRED: #D[predsort] +CARG: #D["Hello"] +TICK: #D[bool] ]<br>
&gt; token #13 le 0x7f07295d87e0 vtx [0-1] char [0-5] string 'hello' dag #D[token +FORM: #D["hello"] +FROM: &lt;1&gt;= #D["0"] +TO: #D["5"] +ID: #D[*diff-list* LIST: #D[*list*] LAST: #D[*list*] ] +TNT: #D[null_tnt +TAGS: #D[*null*] +PRBS: #D[*null*] +MAIN: #D[tnt_main +TAG: #D[string] +PRB: #D[string] ] ] +CLASS: #D[bridge_class] +TRAIT: #D[token_trait +UW: #D[+] +IT: #D[italics] +LB: #D[bracket_null] +RB: #D[bracket_null] +HD: #D[token_head +LL: #D[ctype -CTYPE-: #D[string] ] +TG: #D[string] +TI: &lt;1&gt; ] ] +PRED: #D["_hello_u_bridge_rel"] +CARG: #D["Hello"] +TICK: #D[bool] ]<br>
&gt; finished token mapping<br>
&gt; hello -&gt; hello [2 ways]<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; non_third_sg_fin_v_rbst<br>
&gt; hello -&gt; hello [2 ways]<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; non_third_sg_fin_v_rbst<br>
&gt; ERROR: DEADLY SIGNAL! sent = `Hello'<br>
<br>
</div></div></blockquote></div><br></div></div></div></div></div></div></div></div>
</div></blockquote></body></html>