<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 16, 2019 at 11:04 PM Henri Menke <<a href="mailto:henrimenke@gmail.com">henrimenke@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The fix is pretty easy, there was only an uninitialized string<br>
somewhere.  Patch is attached.<br>
<br>
On 16/01/19 10:51 PM, luigi scarso wrote:<br>
> On Wed, Jan 16, 2019 at 10:45 AM Henri Menke <<a href="mailto:henrimenke@gmail.com" target="_blank">henrimenke@gmail.com</a>> wrote:<br>
> <br>
>> I have prepared a plain example (attached) which can be run with<br>
>><br>
>>     mtxrun --script plain --run test.tex<br>
>><br>
>> and also segfaults.<br>
>><br>
>> On 1/16/19 10:14 PM, Henri Menke wrote:<br>
>>> Dear list,<br>
>>><br>
>>> To answer a question on TeX.SX I wanted to compare glyph sidebearings<br>
>>> using kerns.  However, when trying to insert a kern before the head of<br>
>>> the last line I first get an error followed by segmentation fault:<br>
>>><br>
>>> warning  (node filter): error: [\directlua]:12: Attempt to<br>
>>> node.insert_before() a non-existing node<br>
>>><br>
>>> Segmentation fault<br>
>>><br>
>>> The example is attached because it's a bit larger.  I marked the<br>
>>> offending line with “BOOM”.<br>
>>><br>
>>> Cheers, Henri<br>
>>><br>
>><br>
>><br>
> Thank you very much for the report, we will see it asap.<br>
> <br>
</blockquote></div><div><br></div><div>$ cat test-053.c</div><div>/*test-053.c */</div><div>int main(void)</div><div>{</div><div>  char *a ="";</div><div>  (void)a;</div><div>  return 0;</div><div><br></div><div>}</div><div>$ gcc  -Wall -Wextra -Wunused -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wold-style-definition   test-053.c -o test-053 </div><div>test-053.c: In function ‘main’:</div><div>test-053.c:4:12: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]</div><div>   char *a ="";</div><div><br></div><div>hm.</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div></div>