FS#50145 - [texlive-bin] luajittex segfaults when creating luajittex format files

Attached to Project: Arch Linux
Opened by Stefan Husmann (stefanhusmann) - Monday, 25 July 2016, 05:38 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Sunday, 04 March 2018, 09:03 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Under i686 architecture the creation of the luajittex format fails when run from the pacman hook. There is a illegal instruction message that can be reproduced my running fmtutil manually.

[root@kant ~]# LANG=C fmtutil-sys --byengine luajittex
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: /etc/texmf/web2c/fmtutil.cnf
fmtutil: /usr/share/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: /etc/texmf/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /var/lib/texmf/web2c
fmtutil [INFO]: --- remaking luajittex with luajittex
fmtutil: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini' ...
sh: line 1: 9367 Illegal instruction (core dumped) luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini < /dev/null
fmtutil [ERROR]: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status 132
fmtutil [ERROR]: `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' failed (no luajittex.fmt)
fmtutil [INFO]: Disabled formats: 6
fmtutil [INFO]: Not selected formats: 43
fmtutil [INFO]: Failed to build: 1 (luajittex/luajittex)
fmtutil [INFO]: Total formats: 50
fmtutil [INFO]: exiting with status 0

Additional info:
* package version(s): 2016.41290-2
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Sunday, 04 March 2018, 09:03 GMT
Reason for closing:  Won't fix
Comment by Rémy Oudompheng (remyoudompheng) - Wednesday, 27 July 2016, 04:43 GMT
Which CPU are you running on ? I wonder if it is hardware dependent.
Comment by Stefan Husmann (stefanhusmann) - Wednesday, 27 July 2016, 07:17 GMT
A very old one, Pentium III 1 GHz in a HP Omnibook 6100.
Comment by Doug Newgard (Scimmia) - Wednesday, 27 July 2016, 14:01 GMT
illegal instruction is almost always hardware dependent. It means the program is trying to issue a hardware instruction that the CPU doesn't understand. This is most commonly SSE2.
Comment by Stefan Husmann (stefanhusmann) - Wednesday, 27 July 2016, 14:27 GMT
But shouldn't SSE2 instructions be forbidden in a binary claiming to support i686?
Comment by Doug Newgard (Scimmia) - Wednesday, 27 July 2016, 14:31 GMT
They should, but some build systems will include them when they detect the processor they're building on supports them.
Comment by Stefan Husmann (stefanhusmann) - Thursday, 28 July 2016, 05:22 GMT
Rebuilding texlive-bin with an unchanged PKGBUILD on the old laptop did not change the error.
Comment by Rémy Oudompheng (remyoudompheng) - Thursday, 28 July 2016, 06:31 GMT
Does the error happen in the binary itself or in runtime-generated code ? LuaJIT advertises that JIT is disabled when SSE2 is not supported.
Comment by Stefan Husmann (stefanhusmann) - Thursday, 28 July 2016, 17:35 GMT
It happens when running fmtutil-sys, also when the installfile does so during package installation.
Comment by Stefan Husmann (stefanhusmann) - Friday, 05 August 2016, 05:54 GMT
Still in packae versions -2.1 and -4:

>>> texlive: updating the filename database...
recreating all formats...sh: Zeile 1: 30276 Ungültiger Maschinenbefehl (Speicherabzug geschrieben) luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini < /dev/null

fmtutil [WARNING]: inifile eptex.ini for eptex/eptex not found.
fmtutil [WARNING]: inifile aleph.ini for aleph/aleph not found.
fmtutil [WARNING]: inifile euptex.ini for euptex/euptex not found.
fmtutil [WARNING]: inifile ptex.ini for ptex/ptex not found.
fmtutil [WARNING]: inifile uptex.ini for uptex/uptex not found.
fmtutil [ERROR]: running `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' return status 132
fmtutil [ERROR]: `luajittex -ini -jobname=luajittex -progname=luajittex luatex.ini </dev/null' failed (no luajittex.fmt)
fmtutil [WARNING]: inifile platex.ini for platex/eptex not found.
fmtutil [WARNING]: inifile lambda.ini for lamed/aleph not found.
fmtutil [WARNING]: inifile uplatex.ini for uplatex/euptex not found.
done.
(logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)
:: Starte post-transaction hooks...
(1/6) Compiling GSettings XML schema files...
(2/6) Probing GTK3 input method modules...
(3/6) Updating icon theme caches...
(4/6) Updating manpage index...
(5/6) Updating the info directory file...
(6/6) Updating the desktop file MIME type cache...
Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 04 March 2018, 09:03 GMT
Closing this as i686 is no longer supported.

Loading...