[tex-live] Segmentation fault in luatex 1.0.4 from Texlive 2017

Ross Alexander evilross at yahoo.co.uk
Wed Jun 7 15:07:24 CEST 2017


Hello Norbert,
Firstly apologies.  The texlive archive didn't show up in my original search but after joining the list and emailing the out the request I found the thread.  I have applied the patch to luaffi/ctype.c and luaffi/ffi.h and that has resolved the issue.
Many thanks for the reply and the patch.  I can test with gcc-6.3.0 as well if people want (using gcc-7.1.0 currently).
Regards,Ross 

    On Wednesday, 7 June 2017, 13:58, Norbert Preining <preining at logic.at> wrote:
 

 A few days ago there was a discussion about gcc7 and a patch was sent around.

Please check the archive.

Other than that we can't help you much. We are building on very old systems to ensure maximum compatibility, and this might simply be just another gcc bug as we had them already on several instances.

Good luck

Norbert

On June 7, 2017 7:08:18 PM GMT+09:00, Ross Alexander <evilross at yahoo.co.uk> wrote:
This is from a sourcecode build of texlive-20170524-soruce with gcc-7.1.0, glibc-2.25 and binutils-2.28
Below is the configure options
/locker/build/texlive-20170524-source/configure --prefix=/opt/tex --disable-multiplatform --disable-native-texlive-build --enable-shared --libdir=/opt/tex/lib64 --datarootdir=/opt/tex/share

Here is the GDB trace
(gdb) run  -ini   -jobname=luatex -progname=luatex luatex.iniStarting program: /opt/tex/bin/luatex -ini   -jobname=luatex -progname=luatex luatex.iniwarning: File "/usr/lib64/libstdc++.so.6.0.23-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".To enable execution of this file add        add-auto-load-safe-path /usr/lib64/libstdc++.so.6.0.23-gdb.pyline to your configuration file "/home/ralexand/.gdbinit".To completely disable this security protection add        set auto-load safe-path /line to your configuration file "/home/ralexand/.gdbinit".For more information about this security protection see the"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:        info "(gdb)Auto-loading safe path"This is LuaTeX, Version 1.0.4 (TeX Live 2017)  (INITEX) restricted system commands enabled.(/opt/tex/share/texmf-dist/tex/generic/tex-ini-files/luatex.ini(/opt/tex/share/texmf-dist/tex/generic/tex-ini-files/luatexconfig.tex(/opt/tex/share/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex))(/opt/tex/share/texmf-dist/tex/generic/config/luatexiniconfig.tex)(/opt/tex/share/texmf-dist/tex/generic/unicode-data/load-unicode-data.texload-unicode-data.tex v1.5 (2016-06-22)Reading Unicode data# UnicodeData-9.0.0.txt# Downloaded 2016-06-22 17:00:00 GMT [JAW]) (/opt/tex/share/texmf-dist/tex/luatex/hyph-utf8/etex.src(/opt/tex/share/texmf-dist/tex/plain/base/plain.texPreloading the plain format: codes, registers, parameters, fonts, more fonts,macros, math definitions, output routines, hyphenation(/opt/tex/share/texmf-dist/tex/generic/hyphen/hyphen.tex[skipping from \patterns to end-of-file...]))(/opt/tex/share/texmf-dist/tex/plain/etex/etexdefs.libSkipping module "grouptypes"; Loading module "interactionmodes";Skipping module "nodetypes"; Skipping module "iftypes";)(/opt/tex/share/texmf-dist/tex/generic/config/language.def(/opt/tex/share/texmf-dist/tex/generic/hyphen/hyphen.tex))Augmenting the Plain TeX definitions: \tracingall;Adding new e-TeX definitions: \eTeX, \loggingall, \tracingnone,register allocation; extended register allocation;Recycling: \addlanguage, \@nswer (not defined), \@sk, \b at dresponsetrue,\b at dresponsefalse, \ch at ckforyn, \mayber at cycle, \et at xabort, \et at xbuf,\et at xfmtsrc, \et at xfilehdr, \et at xinf, \et at xpatterns, \l at ngdefnfile, \n at xt,\p at rse (not defined), \pr at mpt (not defined), \pr at mptloop (not defined),\forcer at cycle, \usef at llback, \usef at llbacktrue, \usef at llbackfalse,Retaining: \et at xerr, \et at xinput, \et at xlibhdr, \et at xmsg, \et at xtoks, \et at xwarn,\et at xl@@d, \et at xl@ad, \et at xload, \et at xlang, \et at xhash, \eTeX, \etexhdrchk,\etexstatus, \module, \uselanguage, \r at tain, \r at cycle,))Beginning to dump on file luatex.fmt (format=luatex 2017.6.7)3485 strings using 13861 bytes68833 memory locations dumped; current usage is 147&84812074 multiletter control sequences\font\nullfont=nullfont\font\tenrm=cmr10\font\preloaded=cmr9\font\preloaded=cmr8\font\sevenrm=cmr7\font\preloaded=cmr6\font\fiverm=cmr5\font\teni=cmmi10\font\preloaded=cmmi9\font\preloaded=cmmi8\font\seveni=cmmi7\font\preloaded=cmmi6\font\fivei=cmmi5\font\tensy=cmsy10\font\preloaded=cmsy9\font\preloaded=cmsy8\font\sevensy=cmsy7\font\preloaded=cmsy6\font\fivesy=cmsy5\font\tenex=cmex10\font\preloaded=cmss10\font\preloaded=cmssq8\font\preloaded=cmssi10\font\preloaded=cmssqi8\font\tenbf=cmbx10\font\preloaded=cmbx9\font\preloaded=cmbx8\font\sevenbf=cmbx7\font\preloaded=cmbx6\font\fivebf=cmbx5\font\tentt=cmtt10\font\preloaded=cmtt9\font\preloaded=cmtt8\font\preloaded=cmsltt10\font\tensl=cmsl10\font\preloaded=cmsl9\font\preloaded=cmsl8\font\tenit=cmti10\font\preloaded=cmti9\font\preloaded=cmti8\font\preloaded=cmti7\font\preloaded=cmu10\font\preloaded=cmmib10\font\preloaded=cmbsy10\font\preloaded=cmcsc10\font\preloaded=cmssbx10\font\preloaded=cmdunh10\font\preloaded=cmr7 at 14.51799pt\font\preloaded=cmtt10 at 14.4pt\font\preloaded=cmssbx10 at 14.4pt\font\preloaded=manfnt50 preloaded fontswarning  (pdf backend): no pages of output.Transcript written on luatex.log.
Program received signal SIGSEGV, Segmentation fault.to_cdata (L=0x124cf30, idx=1, ct=0x7fffffffe4f0) at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/luaffi/ctype.c:248248         *ct = cd->type;(gdb) bt#0  to_cdata (L=0x124cf30, idx=1, ct=0x7fffffffe4f0) at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/luaffi/ctype.c:248#1  0x0000000000606288 in check_cdata (L=L at entry=0x124cf30, idx=idx at entry=1, ct=ct at entry=0x7fffffffe4f0)    at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/luaffi/ctype.c:266#2  0x00000000005f5545 in cdata_gc (L=0x124cf30) at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/luaffi/ffi.c:1429#3  0x00007ffff7bb8265 in luaD_precall (L=L at entry=0x124cf30, func=<optimized out>, nresults=0)    at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/ldo.c:319#4  0x00007ffff7bb85b2 in luaD_call (L=0x124cf30, func=<optimized out>, nResults=<optimized out>, allowyield=<optimized out>)    at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/ldo.c:401#5  0x00007ffff7bb7bbc in luaD_rawrunprotected (L=L at entry=0x124cf30, f=f at entry=0x7ffff7bb9a40 <dothecall>, ud=ud at entry=0x0)    at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/ldo.c:131#6  0x00007ffff7bb881f in luaD_pcall (L=L at entry=0x124cf30, func=func at entry=0x7ffff7bb9a40 <dothecall>, u=u at entry=0x0, old_top=912,    ef=ef at entry=0) at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/ldo.c:603#7  0x00007ffff7bb99df in GCTM (L=L at entry=0x124cf30, propagateerrors=propagateerrors at entry=0)    at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/lgc.c:824#8  0x00007ffff7bbaf4e in callallpendingfinalizers (propagateerrors=0, L=0x124cf30)    at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/lgc.c:978#9  luaC_freeallobjects (L=L at entry=0x124cf30) at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/lgc.c:988#10 0x00007ffff7bc3cbe in close_state (L=0x124cf30) at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/lstate.c:226#11 0x00007ffff7bc40d0 in lua_close (L=<optimized out>) at /locker/build/texlive-20170524-source/libs/lua52/lua52-src/src/lstate.c:320#12 0x000000000045f6a6 in do_final_end () at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/tex/errors.w:223#13 0x000000000043983e in main (ac=<optimized out>, av=<optimized out>)    at /locker/build/texlive-20170524-source/texk/web2c/luatexdir/luatex.c:579
Please let me know if there is anything more you would like me to do.
Regards,Ross

--
PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20170607/0abbc043/attachment-0001.html>


More information about the tex-live mailing list