Re: [NTG-context] Testing TeX Live 2012

2012-05-22 Thread Taco Hoekwater

On 05/22/2012 10:31 AM, Marco Pessotto wrote:

Marco Pessotto  writes:


I'm attaching the original file and image. Let me know if you want me
to try to bisect it until I get a minimal file (which could take a while).

The second (different) crash happens with this other (much shorter)
file. Please put it in the same directory of files from the previous
mail.




Thanks a bunch, more later.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-22 Thread Taco Hoekwater

On 05/21/2012 09:22 PM, Marco Pessotto wrote:

Marco Pessotto  writes:


Checked out, compiled and tested. And it works (of course :-).


I spoke too early.

I have at least three issues with images.


Thanks, I am on it. But I will need source files and images, if at all
possible. Backtraces are good, but now that I have my own i386 install,
it is easy enough to recreate those, it is much harder to guess at the
input.

Best wishes and thanks for testing,
Taco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-21 Thread Henning Hraban Ramm

Am 2012-05-21 um 21:22 schrieb Marco Pessotto:


First case: failing, but no crash.

% minimal
\starttext
\externalfigure[cow]
\stoptext
% stop


Did you try to set a size like \externalfigure[cow][width=\textwidth] ?
It’s still a bug, but that works for me (setting the size in  
\setupexternalfigures doesn’t help).


Greetlings, Hraban
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-21 Thread Marco Pessotto
Marco Pessotto  writes:

> Checked out, compiled and tested. And it works (of course :-).

I spoke too early.

I have at least three issues with images. 

First case: failing, but no crash.

% minimal
\starttext
\externalfigure[cow]
\stoptext
% stop

The second and the third case are under the following debug output. I
can't still provide a minimal example (I'm working on it, but it won't
reach you before tomorrow), but I have *plenty* of backtraces (see
below).

I apologize for all this output, but I'm feeling a bit lost.

Best wishes

export PATH=~/progetti/texlive2012/bin/i386-linux:$PATH
[21:01] melmoth@universe:/tmp$ context prova.tex 

mtx-context | run 1: luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./prova.tex" \stoptext
This is LuaTeX, Version beta-0.70.2-2012052117 (TeX Live 2012)
 \write18 enabled.
(prova.tex
jobcontrol  > version mismatch with jobfile: 1.14 <> 1.19

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.21  int: english/english

system  > cont-new.mkiv loaded
(/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > prova.top loaded
(prova.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
floatblocks > 1 placed
backend > xmp > using file 
'/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml'

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted[21:01] melmoth@universe:/tmp$ gdb luatex
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex...done.
(gdb) set logging on
Copying output to gdb.txt.
(gdb) run 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./prova.tex"
Starting program: 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./prova.tex"
This is LuaTeX, Version beta-0.70.2-2012052117 (TeX Live 2012)
 \write18 enabled.
(prova.tex
jobcontrol  > version mismatch with jobfile: 1.14 <> 1.19

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.21  int: english/english

system  > cont-new.mkiv loaded
(/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > prova.top loaded
(prova.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
floatblocks > 1 placed
backend > xmp > using file 
'/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml'
 <`ý
^^G^^Dù·àý^^H e^^H^^D
!LuaTeX error: internal error: unknown image type (1)
 ==> Fatal error occurred, no output PDF file produced!

Program exited with code 0106.
(gdb) bt

Re: [NTG-context] Testing TeX Live 2012

2012-05-21 Thread Marco Pessotto
Taco Hoekwater  writes:

> On 05/18/2012 08:20 PM, Marco Pessotto wrote:
>> Mojca Miklavec  writes:
>>
>>> You can try to checkout revision 26300 from TeX Live repository. That
>>> should give you a good reference.
>>>  http://tug.org/svn/texlive?view=revision&revision=26301
>>> [...]
>>> If you could also try to build revision 26300 with debugging symbols
>
> r26542 (just committed) should fix this crash, which was the result of
> bad include ordering after TL has enabled large file support.

Checked out, compiled and tested. And it works (of course :-).

Thanks!

-- 
Marco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-21 Thread Taco Hoekwater

On 05/18/2012 08:20 PM, Marco Pessotto wrote:

Mojca Miklavec  writes:


You can try to checkout revision 26300 from TeX Live repository. That
should give you a good reference.
 http://tug.org/svn/texlive?view=revision&revision=26301
[...]
If you could also try to build revision 26300 with debugging symbols


r26542 (just committed) should fix this crash, which was the result of
bad include ordering after TL has enabled large file support.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Marco Pessotto
Mojca Miklavec  writes:

> You can try to checkout revision 26300 from TeX Live repository. That
> should give you a good reference.
> http://tug.org/svn/texlive?view=revision&revision=26301
> [...]
> If you could also try to build revision 26300 with debugging symbols
> (and possibly try to upload the binary somewhere, so that others could
> try as well), that might help. I either have or can try to install a
> virtual machine with i386-linux, but building TeX Live in virtual
> machine will take forever, so having a working binary with all
> debugging symbols could help. (I'm not 100% sure if the binary for mac
> has been compiled before or after poppler update.)

The crashy binary with debug symbols is here:

http://theanarchistlibrary.org/docs/luatex-crash-unstripped.tar.gz

Sha1sum (of the binary inside the tgz):

e092818935b3ea109380409b5fa9fc3ee8f58b71  luatex




 revision 26300 =

luatex --credits
This is LuaTeX, Version beta-0.70.1-2012051819 (TeX Live 2012)
[...]
Compiled with libpng 1.5.10; using libpng 1.5.10
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with poppler version 0.18.4

Same crash. bt full at the end of this mail, but there's nothing new, I think.

Any revision other revision I can pick to pinpoint where the problem started?



> If you like debugging, you could set a few breakpoints in the
> following lines that work with poststruct:

I don't have the slightest idea of how to do it. I can do it if you
guide me.

> ./texk/web2c/luatexdir/lua/lpdflib.c:pdf_set_pos(static_pdf,
> static_pdf->posstruct->pos);
> ./texk/web2c/luatexdir/lua/lpdflib.c:(void)
> calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos);
> ./texk/web2c/luatexdir/lua/lpdflib.c:(void)
> calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos);
> ./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L,
> static_pdf->posstruct->pos.h);
> ./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L,
> static_pdf->posstruct->pos.v);
> ./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURV
> (dimen_par(page_height_code)-static_pdf->posstruct->pos.v)
> ./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURH
> static_pdf->posstruct->pos.h
>
> and compare behaviour of old & new luatex. But that's just a blind guess.
>
> Mojca

Backtrace:

/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"

Program received signal SIGSEGV, Segmentation fault.
0x0813e713 in getpdf (L=0x88b8158) at 
../../../texk/web2c/luatexdir/lua/lpdflib.c:615
615 lua_pushnumber(L, static_pdf->posstruct->pos.h);
#0  0x0813e713 in getpdf (L=0x88b8158) at 
../../../texk/web2c/luatexdir/lua/lpdflib.c:615
#1  0x082c9a65 in luaD_precall (L=0x88b8158, func=0xaf453fc, nresults=1) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:319
#2  0x082c9ca8 in luaD_call (L=0x88b8158, func=0xaf453fc, nResults=1) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:376
#3  0x082da1b7 in callTMres (L=0x88b8158, res=0xaf45360, f=0x88d63e0, 
p1=0xaf45360, p2=0x8edfaec) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88
#4  0x082da45d in luaV_gettable (L=0x88b8158, t=0xaf45360, key=0x8edfaec, 
val=0xaf45360) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125
#5  0x082db4ec in luaV_execute (L=0x88b8158, nexeccalls=2) at 
../../../texk/web2c/luatexdir/lua51/lvm.c:437
#6  0x082c9cbf in luaD_call (L=0x88b8158, func=0xaf45318, nResults=0) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:377
#7  0x082c25dd in f_call (L=0x88b8158, ud=0xbfffdc8c) at 
../../../texk/web2c/luatexdir/lua51/lapi.c:795
#8  0x082c8efd in luaD_rawrunprotected (L=0x88b8158, f=0x82c25b3 , 
ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116
#9  0x082ca009 in luaD_pcall (L=0x88b8158, func=0x82c25b3 , 
u=0xbfffdc8c, old_top=288, ef=276) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:457
#10 0x082c2677 in lua_pcall (L=0x88b8158, nargs=0, nresults=0, errfunc=23) at 
../../../texk/web2c/luatexdir/lua51/lapi.c:816
#11 0x080c3452 in luacall (p=195, nameptr=0, is_string=1) at 
../../../texk/web2c/luatexdir/lua/luastuff.w:397
#12 0x080c357d in late_lua (pdf=0x894b270, p=964) at 
../../../texk/web2c/luatexdir/lua/luastuff.w:419
#13 0x08193559 in out_what (pdf=0x894b270, p=964) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:270
#14 0x081947c0 in hlist_out (pdf=0x894b270, this_box=2463) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:567
#15 0x08193fbc in hlist_out (pdf=0x894b270, this_box=844) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#16 0x08193fbc in hlist_out (pdf=0x894b270, this_box=853) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#17 0x08195aa8 in vlist_out (pdf=0x894b270, this_box=879) a

Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Mojca Miklavec
On Fri, May 18, 2012 at 6:56 PM, Marco Pessotto wrote:
> Taco Hoekwater  writes:
>
>> I guessed as much. Unfortunately, as I cannot reproduce the bug, this is
>> where it ends for me. Perhaps Hartmut has a 32-bit system somewhere (CC).
>>
>> Best wishes,
>> Taco
>>
>> PS Hartmut: full thread is here:
>> http://archive.contextgarden.net/message/20120516.012657.49ebfe34.en.html
>
> Just for the sake of giving more (probably useless) information:
>
>  1. I updated the sources today and rebuild luatex (0.70.2). Same crash
>  (not that I thought it would be magically fixed by itself, but just to
>  be sure).
>
>  2. I diffed the luatex sources of texlive-2011 with the pretest one,
>  and are just a bunch of chunks. Now, I don't know anything about C, but
>  it doesn't seem a radical change.

Taco didn't commit any update at all, except for version change (and
Khaled did some math-related updates recently).

> So I thought that maybe it's poppler
>  the culprit, and I tried to rebuild with the sistem poppler. But here
>  it fails miserably during compilation.

You can try to checkout revision 26300 from TeX Live repository. That
should give you a good reference.
http://tug.org/svn/texlive?view=revision&revision=26301

> Now, shooting in the dark: the sources of TeXlive ship poppler 0.20.
> I compiled and tested the svn trunk of luatex, and it works (no crash,
> as reported by Luigi), but it's linked against poppler 0.18, as far as I
> can see.

You are not shooting in the dark. This was my earlier guess as well.
It's crashing while dealing with pdf and basically the only relevant
change between TL 2011 & 12 is a different poppler version.

> Well, that was all I could do, please let me know if I can do anything
> else.

If you could also try to build revision 26300 with debugging symbols
(and possibly try to upload the binary somewhere, so that others could
try as well), that might help. I either have or can try to install a
virtual machine with i386-linux, but building TeX Live in virtual
machine will take forever, so having a working binary with all
debugging symbols could help. (I'm not 100% sure if the binary for mac
has been compiled before or after poppler update.)

If you like debugging, you could set a few breakpoints in the
following lines that work with poststruct:

./texk/web2c/luatexdir/lua/lpdflib.c:pdf_set_pos(static_pdf,
static_pdf->posstruct->pos);
./texk/web2c/luatexdir/lua/lpdflib.c:(void)
calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos);
./texk/web2c/luatexdir/lua/lpdflib.c:(void)
calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos);
./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L,
static_pdf->posstruct->pos.h);
./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L,
static_pdf->posstruct->pos.v);
./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURV
(dimen_par(page_height_code)-static_pdf->posstruct->pos.v)
./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURH
static_pdf->posstruct->pos.h

and compare behaviour of old & new luatex. But that's just a blind guess.

Mojca
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Marco Pessotto
Taco Hoekwater  writes:

> I guessed as much. Unfortunately, as I cannot reproduce the bug, this is
> where it ends for me. Perhaps Hartmut has a 32-bit system somewhere (CC).
>
> Best wishes,
> Taco
>
> PS Hartmut: full thread is here:
> http://archive.contextgarden.net/message/20120516.012657.49ebfe34.en.html

Just for the sake of giving more (probably useless) information:

 1. I updated the sources today and rebuild luatex (0.70.2). Same crash
 (not that I thought it would be magically fixed by itself, but just to
 be sure).

 2. I diffed the luatex sources of texlive-2011 with the pretest one,
 and are just a bunch of chunks. Now, I don't know anything about C, but
 it doesn't seem a radical change. So I thought that maybe it's poppler
 the culprit, and I tried to rebuild with the sistem poppler. But here
 it fails miserably during compilation.

g++ -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c  
-I/home/melmoth/progetti/debug/sources/Work/texk 
-I/home/melmoth/progetti/debug/sources/texk  
-I/home/melmoth/progetti/debug/sources/Work/libs/libpng/include 
-DPOPPLER_VERSION=\"0.12.4\" -I/usr/include/poppler   
-I/home/melmoth/progetti/debug/sources/Work/libs/obsdcompat 
-I/home/melmoth/progetti/debug/sources/libs/obsdcompat 
-I../../../texk/web2c/libmd5 -I../../../texk/web2c/luatexdir 
-I../../../texk/web2c/luatexdir/lua51 -DpdfTeX -I../../../texk/web2c/synctexdir 
-DSYNCTEX_ENGINE_H=''   -g -MT libluatex_a-lepdflib.o -MD -MP 
-MF .deps/libluatex_a-lepdflib.Tpo -c -o libluatex_a-lepdflib.o `test -f 
'luatexdir/lua/lepdflib.cc' || echo 
'../../../texk/web2c/'`luatexdir/lua/lepdflib.cc
../../../texk/web2c/luatexdir/lua/lepdflib.cc: In function 'int 
m_Dict_hasKey(lua_State*)':
../../../texk/web2c/luatexdir/lua/lepdflib.cc:845: error: 'class Dict' has no 
member named 'hasKey'

Now, shooting in the dark: the sources of TeXlive ship poppler 0.20. 
I compiled and tested the svn trunk of luatex, and it works (no crash,
as reported by Luigi), but it's linked against poppler 0.18, as far as I
can see.

Well, that was all I could do, please let me know if I can do anything
else.

Best wishes

-- 
Marco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Taco Hoekwater

On 05/18/2012 02:49 PM, Marco Pessotto wrote:

Taco Hoekwater  writes:


On 05/17/2012 07:31 PM, Marco Pessotto wrote:


Anyway, I think I got the backtrace:


Nice backtrace.

You could try to print these in the debugger

   (gdb) p static_pdf
   (gdb) p static_pdf->posstruct
   (gdb) p *static_pdf->posstruct

you should get something like this:

   $1 = (PDF) 0x174de00
   $2 = (posstructure *) 0x175e1c0
   $3 = {pos = {h = 0, v = 0}, dir = 0}

but I cannot help much further as the crash does not happen on my
architecture: Ubuntu 12.04, x86_64.

Best wishes,
Taco


$1 = (PDF) 0x89a9270
$2 = (posstructure *) 0x1
Cannot access memory at address 0x1


I guessed as much. Unfortunately, as I cannot reproduce the bug, this is
where it ends for me. Perhaps Hartmut has a 32-bit system somewhere (CC).

Best wishes,
Taco

PS Hartmut: full thread is here: 
http://archive.contextgarden.net/message/20120516.012657.49ebfe34.en.html


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Marco Pessotto
Taco Hoekwater  writes:

> On 05/17/2012 07:31 PM, Marco Pessotto wrote:
>>
>> Anyway, I think I got the backtrace:
>
> Nice backtrace.
>
> You could try to print these in the debugger
>
>   (gdb) p static_pdf
>   (gdb) p static_pdf->posstruct
>   (gdb) p *static_pdf->posstruct
>
> you should get something like this:
>
>   $1 = (PDF) 0x174de00
>   $2 = (posstructure *) 0x175e1c0
>   $3 = {pos = {h = 0, v = 0}, dir = 0}
>
> but I cannot help much further as the crash does not happen on my
> architecture: Ubuntu 12.04, x86_64.
>
> Best wishes,
> Taco

$1 = (PDF) 0x89a9270
$2 = (posstructure *) 0x1
Cannot access memory at address 0x1

Best wishes

Full backtrace:

Starting program: 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"

Program received signal SIGSEGV, Segmentation fault.
0x08148923 in getpdf (L=0x8916158)
at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615
615 lua_pushnumber(L, static_pdf->posstruct->pos.h);
#0  0x08148923 in getpdf (L=0x8916158)
at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615
#1  0x082d3c75 in luaD_precall (L=0x8916158, func=0xafa36c4, nresults=1)
at ../../../texk/web2c/luatexdir/lua51/ldo.c:319
#2  0x082d3eb8 in luaD_call (L=0x8916158, func=0xafa36c4, nResults=1)
at ../../../texk/web2c/luatexdir/lua51/ldo.c:376
#3  0x082e43c7 in callTMres (L=0x8916158, res=0xafa3628, f=0x89343e0, 
p1=0xafa3628, p2=0x8f3daec) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88
#4  0x082e466d in luaV_gettable (L=0x8916158, t=0xafa3628, key=0x8f3daec, 
val=0xafa3628) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125
#5  0x082e56fc in luaV_execute (L=0x8916158, nexeccalls=2)
at ../../../texk/web2c/luatexdir/lua51/lvm.c:437
#6  0x082d3ecf in luaD_call (L=0x8916158, func=0xafa35e0, nResults=0)
at ../../../texk/web2c/luatexdir/lua51/ldo.c:377
#7  0x082cc7ed in f_call (L=0x8916158, ud=0xbfffdc8c)
at ../../../texk/web2c/luatexdir/lua51/lapi.c:795
#8  0x082d310d in luaD_rawrunprotected (L=0x8916158, f=0x82cc7c3 , 
ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116
#9  0x082d4219 in luaD_pcall (L=0x8916158, func=0x82cc7c3 , 
u=0xbfffdc8c, old_top=288, ef=276)
at ../../../texk/web2c/luatexdir/lua51/ldo.c:457
#10 0x082cc887 in lua_pcall (L=0x8916158, nargs=0, nresults=0, errfunc=23)
at ../../../texk/web2c/luatexdir/lua51/lapi.c:816
#11 0x080cd562 in luacall (p=195, nameptr=0, is_string=1)
at ../../../texk/web2c/luatexdir/lua/luastuff.w:397
#12 0x080cd68d in late_lua (pdf=0x89a9270, p=964)
at ../../../texk/web2c/luatexdir/lua/luastuff.w:419
#13 0x0819d769 in out_what (pdf=0x89a9270, p=964)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:270
#14 0x0819e9d0 in hlist_out (pdf=0x89a9270, this_box=2463)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:567
#15 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=844)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#16 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=853)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#17 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=879)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#18 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2236)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#19 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2245)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#20 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2258)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#21 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2267)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#22 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2318)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#23 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2350)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#24 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2359)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#25 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=2372)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909
#26 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2421)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#27 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2430)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#28 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=2445)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909
#29 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=968)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909
#30 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2454)
at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#31 0x0819e1cc in hlist_

Re: [NTG-context] Testing TeX Live 2012

2012-05-18 Thread Taco Hoekwater

On 05/17/2012 07:31 PM, Marco Pessotto wrote:


Anyway, I think I got the backtrace:


Nice backtrace.


Starting program: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"

Program received signal SIGSEGV, Segmentation fault.
0x08148923 in getpdf (L=0x8916158) at 
../../../texk/web2c/luatexdir/lua/lpdflib.c:615
615 lua_pushnumber(L, static_pdf->posstruct->pos.h);


Somewhere in that line is a reference to a non-valid pointer. I assume 
static_pdf itself is fine, so the problem is likely the posstruct entry.


You could try to print these in the debugger

  (gdb) p static_pdf
  (gdb) p static_pdf->posstruct
  (gdb) p *static_pdf->posstruct

you should get something like this:

  $1 = (PDF) 0x174de00
  $2 = (posstructure *) 0x175e1c0
  $3 = {pos = {h = 0, v = 0}, dir = 0}

but I cannot help much further as the crash does not happen on my
architecture: Ubuntu 12.04, x86_64.

Best wishes,
Taco
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread luigi scarso
On Thu, May 17, 2012 at 7:01 PM, luigi scarso  wrote:
> On Thu, May 17, 2012 at 6:25 PM, Marco Pessotto  wrote:
>> Mojca Miklavec  writes:
>>
>>> (But that luatex is probably stripped.)
>>
>> So the next question is: how can I build luatex from those sources with
>> the debug symbols?
> Try
> build.sh --nostrip
Uh, I mean: you need the luatex from svn
It has a build.sh script .
-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Marco Pessotto

Mojca Miklavec  writes:

> On Thu, May 17, 2012 at 6:25 PM, Marco Pessotto  wrote:
>> The following message is a courtesy copy of an article
>> that has been posted to gmane.comp.tex.context as well.

Gmane today hates me...

>> Mojca Miklavec  writes:
>>
>>> (But that luatex is probably stripped.)
>>
>> So the next question is: how can I build luatex from those sources with
>> the debug symbols?
>
> Fetch sources from here:
>
> http://www.tug.org/texlive/build.html
>
> Just run ./Build --debug, or, if you want to save time, this was the
> command that didn't work for me (I think that I excluded too many
> things):
>
> ./Build --debug --enable-cxx-runtime-hack \
>  --disable-all-pkgs \
> [...]

The ./Build seems to accept only the first argument, because 

./Build --debug --disable-xindy -without-x --disable-xetex \
--disable-xdvipdfmx

is building the whole world.

Anyway, I think I got the backtrace:

Starting program: 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"

Program received signal SIGSEGV, Segmentation fault.
0x08148923 in getpdf (L=0x8916158) at 
../../../texk/web2c/luatexdir/lua/lpdflib.c:615
615 lua_pushnumber(L, static_pdf->posstruct->pos.h);
#0  0x08148923 in getpdf (L=0x8916158) at 
../../../texk/web2c/luatexdir/lua/lpdflib.c:615
#1  0x082d3c75 in luaD_precall (L=0x8916158, func=0xafa362c, nresults=1) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:319
#2  0x082d3eb8 in luaD_call (L=0x8916158, func=0xafa362c, nResults=1) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:376
#3  0x082e43c7 in callTMres (L=0x8916158, res=0xafa3590, f=0x89343e8, 
p1=0xafa3590, p2=0x8f3daf4) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88
#4  0x082e466d in luaV_gettable (L=0x8916158, t=0xafa3590, key=0x8f3daf4, 
val=0xafa3590) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125
#5  0x082e56fc in luaV_execute (L=0x8916158, nexeccalls=2) at 
../../../texk/web2c/luatexdir/lua51/lvm.c:437
#6  0x082d3ecf in luaD_call (L=0x8916158, func=0xafa3548, nResults=0) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:377
#7  0x082cc7ed in f_call (L=0x8916158, ud=0xbfffdc8c) at 
../../../texk/web2c/luatexdir/lua51/lapi.c:795
#8  0x082d310d in luaD_rawrunprotected (L=0x8916158, f=0x82cc7c3 , 
ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116
#9  0x082d4219 in luaD_pcall (L=0x8916158, func=0x82cc7c3 , 
u=0xbfffdc8c, old_top=288, ef=276) at 
../../../texk/web2c/luatexdir/lua51/ldo.c:457
#10 0x082cc887 in lua_pcall (L=0x8916158, nargs=0, nresults=0, errfunc=23) at 
../../../texk/web2c/luatexdir/lua51/lapi.c:816
#11 0x080cd562 in luacall (p=195, nameptr=0, is_string=1) at 
../../../texk/web2c/luatexdir/lua/luastuff.w:397
#12 0x080cd68d in late_lua (pdf=0x89a9278, p=964) at 
../../../texk/web2c/luatexdir/lua/luastuff.w:419
#13 0x0819d769 in out_what (pdf=0x89a9278, p=964) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:270
#14 0x0819e9d0 in hlist_out (pdf=0x89a9278, this_box=2463) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:567
#15 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=844) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#16 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=853) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#17 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=879) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#18 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2236) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#19 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2245) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#20 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2258) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#21 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2267) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#22 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2318) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#23 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2350) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:459
#24 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2359) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#25 0x0819fca4 in vlist_out (pdf=0x89a9278, this_box=2372) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:909
#26 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2421) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:457
#27 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2430) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:911
#28 0x0819fca4 in vlist_out (pdf=0x89a9278, this_box=2445) at 
../../../texk/web2c/luatexdir/pdf/pdflistout.w:909
#29 0x0819fca4 in vlist_out (pdf=0x89a9278, this_box=968) at 
../../../texk/web2c/luatexdir/pdf/pdflis

Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread luigi scarso
On Thu, May 17, 2012 at 6:25 PM, Marco Pessotto  wrote:
> Mojca Miklavec  writes:
>
>> (But that luatex is probably stripped.)
>
> So the next question is: how can I build luatex from those sources with
> the debug symbols?
Try
build.sh --nostrip



BTW last revision is ok

# context test.tex

mtx-context | run 1: luatex
--fmt="/media/LaCie/opt/luatex/texlive/2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
--lua="/media/LaCie/opt/luatex/texlive/2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
--backend="pdf" "./test.tex" \stoptext
This is LuaTeX, Version beta-0.71.0-2012051718 (rev 4418)
 \write18 enabled.
(test.tex

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.17  int: english/english

system  > cont-new.mkiv loaded
(/media/LaCie/opt/luatex/texlive/2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > test.top loaded
(test.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
backend > xmp > using file
'/media/LaCie/opt/luatex/texlive/2012/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
structure   > sectioning > chapter @ level 2 : 0.1 -> hello
pages   > flushing realpage 2, userpage 2
 
)
mkiv lua stats  > used config file  -
selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path   -
/media/LaCie/opt/luatex/texlive/2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > resource resolver - loadtime 0.140 seconds,
0 scans with scantime 0.000 seconds, 0 shared scans, 46 found files,
scanned paths:
mkiv lua stats  > stored bytecode data  - 303 modules, 65 tables, 368 chunks
mkiv lua stats  > cleaned up reserved nodes - 39 nodes, 9 lists of 438
mkiv lua stats  > node memory usage - 2 glue, 2 penalty, 12
attribute, 36 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5
instances (re)created, 199 calls
mkiv lua stats  > used backend  - pdf (backend for
directly generating pdf output)
mkiv lua stats  > loaded patterns   - en::2
mkiv lua stats  > jobdata time  - 0.003 seconds saving,
0.001 seconds loading
mkiv lua stats  > callbacks - 383 direct, 563
indirect, 946 total
mkiv lua stats  > randomizer- resumed with value
0.58385957711556
mkiv lua stats  > lxml preparation time - 0.000 seconds, 0 nodes,
15 lpath calls, 0 cached calls
mkiv lua stats  > interactive elements  - 1 references, 1 destinations
mkiv lua stats  > result saved in file  - test.pdf
mkiv lua stats  > loaded fonts  - 34 files: stmary10.afm
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf
lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf
lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf
lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf
lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm
msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm
lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm
lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time   - 0.567 seconds
mkiv lua stats  > pdf annotations   - 1 embedded, 1 unique
mkiv lua stats  > luatex banner - this is luatex, version
beta-0.71.0-2012051718 (rev 4418)
mkiv lua stats  > control sequences - 33581 of 65536 + 10
mkiv lua stats  > current memory usage  - 39 MB (ctx: 39 MB)
mkiv lua stats  > runtime   - 1.365 seconds, 1
processed pages, 2 shipped pages, 1.465 pages/second

system  | total runtime: 1.757



-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Marco Pessotto
Mojca Miklavec  writes:

> (But that luatex is probably stripped.)

So the next question is: how can I build luatex from those sources with
the debug symbols?


-- 
Marco

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread luigi scarso
same problem here with latest tl2012-pretest

# context test

mtx-context | run 1: luatex
--fmt="/media/LaCie/opt/luatex/texlive/2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
--lua="/media/LaCie/opt/luatex/texlive/2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
--backend="pdf" "./test" \stoptext
This is LuaTeX, Version beta-0.70.1-2012051323 (TeX Live 2012)
 \write18 enabled.
(test.tex

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.17  int: english/english

system  > cont-new.mkiv loaded
(/media/LaCie/opt/luatex/texlive/2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > test.top loaded
(test.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/LaCie/opt/luatex/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
backend > xmp > using file
'/media/LaCie/opt/luatex/texlive/2012/texmf-dist/tex/context/base/lpdf-pdx.xml'

mtx-context | fatal error: no return code, message: luatex:
execution 
interruptedroot@luigicasa-laptop:/media/LaCie/opt/luatex/texlive/texmf-local/tex/context/local#

Linux  2.6.32-41-generic-pae #89-Ubuntu SMP Fri Apr 27 23:59:24
UTC 2012 i686 GNU/Linux
ubuntu 10.04 lts 32bit
-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Marco Pessotto
Mojca Miklavec  writes:

> On Thu, May 17, 2012 at 2:37 PM, Marco Pessotto wrote:
>> Hans Hagen  writes:
>>
>>> On 16-5-2012 21:02, Marco Pessotto wrote:
>>>
 mtx-context | fatal error: no return code, message: luatex: execution
 interrupted[21:00]
>>>
>>> looks like a crashing luatex
>>
>> I forgot to report the architecture and the platform, which is Gnu/Linux
>> i386, Debian stable.
>>
>> If you send me instructions how to give you a backtrace, I'll be glad to
>> do it.
>
> gdb luatex
> r 
> --fmt="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
> --lua="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
> --backend="pdf" "./ciao.tex"
>
> (But that luatex is probably stripped.)

Indeed it is.

[17:32] melmoth@universe:~/progetti/debug$ gdb luatex
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex...(no debugging 
symbols found)...done.
(gdb) run 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"
Starting program: 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex 
--fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex"
This is LuaTeX, Version beta-0.70.1-2012051323 (TeX Live 2012)
 \write18 enabled.
(ciao.tex

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.17  int: english/english

system  > cont-new.mkiv loaded
(/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > ciao.top loaded
(ciao.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
backend > xmp > using file 
'/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml'

Program received signal SIGSEGV, Segmentation fault.
0x08132e87 in ?? ()
(gdb) bt
#0  0x08132e87 in ?? ()
#1  0x0826d4dd in ?? ()
#2  0x0826d700 in ?? ()
#3  0x0827b935 in ?? ()
#4  0x0827bac2 in ?? ()
#5  0x0827c684 in ?? ()
#6  0x0826d751 in ?? ()
#7  0x08266921 in ?? ()
#8  0x0826ccf0 in ?? ()
#9  0x0826da18 in ?? ()
#10 0x0826698a in lua_pcall ()
#11 0x080d173f in ?? ()
#12 0x080d188b in late_lua ()
#13 0x0817434e in out_what ()
#14 0x08174f2e in hlist_out ()
#15 0x03c4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) quit
A debugging session is active.

Inferior 1 [process 12490] will be killed.

Quit anyway? (y or n) y

> Is the problem reproducible if you copy Luatex from TeX Live to
> ConTeXt distribution? Since the version of ConTeXt is exactly the
> same.

Same outcome:

 cp /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex  `which 
luatex`

[17:38] melmoth@universe:~/progetti/debug$ which luatex
/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-linux/bin/luatex
[17:38] melmoth@universe:~/progetti/debug$ cp 
/media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex  `which luatex` 
[17:38] melmoth@universe:~/progetti/debug$ which context
/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-linux/bin/context
[17:38] melmoth@universe:~/progetti/debug$ context ciao.tex 

[here lot of output from expired cache]

mtx-context | run 1: luatex 
--fmt="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/cont

Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Mojca Miklavec
On Thu, May 17, 2012 at 2:37 PM, Marco Pessotto wrote:
> Hans Hagen  writes:
>
>> On 16-5-2012 21:02, Marco Pessotto wrote:
>>
>>> mtx-context | fatal error: no return code, message: luatex: execution
>>> interrupted[21:00]
>>
>> looks like a crashing luatex
>
> I forgot to report the architecture and the platform, which is Gnu/Linux
> i386, Debian stable.
>
> If you send me instructions how to give you a backtrace, I'll be glad to
> do it.

gdb luatex
r 
--fmt="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
--lua="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
--backend="pdf" "./ciao.tex"

(But that luatex is probably stripped.)

Is the problem reproducible if you copy Luatex from TeX Live to
ConTeXt distribution? Since the version of ConTeXt is exactly the
same.

Mojca
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Mojca Miklavec
On Thu, May 17, 2012 at 2:00 PM, Hans Hagen wrote:
> On 16-5-2012 21:02, Marco Pessotto wrote:
>
>> mtx-context     | fatal error: no return code, message: luatex: execution
>> interrupted[21:00]
>
>
> looks like a crashing luatex

The weird part is that it works the first time and only the second run
crashes. (I'm not able to reproduce it on mac.)

Mojca
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Marco Pessotto
Hans Hagen  writes:

> On 16-5-2012 21:02, Marco Pessotto wrote:
>
>> mtx-context | fatal error: no return code, message: luatex: execution
>> interrupted[21:00]
>
> looks like a crashing luatex

I forgot to report the architecture and the platform, which is Gnu/Linux
i386, Debian stable.

If you send me instructions how to give you a backtrace, I'll be glad to
do it.


-- 
Marco

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Hans Hagen

On 16-5-2012 21:02, Marco Pessotto wrote:


mtx-context | fatal error: no return code, message: luatex: execution 
interrupted[21:00]


looks like a crashing luatex


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Testing TeX Live 2012

2012-05-17 Thread Marco Pessotto
Mojca Miklavec  writes:

> Dear ConTeXt users,
>
> TeX Live 2012 is going to be released soon. After the first successful
> year of ConTeXt in TeX Live, it would be great to get enough testers
> before the release (to make sure that it works flawlessly) and to get
> rid of as many bugs as possible.

Should the ConteXt-related problems be reported here?

If so:

I have a failing minimal example with the today's pretest (and works
perfectly with the latest minimals).

I'm available for testing.

Best regards

Else:

Sorry for the noise.


% cut here

\setupinteraction[state=start,color=black,contrastcolor=black,style=bold]

\starttext 

\placecontent

\chapter{hello}
\stoptext

%% stop

Log:

context --version

mtx-context | ConTeXt Process Management 0.52
mtx-context |
mtx-context | main context file: 
/media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/context.mkiv
mtx-context | current version: 2012.05.14 16:00
[21:00] melmoth@universe:/tmp$ context ciao.tex 

mtx-context | run 1: luatex 
--fmt="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en"
 
--lua="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui"
 --backend="pdf" "./ciao.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2012051323 (TeX Live 2012)
 \write18 enabled.
(ciao.tex

ConTeXt  ver: 2012.05.14 16:00 MKIV  fmt: 2012.5.16  int: english/english

system  > cont-new.mkiv loaded
(/media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > ciao.top loaded
(ciao.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
structure   > sectioning > chapter @ level 2 : 0.1 -> hello
backend > xmp > using file 
'/media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
 
)
mkiv lua stats  > used config file  - 
selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path   - 
/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > resource resolver - loadtime 0.142 seconds, 0 scans 
with scantime 0.000 seconds, 0 shared scans, 46 found files, scanned paths: 
mkiv lua stats  > stored bytecode data  - 303 modules, 65 tables, 368 chunks
mkiv lua stats  > cleaned up reserved nodes - 39 nodes, 9 lists of 438
mkiv lua stats  > node memory usage - 2 glue, 2 penalty, 12 attribute, 
28 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances 
(re)created, 151 calls
mkiv lua stats  > used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats  > loaded patterns   - en::2
mkiv lua stats  > jobdata time  - 0.001 seconds saving, 0.000 
seconds loading
mkiv lua stats  > callbacks - 279 direct, 567 indirect, 846 
total
mkiv lua stats  > lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath 
calls, 0 cached calls
mkiv lua stats  > interactive elements  - 0 references, 1 destinations
mkiv lua stats  > result saved in file  - ciao.pdf
mkiv lua stats  > loaded fonts  - 34 files: stmary10.afm 
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf 
lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf 
lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf 
lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm 
eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm 
lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm 
lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time   - 0.378 seconds 
mkiv lua stats  > luatex banner - this is luatex, version 
beta-0.70.1-2012051323 (tex live 2012)
mkiv lua stats  > control sequences - 33576 of 65536 + 10
mkiv lua stats  > current memory usage  - 39 MB (ctx: 39 MB)
mkiv lua stats  > runtime   - 1.175 seconds, 1 processed pages, 
1 shipped pages, 0.851 pages/second

mtx-context | run 2: luatex 
--fmt="/media/data/melmot