On 08/16/2014 03:08 PM, Wolfgang Schuster wrote:
Am 15.08.2014 um 21:38 schrieb Török Edwin :
Hi,
I am having some trouble getting the mathdesign charter font to work.
Minimal example x.tex:
\loadtypescriptfile[mathdesign]
\setupbodyfont[charter]
\starttext
Foo
\stoptext
I tried the context that comes with Debian unstable, but that one segfaulted[1].
So I tried the standalone version, but that one can't find the math fonts:
Use "first-setup.sh —fonts=all“ to download the fonts from the contextgarden server.
Thanks, now it finds the fonts and crashes the same way as the Debian one.
Should I report this crash on the LuaTeX ML, and if so what files do I have to include to have them reproduce the crash?
To reproduce I wiped and reinstalled context standalone:
$ mkdir context && context
$ rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
$ sh first-setup.sh --modules=all --fonts=all --engine=all
$ . $HOME/context/tex/setuptex
$ luatex --version
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
$ cat >x.tex < 1 > 1 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.16 int: english/english
system > 'cont-new.mkiv' loaded
open source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > files > jobname 'x', input './x', result 'x'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > /tmp/bug/x.tex
open source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv
close source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv
mtx-context | fatal error: no return code, message: luatex: execution interrupted
[25603.579477] luatex[6215]: segfault at 38 ip 00000000006272da sp 00007fff25b4eab8 error 4 in luatex[400000+7d1000]
Sometimes it doesn't crash just complains about an invalid font:
$ context x.tex
mtx-context | run 1: luatex --fmt="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="x" --lua="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./x.tex" --c:input="./x.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
open source > 1 > 1 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.07.30 10:31 MKIV beta fmt: 2014.8.16 int: english/english
system > 'cont-new.mkiv' loaded
open source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source > 2 > 2 > /home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system > files > jobname 'x', input './x', result 'x'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > /tmp/bug/x.tex
open source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv
close source > 3 > 4 > /home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv
!LuaTeX error: Invalid local font in font mdbchr7m!
==> Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1
It reproduces with the stable version too (same LuaTeX version?)
$ sh first-setup.sh --modules=all --fonts=all --engine=all --context=current
$ . $HOME/context/tex/setuptex
$ luatex --version
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
$ context x.tex
mtx-context | run 1: luatex --fmt="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="x" --lua="/home/edwin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./x.tex" --c:input="./x.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
(/home/edwin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2014.8.16 int: english/english
system > 'cont-new.mkiv' loaded
(/home/edwin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system > files > jobname 'x', input './x', result 'x'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(/tmp/bug/x.tex (/home/edwin/context/tex/texmf-context/tex/context/base/type-imp-mathdesign.mkiv)
fonts > typescripts > unknown library 'loc'
{/home/edwin/context/tex/texmf/fonts/map/dvips/mathdesign/mdbch.map}{/home/edwin/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
mtx-context | fatal error: no return code, message: luatex: execution interrupted
valgrind says:
==6253== Invalid read of size 8
==6253== at 0x6272CB: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x6150F8: lua_rawget (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4907A3: lua_numeric_field_by_index (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x513269: font_from_lua (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D7328: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61BE2A: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x62AA61: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61C1C8: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B457: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B4C6: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x614A4E: lua_pcallk (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D33ED: luatokencall (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== Address 0xaf69a00 is 32 bytes inside a block of size 33 alloc'd
==6253== at 0x4A074C0: malloc (vg_replace_malloc.c:291)
==6253== by 0x4A0986F: realloc (vg_replace_malloc.c:687)
==6253== by 0x4D4133: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61EF72: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61D117: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x624C21: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x624E90: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x614E5B: lua_pushstring (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x51E421: make_vf_table (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61BE2A: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x62AA61: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61C1C8: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253==
==6253== Use of uninitialised value of size 8
==6253== at 0x6272DA: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x6150F8: lua_rawget (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4907A3: lua_numeric_field_by_index (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x513269: font_from_lua (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D7328: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61BE2A: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x62AA61: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61C1C8: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B457: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B4C6: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x614A4E: lua_pcallk (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D33ED: luatokencall (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253==
==6253== Invalid read of size 4
==6253== at 0x6272DA: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x6150F8: lua_rawget (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4907A3: lua_numeric_field_by_index (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x513269: font_from_lua (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D7328: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61BE2A: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x62AA61: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61C1C8: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B457: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B4C6: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x614A4E: lua_pcallk (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D33ED: luatokencall (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== Address 0x18 is not stack'd, malloc'd or (recently) free'd
==6253==
==6253==
==6253== Process terminating with default action of signal 11 (SIGSEGV)
==6253== Access not within mapped region at address 0x18
==6253== at 0x6272DA: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x6150F8: lua_rawget (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4907A3: lua_numeric_field_by_index (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x513269: font_from_lua (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D7328: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61BE2A: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x62AA61: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61C1C8: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B457: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x61B4C6: ??? (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x614A4E: lua_pcallk (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)
==6253== by 0x4D33ED: luatokencall (in /home/edwin/context/tex/texmf-linux-64/bin/luatex)