[luatex] Segmentation fault in 1.09.2

luigi scarso luigi.scarso at gmail.com
Thu Jan 17 06:58:13 CET 2019


On Wed, Jan 16, 2019 at 11:04 PM Henri Menke <henrimenke at gmail.com> wrote:

> The fix is pretty easy, there was only an uninitialized string
> somewhere.  Patch is attached.
>
> On 16/01/19 10:51 PM, luigi scarso wrote:
> > On Wed, Jan 16, 2019 at 10:45 AM Henri Menke <henrimenke at gmail.com>
> wrote:
> >
> >> I have prepared a plain example (attached) which can be run with
> >>
> >>     mtxrun --script plain --run test.tex
> >>
> >> and also segfaults.
> >>
> >> On 1/16/19 10:14 PM, Henri Menke wrote:
> >>> Dear list,
> >>>
> >>> To answer a question on TeX.SX I wanted to compare glyph sidebearings
> >>> using kerns.  However, when trying to insert a kern before the head of
> >>> the last line I first get an error followed by segmentation fault:
> >>>
> >>> warning  (node filter): error: [\directlua]:12: Attempt to
> >>> node.insert_before() a non-existing node
> >>>
> >>> Segmentation fault
> >>>
> >>> The example is attached because it's a bit larger.  I marked the
> >>> offending line with “BOOM”.
> >>>
> >>> Cheers, Henri
> >>>
> >>
> >>
> > Thank you very much for the report, we will see it asap.
> >
>

$ cat test-053.c
/*test-053.c */
int main(void)
{
  char *a ="";
  (void)a;
  return 0;

}
$ 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
test-053.c: In function ‘main’:
test-053.c:4:12: warning: initialization discards ‘const’ qualifier from
pointer target type [-Wdiscarded-qualifiers]
   char *a ="";

hm.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20190117/bef0260b/attachment.html>


More information about the luatex mailing list