ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* luametatex segmentation fault
@ 2020-01-11 14:27 Ramón Casares
  2020-01-11 21:14 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Ramón Casares @ 2020-01-11 14:27 UTC (permalink / raw)
  To: ntg-context

Hi list,

I am new to LMTX, so before going any further
I wanted to compile my plain TeX documents with LMTX.
I am aware that LMTX is experimental, so perhaps
what I am doing is impossible for the moment
or worse, it is not even in your plans.
In any case, this is how I got a segmentation fault
when I was trying to make the plain format for LMTX
in my Debian 10 Buster OS on linux-64 PC.

<pre>
$ cd ~/context/
$ ./install.sh
$ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex 
This is LuaMetaTeX, Version 2.03.7  (INITEX)
Segmentation fault
$ cd ~/context/tex/texmf-cache
$ rm -R *
$ cd ~/context/
$ ~/context/tex/texmf-linux-64/bin/mtxrun --generate
$ ~/context/tex/texmf-linux-64/bin/context --make
$ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex 
This is LuaMetaTeX, Version 2.03.7  (INITEX)
Segmentation fault
$ ~/context/tex/texmf-linux-64/bin/luametatex --ini plain.tex
This is LuaMetaTeX, Version 2.03.7  (INITEX)
Segmentation fault
$ cat $(~/context/tex/texmf-linux-64/bin/mtxrun --locate lmtx.tex)
\input plain

\directlua {tex.enableprimitives('', tex.extraprimitives())}

\pdfoutput=1

\everyjob \expandafter {%
 \the\everyjob
 \input luatex-basics.tex\relax
 \input luatex-fonts.tex\relax
 \input luatex-mplib.tex\relax
}

\edef\fmtversion{\fmtversion+lmtx}
</pre>

Best regards,
   Ramón Casares
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-11 14:27 luametatex segmentation fault Ramón Casares
@ 2020-01-11 21:14 ` Hans Hagen
  2020-01-12  7:22   ` Ramón Casares
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2020-01-11 21:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Ramón Casares

On 1/11/2020 3:27 PM, Ramón Casares wrote:
> Hi list,
> 
> I am new to LMTX, so before going any further
> I wanted to compile my plain TeX documents with LMTX.
> I am aware that LMTX is experimental, so perhaps
> what I am doing is impossible for the moment
> or worse, it is not even in your plans.
> In any case, this is how I got a segmentation fault
> when I was trying to make the plain format for LMTX
> in my Debian 10 Buster OS on linux-64 PC.
> 
> <pre>
> $ cd ~/context/
> $ ./install.sh
> $ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex

does

mtxrun --generate
context --make

crash too?

> This is LuaMetaTeX, Version 2.03.7  (INITEX)
> Segmentation fault
> $ cd ~/context/tex/texmf-cache
> $ rm -R *
> $ cd ~/context/
> $ ~/context/tex/texmf-linux-64/bin/mtxrun --generate
> $ ~/context/tex/texmf-linux-64/bin/context --make
> $ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
> This is LuaMetaTeX, Version 2.03.7  (INITEX)
> Segmentation fault
> $ ~/context/tex/texmf-linux-64/bin/luametatex --ini plain.tex
> This is LuaMetaTeX, Version 2.03.7  (INITEX)
> Segmentation fault
> $ cat $(~/context/tex/texmf-linux-64/bin/mtxrun --locate lmtx.tex)
> \input plain
> 
> \directlua {tex.enableprimitives('', tex.extraprimitives())}
> 
> \pdfoutput=1
> 
> \everyjob \expandafter {%
>   \the\everyjob
>   \input luatex-basics.tex\relax
>   \input luatex-fonts.tex\relax
>   \input luatex-mplib.tex\relax
> }
> 
> \edef\fmtversion{\fmtversion+lmtx}
> </pre>
> 
> Best regards,
>     Ramón Casares
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-11 21:14 ` Hans Hagen
@ 2020-01-12  7:22   ` Ramón Casares
  2020-01-12 11:00     ` Hans Hagen
  2020-01-12 11:42     ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Ramón Casares @ 2020-01-12  7:22 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Sat, 11 Jan 2020 22:14:21 +0100
Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 1/11/2020 3:27 PM, Ramón Casares wrote:
> > Hi list,
> > 
> > I am new to LMTX, so before going any further
> > I wanted to compile my plain TeX documents with LMTX.
> > I am aware that LMTX is experimental, so perhaps
> > what I am doing is impossible for the moment
> > or worse, it is not even in your plans.
> > In any case, this is how I got a segmentation fault
> > when I was trying to make the plain format for LMTX
> > in my Debian 10 Buster OS on linux-64 PC.
> > 
> > <pre>
> > $ cd ~/context/
> > $ ./install.sh
> > $ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
> 
> does
> 
> mtxrun --generate
> context --make
> 
> crash too?

No, cont-en.fmt was generated, and I can compile ConTeXt documents.

> > This is LuaMetaTeX, Version 2.03.7  (INITEX)
> > Segmentation fault
> > $ cd ~/context/tex/texmf-cache
> > $ rm -R *
> > $ cd ~/context/
> > $ ~/context/tex/texmf-linux-64/bin/mtxrun --generate
> > $ ~/context/tex/texmf-linux-64/bin/context --make
> > $ ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
> > This is LuaMetaTeX, Version 2.03.7  (INITEX)
> > Segmentation fault
> > $ ~/context/tex/texmf-linux-64/bin/luametatex --ini plain.tex
> > This is LuaMetaTeX, Version 2.03.7  (INITEX)
> > Segmentation fault
> > $ cat $(~/context/tex/texmf-linux-64/bin/mtxrun --locate lmtx.tex)
> > \input plain
> > 
> > \directlua {tex.enableprimitives('', tex.extraprimitives())}
> > 
> > \pdfoutput=1
> > 
> > \everyjob \expandafter {%
> >   \the\everyjob
> >   \input luatex-basics.tex\relax
> >   \input luatex-fonts.tex\relax
> >   \input luatex-mplib.tex\relax
> > }
> > 
> > \edef\fmtversion{\fmtversion+lmtx}
> > </pre>
> > 
> > Best regards,
> >     Ramón Casares
> > ___________________________________________________________________________________
> > If your question is of interest to others as well, please add an entry to the Wiki!
> > 
> > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki     : http://contextgarden.net
> > ___________________________________________________________________________________
> > 
> 
> 
> -- 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


-- 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-12  7:22   ` Ramón Casares
@ 2020-01-12 11:00     ` Hans Hagen
  2020-01-12 12:23       ` Ramón Casares
  2020-01-12 11:42     ` Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2020-01-12 11:00 UTC (permalink / raw)
  To: Ramón Casares; +Cc: mailing list for ConTeXt users

On 1/12/2020 8:22 AM, Ramón Casares wrote:
> ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex

so what is that call?

luametatex --ini lmtx.tex

what in that tex file?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-12  7:22   ` Ramón Casares
  2020-01-12 11:00     ` Hans Hagen
@ 2020-01-12 11:42     ` Hans Hagen
  2020-01-12 12:27       ` Ramón Casares
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2020-01-12 11:42 UTC (permalink / raw)
  To: Ramón Casares; +Cc: mailing list for ConTeXt users

On 1/12/2020 8:22 AM, Ramón Casares wrote:
> ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex

next version will say:

 >luametatex --ini whatever.tex
This is LuaMetaTeX, Version 2.03.9  (INITEX)
startup error : missing find_data_file callback

-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-12 11:00     ` Hans Hagen
@ 2020-01-12 12:23       ` Ramón Casares
  2020-01-12 13:19         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Ramón Casares @ 2020-01-12 12:23 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Sun, 12 Jan 2020 12:00:55 +0100
Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 1/12/2020 8:22 AM, Ramón Casares wrote:
> > ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
> 
> so what is that call?
> 
> luametatex --ini lmtx.tex
> 
> what in that tex file?

<pre>
$ cat $(~/context/tex/texmf-linux-64/bin/mtxrun --locate lmtx.tex)
\input plain

\directlua {tex.enableprimitives('', tex.extraprimitives())}

\pdfoutput=1

\everyjob \expandafter {%
 \the\everyjob
 \input luatex-basics.tex\relax
 \input luatex-fonts.tex\relax
 \input luatex-mplib.tex\relax
}

\edef\fmtversion{\fmtversion+lmtx}
</pre>

However, it also breaks with file plain.tex.

<pre>
~/context/tex/texmf-linux-64/bin/luametatex --ini plain.tex
This is LuaMetaTeX, Version 2.03.7  (INITEX)
Segmentation fault
</pre>

> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


-- 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-12 11:42     ` Hans Hagen
@ 2020-01-12 12:27       ` Ramón Casares
  0 siblings, 0 replies; 8+ messages in thread
From: Ramón Casares @ 2020-01-12 12:27 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

On Sun, 12 Jan 2020 12:42:50 +0100
Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 1/12/2020 8:22 AM, Ramón Casares wrote:
> > ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
> 
> next version will say:
> 
>  >luametatex --ini whatever.tex
> This is LuaMetaTeX, Version 2.03.9  (INITEX)
> startup error : missing find_data_file callback
> 

OK. I will try then. I am still in 2.03.7.
<pre>
$ cd ~/context/
$ ./install.sh
$ ~/context/tex/texmf-linux-64/bin/luametatex --ini plain.tex
This is LuaMetaTeX, Version 2.03.7  (INITEX)
Segmentation fault
</pre>

> -- 
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


-- 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: luametatex segmentation fault
  2020-01-12 12:23       ` Ramón Casares
@ 2020-01-12 13:19         ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2020-01-12 13:19 UTC (permalink / raw)
  To: Ramón Casares; +Cc: mailing list for ConTeXt users

On 1/12/2020 1:23 PM, Ramón Casares wrote:
> On Sun, 12 Jan 2020 12:00:55 +0100
> Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
>> On 1/12/2020 8:22 AM, Ramón Casares wrote:
>>> ~/context/tex/texmf-linux-64/bin/luametatex --ini lmtx.tex
>>
>> so what is that call?
>>
>> luametatex --ini lmtx.tex
>>
>> what in that tex file?
> 
> <pre>
> $ cat $(~/context/tex/texmf-linux-64/bin/mtxrun --locate lmtx.tex)
> \input plain
> 
> \directlua {tex.enableprimitives('', tex.extraprimitives())}
> 
> \pdfoutput=1
you should initialize a couple of file relates callbacks in a lua file 
that is then passed as extra argument

but even then, \pdfoutput won't work because there is no backend and 
therefore there are no \pdf frontend commands

but if you want to play with plain, you can use a lot of plain commands 
in context so best use

lmtx.tex :

\starttext
   ...
\stoptext

with

context lmtx

unless you want to start with defining a backend and all kind of font 
related code

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-12 13:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 14:27 luametatex segmentation fault Ramón Casares
2020-01-11 21:14 ` Hans Hagen
2020-01-12  7:22   ` Ramón Casares
2020-01-12 11:00     ` Hans Hagen
2020-01-12 12:23       ` Ramón Casares
2020-01-12 13:19         ` Hans Hagen
2020-01-12 11:42     ` Hans Hagen
2020-01-12 12:27       ` Ramón Casares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).