Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624862 - app-text/texlive-core-2016-r5 - SIGILL in luajittex / libtexluajit.so.2.1.0
Summary: app-text/texlive-core-2016-r5 - SIGILL in luajittex / libtexluajit.so.2.1.0
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-13 11:32 UTC by Lev Melnikovsky
Modified: 2022-10-17 18:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
luajittex backtrace (backtrace.log,6.86 KB, text/plain)
2017-07-13 11:32 UTC, Lev Melnikovsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lev Melnikovsky 2017-07-13 11:32:23 UTC
Created attachment 483966 [details]
luajittex backtrace

luajittex crashes with illegal opcode during texlive-basic build. In fact it crashes even when invoked without arguments. Kernel log gets messages like: 

[709631.540707] traps: luajittex[6595] trap invalid opcode ip:b7689ae1 sp:bfd95de0 error:0
[709631.540715]  in libtexluajit.so.2.1.0[b766b000+73000]

This is fully reproducible with gcc-4.9.4 and gcc-5.4.0 on the same x86 machine. The backtrace is attached.
Comment 1 Jonas Stein gentoo-dev 2017-07-17 13:16:25 UTC
I think it works for me. I could install it without problems and can start it:

======================
$ luajittex
This is LuajitTeX, Version 1.0.4 (TeX Live 2017) 
 restricted system commands enabled.
**
======================
Comment 2 Alexis Ballier gentoo-dev 2017-07-17 13:32:55 UTC
can you try with texlive 2017 ?
Comment 3 Lev Melnikovsky 2017-07-17 14:15:11 UTC
(In reply to Alexis Ballier from comment #2)
> can you try with texlive 2017 ?
Already had, the same problem.

Please note, that is an ancient x86 (AMD Athlon(tm) XP 2600+) system.
Comment 4 Lev Melnikovsky 2017-07-18 00:42:05 UTC
(In reply to Alexis Ballier from comment #2)
> can you try with texlive 2017 ?
but older texlive-core-2015-r1 seems to work fine:

$ luajittex
This is LuajitTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
 restricted \write18 enabled.
**
Comment 5 Lev Melnikovsky 2018-07-06 11:52:43 UTC
AS far as I understand, jit is not expected to work unless sse2 is supported by CPU. I would suggest, then to make "luajittex" flag depend on CPU_FLAGS_X86 "sse2" flag. Does it make sense?
Comment 6 Jonas Stein gentoo-dev 2022-10-17 18:57:02 UTC
<app-text/texlive-core-2021 is no longer in the tree.
Please test with app-text/texlive-core-2021 and reopen, if the problem still exists.