# [luatex] Segment fault: 11

Hans Hagen pragma at wxs.nl
Thu Oct 12 08:44:11 CEST 2017

```On 10/11/2017 8:39 PM, Ulrike Fischer wrote:
> Am Wed, 11 Oct 2017 10:21:21 +0200 schrieb luigi scarso:
>
>> must be something related to luaotfload.sty,
>> because
>> \$>mtxrun --script plain segp.tex
>> is ok
>> Also context is ok
>
> Looks so. But it is quite unclear what in luaotfload is the problem.
> I tried with a dev-luatex and the newest reference fontloader from
> context and still get the crash.
>
> Perhaps it is not so much luaotfload doing something wrong but
> context adding some code that avoids the problem.
>
> In any case: it is related to kern and the hyphen/font switch. The
> following only doesn't crash if one change for font \i +kern to
> -kern. Also it seems to be related to otf-fonts, at least I couldn't
> find a ttf that breaks -- but this could be by accident.
>
>
> \font \i   = {name:texgyreheros:mode=base;+kern;}  at 10pt
>
> \font \r   = {name:texgyreheros:mode=base;-kern;}  at 12pt
>
> \r
> aaa-{\i iiii xrmoi}

it's probably not related to the context part as there is a loop in

do_handle_kerning

which is not something in the font loader does but something plugged in
later

(you can probably check it by disabling that call)

Hans

-----------------------------------------------------------------