From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105030 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: context (lmtx) segfaults on x86_64 linux Date: Wed, 11 Sep 2019 16:14:43 +0800 Message-ID: <20190911081443.GD844@smoon.vl-lomov.ru> References: <20190910141126.GA844@smoon.vl-lomov.ru> <4e89aa04-075f-cb66-e94b-51c576304fce@gmail.com> <20190911014130.GC844@smoon.vl-lomov.ru> <765ecaa8-ef44-607a-1306-6938ce02a7f5@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0971295652373387361==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105792"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.1 (2019-06-15) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 11 10:15:20 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7xma-000RPe-HR for gctc-ntg-context-518@m.gmane.org; Wed, 11 Sep 2019 10:15:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 67060160C4D; Wed, 11 Sep 2019 10:14:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H3PZZBlgKaDQ; Wed, 11 Sep 2019 10:14:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A089160C4E; Wed, 11 Sep 2019 10:14:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 501EF160C3A for ; Wed, 11 Sep 2019 10:14:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PD6pAxg79xAy for ; Wed, 11 Sep 2019 10:14:46 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=77.88.28.106; helo=forward103p.mail.yandex.net; envelope-from=lomov.vl@yandex.ru; receiver= Original-Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 81CF3160B8E for ; Wed, 11 Sep 2019 10:14:46 +0200 (CEST) Original-Received: from mxback23g.mail.yandex.net (mxback23g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:323]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 99C5618C1F2F; Wed, 11 Sep 2019 11:14:45 +0300 (MSK) Original-Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback23g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gj4ro6EIhf-Ej9K2Sl6; Wed, 11 Sep 2019 11:14:45 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1568189685; bh=HbbzzjA71oPxOpn94Xzhx1aKSQWlXJBGe6idLhJnVvM=; h=In-Reply-To:Subject:Cc:To:From:References:Date:Message-ID; b=TuI9JdC3AjxPHvU5QVobK5I7bDpg+hkUdz9dOks7+6tF3ZHbiLFSWN0LdHf7okDYD nDJlLfY8H5IaSB7YOwv5Uk0i8SY2e+ZLTWH1Peq/cCYccvQePQIZOwjIaFi7D4zq7Y OaPTLgrqpZML2ZfEaLb8nIDv2GXrf1WHCjS1YAwo= Authentication-Results: mxback23g.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Lb65uBCOXg-EikurovM; Wed, 11 Sep 2019 11:14:44 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Original-Received: by smoon.vl-lomov.ru (Postfix, from userid 1000) id 46Svnv0q5mz3hj3L; Wed, 11 Sep 2019 16:14:43 +0800 (+08) Mail-Followup-To: Vladimir Lomov , Hans Hagen , mailing list for ConTeXt users In-Reply-To: <765ecaa8-ef44-607a-1306-6938ce02a7f5@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105030 Archived-At: --===============0971295652373387361== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Hf61M2y+wYpnELGG" Content-Disposition: inline --Hf61M2y+wYpnELGG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, ** Hans Hagen [2019-09-11 08:39:03 +0200]: > >> but I explicitly set TEXMFCACHE=3D$HOME/.cache/lmtx (for context suite I >> set it to $HOME/.cache/context-suite). > >>> I'm receiving the super helpful error message: >>> >>> ! error (lua): function call: no >>> >>> Maybe some sort of cache versioning is in order to at least give a bett= er error. >> >> It didn't occured to me that the problem may be with the cache, it would >> be helpfull if context/luametatex will give error message, something >> like "cache version mismatch" and exit. > hm, i have the same cache for both (different files are used) That's strange. AFAIR, I splitted the caches because they were different and I checked this again: I deleted TEXMFCACHE directories (lmtx and context-suite ones), regenerated both using $ mtxrun --generate; context --make (using the right mtxrun, /usr/local/opt/context/tex/texmf-linux-64/bin/mtxrun and /usr/local/opt/lmtx/tex/texmf-linux-64/bin/mtxrun in my case) and checked the generated files. They have identical names, for example, CONTEXT SUITE: -------------------------------------- 8< ---------------------------------= ----- $ tree $TEXMFCACHE | sed -e "s@$HOME/.cache/@@" context-suite =E2=94=94=E2=94=80=E2=94=80 luatex-cache =E2=94=94=E2=94=80=E2=94=80 context =E2=94=94=E2=94=80=E2=94=80 5fe67e0bfe781ce0dde776fb1556f32e =E2=94=9C=E2=94=80=E2=94=80 formats =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 luatex =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.f= mt =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.l= og =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.l= ui =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 cont-en.l= uv =E2=94=94=E2=94=80=E2=94=80 trees =E2=94=9C=E2=94=80=E2=94=80 3952aa25b6a1b9f9f8d3eeb6e65f003= 9.lua =E2=94=9C=E2=94=80=E2=94=80 3952aa25b6a1b9f9f8d3eeb6e65f003= 9.luc =E2=94=9C=E2=94=80=E2=94=80 3f406286dc3075cdfb044f836920f46= a.lua =E2=94=9C=E2=94=80=E2=94=80 3f406286dc3075cdfb044f836920f46= a.luc =E2=94=9C=E2=94=80=E2=94=80 3f6978edf9feb817ad6c1f21fc26203= 1.lua =E2=94=9C=E2=94=80=E2=94=80 3f6978edf9feb817ad6c1f21fc26203= 1.luc =E2=94=9C=E2=94=80=E2=94=80 71c82419867f9a0df8a150196c03c86= f.lua =E2=94=9C=E2=94=80=E2=94=80 71c82419867f9a0df8a150196c03c86= f.luc =E2=94=9C=E2=94=80=E2=94=80 73630a261795d9c53610a28af4550cb= c.lua =E2=94=9C=E2=94=80=E2=94=80 73630a261795d9c53610a28af4550cb= c.luc =E2=94=9C=E2=94=80=E2=94=80 dcb651482955ac31eaab7723b70e018= 4.lua =E2=94=9C=E2=94=80=E2=94=80 dcb651482955ac31eaab7723b70e018= 4.luc =E2=94=9C=E2=94=80=E2=94=80 fb39a92c95ceca857c3f2d0ee48a2ad= 3.lua =E2=94=94=E2=94=80=E2=94=80 fb39a92c95ceca857c3f2d0ee48a2ad= 3.luc 6 directories, 18 files -------------------------------------- 8< ---------------------------------= ----- -------------------------------------- 8< ---------------------------------= ----- LANG=3Den_US.UTF-8 ls -goR $TEXMFCACHE/ | sed -e "s@$HOME/.cache/@@" context-suite/: total 0 drwxr-xr-x 3 21 Sep 11 15:28 luatex-cache context-suite/luatex-cache: total 0 drwxr-xr-x 3 46 Sep 11 15:28 context context-suite/luatex-cache/context: total 0 drwxr-xr-x 4 34 Sep 11 15:28 5fe67e0bfe781ce0dde776fb1556f32e context-suite/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e: total 4 drwxr-xr-x 3 20 Sep 11 15:28 formats drwxr-xr-x 2 4096 Sep 11 15:28 trees context-suite/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats: total 0 drwxr-xr-x 2 82 Sep 11 15:28 luatex context-suite/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats= /luatex: total 11044 -rw-r--r-- 1 10878224 Sep 11 15:28 cont-en.fmt -rw-r--r-- 1 414753 Sep 11 15:28 cont-en.log -rw-r--r-- 1 4118 Sep 11 15:28 cont-en.lui -rw-r--r-- 1 263 Sep 11 15:28 cont-en.luv context-suite/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees: total 752 -rw-r--r-- 1 78031 Sep 11 15:28 3952aa25b6a1b9f9f8d3eeb6e65f0039.lua -rw-r--r-- 1 45351 Sep 11 15:28 3952aa25b6a1b9f9f8d3eeb6e65f0039.luc -rw-r--r-- 1 403 Sep 11 15:28 3f406286dc3075cdfb044f836920f46a.lua -rw-r--r-- 1 398 Sep 11 15:28 3f406286dc3075cdfb044f836920f46a.luc -rw-r--r-- 1 2026 Sep 11 15:28 3f6978edf9feb817ad6c1f21fc262031.lua -rw-r--r-- 1 1371 Sep 11 15:28 3f6978edf9feb817ad6c1f21fc262031.luc -rw-r--r-- 1 407 Sep 11 15:28 71c82419867f9a0df8a150196c03c86f.lua -rw-r--r-- 1 400 Sep 11 15:28 71c82419867f9a0df8a150196c03c86f.luc -rw-r--r-- 1 403 Sep 11 15:28 73630a261795d9c53610a28af4550cbc.lua -rw-r--r-- 1 398 Sep 11 15:28 73630a261795d9c53610a28af4550cbc.luc -rw-r--r-- 1 164062 Sep 11 15:28 dcb651482955ac31eaab7723b70e0184.lua -rw-r--r-- 1 86572 Sep 11 15:28 dcb651482955ac31eaab7723b70e0184.luc -rw-r--r-- 1 225577 Sep 11 15:28 fb39a92c95ceca857c3f2d0ee48a2ad3.lua -rw-r--r-- 1 117644 Sep 11 15:28 fb39a92c95ceca857c3f2d0ee48a2ad3.luc -------------------------------------- 8< ---------------------------------= ----- ###########################################################################= #### LUAMETATEX: -------------------------------------- 8< ---------------------------------= ----- tree $TEXMFCACHE/ | sed -e "s@$HOME/.cache/@@" lmtx/ =E2=94=94=E2=94=80=E2=94=80 luatex-cache =E2=94=94=E2=94=80=E2=94=80 context =E2=94=94=E2=94=80=E2=94=80 5fe67e0bfe781ce0dde776fb1556f32e =E2=94=9C=E2=94=80=E2=94=80 formats =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 luametatex =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.f= mt =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.l= og =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 cont-en.l= ui =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 cont-en.l= uv =E2=94=94=E2=94=80=E2=94=80 trees =E2=94=9C=E2=94=80=E2=94=80 3952aa25b6a1b9f9f8d3eeb6e65f003= 9.lua =E2=94=9C=E2=94=80=E2=94=80 3952aa25b6a1b9f9f8d3eeb6e65f003= 9.luc =E2=94=9C=E2=94=80=E2=94=80 3f406286dc3075cdfb044f836920f46= a.lua =E2=94=9C=E2=94=80=E2=94=80 3f406286dc3075cdfb044f836920f46= a.luc =E2=94=9C=E2=94=80=E2=94=80 3f6978edf9feb817ad6c1f21fc26203= 1.lua =E2=94=9C=E2=94=80=E2=94=80 3f6978edf9feb817ad6c1f21fc26203= 1.luc =E2=94=9C=E2=94=80=E2=94=80 71c82419867f9a0df8a150196c03c86= f.lua =E2=94=9C=E2=94=80=E2=94=80 71c82419867f9a0df8a150196c03c86= f.luc =E2=94=9C=E2=94=80=E2=94=80 73630a261795d9c53610a28af4550cb= c.lua =E2=94=9C=E2=94=80=E2=94=80 73630a261795d9c53610a28af4550cb= c.luc =E2=94=9C=E2=94=80=E2=94=80 dcb651482955ac31eaab7723b70e018= 4.lua =E2=94=9C=E2=94=80=E2=94=80 dcb651482955ac31eaab7723b70e018= 4.luc =E2=94=9C=E2=94=80=E2=94=80 fb39a92c95ceca857c3f2d0ee48a2ad= 3.lua =E2=94=94=E2=94=80=E2=94=80 fb39a92c95ceca857c3f2d0ee48a2ad= 3.luc 6 directories, 18 files -------------------------------------- 8< ---------------------------------= ----- -------------------------------------- 8< ---------------------------------= ----- LANG=3Den_US.UTF-8 ls -goR $TEXMFCACHE/ | sed -e "s@$HOME/.cache/@@" lmtx/: total 0 drwxr-xr-x 3 21 Sep 11 15:29 luatex-cache lmtx/luatex-cache: total 0 drwxr-xr-x 3 46 Sep 11 15:29 context lmtx/luatex-cache/context: total 0 drwxr-xr-x 4 34 Sep 11 15:29 5fe67e0bfe781ce0dde776fb1556f32e lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e: total 4 drwxr-xr-x 3 24 Sep 11 15:29 formats drwxr-xr-x 2 4096 Sep 11 15:29 trees lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats: total 0 drwxr-xr-x 2 82 Sep 11 15:29 luametatex lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametat= ex: total 17148 -rw-r--r-- 1 17165315 Sep 11 15:29 cont-en.fmt -rw-r--r-- 1 377257 Sep 11 15:29 cont-en.log -rw-r--r-- 1 4118 Sep 11 15:29 cont-en.lui -rw-r--r-- 1 257 Sep 11 15:29 cont-en.luv lmtx/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees: total 452 -rw-r--r-- 1 365 Sep 11 15:29 3952aa25b6a1b9f9f8d3eeb6e65f0039.lua -rw-r--r-- 1 367 Sep 11 15:29 3952aa25b6a1b9f9f8d3eeb6e65f0039.luc -rw-r--r-- 1 361 Sep 11 15:29 3f406286dc3075cdfb044f836920f46a.lua -rw-r--r-- 1 365 Sep 11 15:29 3f406286dc3075cdfb044f836920f46a.luc -rw-r--r-- 1 489 Sep 11 15:29 3f6978edf9feb817ad6c1f21fc262031.lua -rw-r--r-- 1 465 Sep 11 15:29 3f6978edf9feb817ad6c1f21fc262031.luc -rw-r--r-- 1 365 Sep 11 15:29 71c82419867f9a0df8a150196c03c86f.lua -rw-r--r-- 1 367 Sep 11 15:29 71c82419867f9a0df8a150196c03c86f.luc -rw-r--r-- 1 361 Sep 11 15:29 73630a261795d9c53610a28af4550cbc.lua -rw-r--r-- 1 365 Sep 11 15:29 73630a261795d9c53610a28af4550cbc.luc -rw-r--r-- 1 79655 Sep 11 15:29 dcb651482955ac31eaab7723b70e0184.lua -rw-r--r-- 1 43851 Sep 11 15:29 dcb651482955ac31eaab7723b70e0184.luc -rw-r--r-- 1 189893 Sep 11 15:29 fb39a92c95ceca857c3f2d0ee48a2ad3.lua -rw-r--r-- 1 98765 Sep 11 15:29 fb39a92c95ceca857c3f2d0ee48a2ad3.luc -------------------------------------- 8< ---------------------------------= ----- The files under 'formats' are "safe" because they are in different directories but files in 'trees' not only have identical names but also differ in sizes. I don't know why both caches have the same directory under 'luatex-cache', I thought it is related to a directory where mtxrun/context installed but seems I'm wrong. To be sure that I use correct "package"/"distribution" I often run commands $ context --version and get for ConTeXt Suite: mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /usr/local/opt/context/tex/texmf-con= text/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.09.09 13:44 mtx-context | main context file: /usr/local/opt/context/tex/texmf-con= text/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2019.09.09 13:44 and for luametatex: mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /usr/local/opt/lmtx/tex/texmf-contex= t/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.07.24 11:31 mtx-context | main context file: /usr/local/opt/lmtx/tex/texmf-contex= t/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2019.09.09 13:55 so I'm sure that this is different "context"s (I'm curious why current version of mkiv files are different but I suppose it is related to other "system" files of context). Is it "safe" to simply run always $ mtxrun --generate; context --make after each context/lmtx update? May be one should add there commands in 'install.sh'? > so what does the tikz that fails look like (mwe) I didn't say anything about tikz (I prefer metapost or asymptote actually). > Hans >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- --- WBR, Vladimir Lomov --=20 echo "Congratulations. You aren't running Eunice." -- Larry Wall in Configure from the perl distribution --Hf61M2y+wYpnELGG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCXXis6wAKCRAHGfInzJc4 BaUqAP4589HrM8+b7wWjB9tpYh0sKgm3ZbDbykVI7bjmiAlkfAD+MsvDAJ891dxY 18zqpnE4ztdWVy42qDpkuuP9sm/BeQA= =Y6IC -----END PGP SIGNATURE----- --Hf61M2y+wYpnELGG-- --===============0971295652373387361== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0971295652373387361==--