Marco Pessotto <melmo...@gmail.com> 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 <http://gnu.org/licenses/gpl.html> 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: <http://www.gnu.org/software/gdb/bugs/>... 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 No stack. (gdb) quit [21:02] melmoth@universe:/tmp$ cat gdb.txt 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" Program exited with code 0106. No stack. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% For the second case I still don't have a minimal example (I'm working on it), but I have the backtrace. Program received signal SIGSEGV, Segmentation fault. 0x0812a07e in setup_image (pdf=0x89a9318, a=0xdba4858, writetype=WR_NODE) at ../../../texk/web2c/luatexdir/lua/limglib.c:565 565 obj_data_ptr(pdf, pdf->obj_ptr) = img_index(ad); (gdb) bt #0 0x0812a07e in setup_image (pdf=0x89a9318, a=0xdba4858, writetype=WR_NODE) at ../../../texk/web2c/luatexdir/lua/limglib.c:565 #1 0x0812a127 in write_image_or_node (L=0x8916160, writetype=WR_NODE) at ../../../texk/web2c/luatexdir/lua/limglib.c:581 #2 0x0812a29a in l_image_node (L=0x8916160) at ../../../texk/web2c/luatexdir/lua/limglib.c:620 #3 0x082d3c41 in luaD_precall (L=0x8916160, func=0xd0b6160, nresults=-1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:319 #4 0x082e6b5b in luaV_execute (L=0x8916160, nexeccalls=2) at ../../../texk/web2c/luatexdir/lua51/lvm.c:587 #5 0x082d3e9b in luaD_call (L=0x8916160, func=0xd0b60e8, nResults=0) at ../../../texk/web2c/luatexdir/lua51/ldo.c:377 #6 0x082cc7b9 in f_call (L=0x8916160, ud=0xbffff11c) at ../../../texk/web2c/luatexdir/lua51/lapi.c:795 #7 0x082d30d9 in luaD_rawrunprotected (L=0x8916160, f=0x82cc78f <f_call>, ud=0xbffff11c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116 #8 0x082d41e5 in luaD_pcall (L=0x8916160, func=0x82cc78f <f_call>, u=0xbffff11c, old_top=288, ef=276) at ../../../texk/web2c/luatexdir/lua51/ldo.c:457 #9 0x082cc853 in lua_pcall (L=0x8916160, nargs=0, nresults=0, errfunc=23) at ../../../texk/web2c/luatexdir/lua51/lapi.c:816 #10 0x080cd862 in luatokencall (p=478135, nameptr=-65536) at ../../../texk/web2c/luatexdir/lua/luastuff.w:457 #11 0x0811efb1 in conv_toks () at ../../../texk/web2c/luatexdir/tex/textoken.w:1899 #12 0x080e38c7 in expand () at ../../../texk/web2c/luatexdir/tex/expand.w:230 #13 0x080e3ca3 in get_x_token () at ../../../texk/web2c/luatexdir/tex/expand.w:391 #14 0x080ec837 in main_control () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:892 #15 0x080e9ad2 in main_body () at ../../../texk/web2c/luatexdir/tex/mainbody.w:469 #16 0x080c1a17 in main (ac=5, av=0xbffff384) at ../../../texk/web2c/luatexdir/luatex.c:460 (gdb) bt full #0 0x0812a07e in setup_image (pdf=0x89a9318, a=0xdba4858, writetype=WR_NODE) at ../../../texk/web2c/luatexdir/lua/limglib.c:565 ad = 0xdba7640 __PRETTY_FUNCTION__ = "setup_image" #1 0x0812a127 in write_image_or_node (L=0x8916160, writetype=WR_NODE) at ../../../texk/web2c/luatexdir/lua/limglib.c:581 a = 0xdba4858 aa = 0xdba47bc ad = 0xdba7640 n = 137245427 __PRETTY_FUNCTION__ = "write_image_or_node" #2 0x0812a29a in l_image_node (L=0x8916160) at ../../../texk/web2c/luatexdir/lua/limglib.c:620 No locals. #3 0x082d3c41 in luaD_precall (L=0x8916160, func=0xd0b6160, nresults=-1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:319 ci = 0xc8db400 n = 218849632 cl = 0x89788b0 funcr = 408 #4 0x082e6b5b in luaV_execute (L=0x8916160, nexeccalls=2) at ../../../texk/web2c/luatexdir/lua51/lvm.c:587 b = 2 nresults = -1 i = 16777756 ra = 0xd0b6160 cl = 0x9e0bc68 base = 0xd0b6100 k = 0x9e041c8 pc = 0x9e0417c #5 0x082d3e9b in luaD_call (L=0x8916160, func=0xd0b60e8, nResults=0) at ../../../texk/web2c/luatexdir/lua51/ldo.c:377 No locals. #6 0x082cc7b9 in f_call (L=0x8916160, ud=0xbffff11c) at ../../../texk/web2c/luatexdir/lua51/lapi.c:795 c = 0xbffff11c #7 0x082d30d9 in luaD_rawrunprotected (L=0x8916160, f=0x82cc78f <f_call>, ud=0xbffff11c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116 lj = {previous = 0x0, b = {{__jmpbuf = {-12, 1337, 0, -1073745752, -1962225262, 783587069}, __mask_was_saved = 0, __saved_mask = {__val = {20, 3086441110, 3086578648, 3086440834, 3086441584, 3221221448, 24, 3086440834, 0, 3086578592, 1337, 3086578640, 3086573556, 3086578592, 0, 3221221496, 3085708684, 3086578592, 20, 3085712571, 144195416, 1337, 0, 3221221544, 135055310, 20, 20, 32, 0, 0, 16777240, 0}}}}, status = 0} #8 0x082d41e5 in luaD_pcall (L=0x8916160, func=0x82cc78f <f_call>, u=0xbffff11c, old_top=288, ef=276) at ../../../texk/web2c/luatexdir/lua51/ldo.c:457 status = -1209272810 oldnCcalls = 0 old_ci = 0 old_allowhooks = 1 '\001' old_errfunc = 0 #9 0x082cc853 in lua_pcall (L=0x8916160, nargs=0, nresults=0, errfunc=23) at ../../../texk/web2c/luatexdir/lua51/lapi.c:816 c = {func = 0xd0b60e8, nresults = 0} status = 218849500 func = 276 #10 0x080cd862 in luatokencall (p=478135, nameptr=-65536) at ../../../texk/web2c/luatexdir/lua/luastuff.w:457 base = 23 ---Type <return> to continue, or q <return> to quit--- ls = {s = 0xdba9340 "\250G\272\r", size = 0} i = 0 l = 17 s = 0x0 lua_id = 0xdba4668 "main ctx instance" __PRETTY_FUNCTION__ = "luatokencall" #11 0x0811efb1 in conv_toks () at ../../../texk/web2c/luatexdir/tex/textoken.w:1899 old_setting = 7 p = 0 q = -1073745400 save_scanner_status = 0 save_def_ref = 423141 save_warning_index = 27153 bool = -1073745416 s = 478135 sn = -65536 u = 0 i = 0 j = 0 c = 23 str = 10 #12 0x080e38c7 in expand () at ../../../texk/web2c/luatexdir/tex/expand.w:230 t = 135388990 p = 0 cur_ptr = 0 cv_backup = -2147483647 cvl_backup = 0 radix_backup = 0 co_backup = 0 backup_backup = 0 save_scanner_status = 0 #13 0x080e3ca3 in get_x_token () at ../../../texk/web2c/luatexdir/tex/expand.w:391 No locals. #14 0x080ec837 in main_control () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:892 No locals. #15 0x080e9ad2 in main_body () at ../../../texk/web2c/luatexdir/tex/mainbody.w:469 pdftex_map = "pdftex.map" #16 0x080c1a17 in main (ac=5, av=0xbffff384) at ../../../texk/web2c/luatexdir/luatex.c:460 No locals. (gdb) (gdb) (gdb) quit A debugging session is active. Inferior 1 [process 17548] will be killed. %%%%%%%%%%% third case (while bisecting) %%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gdb luatex GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex...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" "./MANUAL.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" "./MANUAL.tex" This is LuaTeX, Version beta-0.70.2-2012052117 (TeX Live 2012) \write18 enabled. (MANUAL.tex 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 > MANUAL.top loaded (MANUAL.top) fonts > latin modern fonts are not preloaded languages > language en is active fonts > beware: no fonts are loaded yet, using 'lm mono' in box fonts > typescripts > unknown: library 'loc' (/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/type-imp-xits.mkiv (/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/type-imp-texgyre.mkiv)){/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} floatblocks > 1 placed floatblocks > 2 placed backend > xmp > using file '/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml' <àù^^Hluatex: ../../../texk/web2c/luatexdir/image/writejbig2.w:818: write_jbig2: Assertion `file_tree!=((void *)0)' failed. Program received signal SIGABRT, Aborted. 0xb7fe2424 in __kernel_vsyscall () (gdb) bt #0 0xb7fe2424 in __kernel_vsyscall () #1 0xb7e7d781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xb7e80bb2 in *__GI_abort () at abort.c:92 #3 0xb7e768e8 in *__GI___assert_fail ( assertion=0x849895d "file_tree!=((void *)0)", file=0x84985f4 "../../../texk/web2c/luatexdir/image/writejbig2.w", line=818, function=0x84989d3 "write_jbig2") at assert.c:81 #4 0x080c6381 in write_jbig2 (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writejbig2.w:818 #5 0x080c3bcf in write_img (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writeimg.w:595 #6 0x080c3caa in pdf_write_image (pdf=0x89a9330, n=15) at ../../../texk/web2c/luatexdir/image/writeimg.w:622 #7 0x080d3478 in pdf_end_page (pdf=0x89a9330) at ../../../texk/web2c/luatexdir/pdf/pdfgen.w:1939 #8 0x080da42d in ship_out (pdf=0x89a9330, p=4282, shipping_mode=SHIPPING_PAGE) at ../../../texk/web2c/luatexdir/pdf/pdfshipout.w:295 #9 0x080edc8b in box_end (box_context=1073872897) at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1398 #10 0x080fb97f in package (c=0) at ../../../texk/web2c/luatexdir/tex/packaging.w:1271 #11 0x080ed219 in handle_right_brace () ---Type <return> to continue, or q <return> to quit--- at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1189 #12 0x080ec8a8 in main_control () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:905 #13 0x080e9ad2 in main_body () at ../../../texk/web2c/luatexdir/tex/mainbody.w:469 #14 0x080c1a17 in main (ac=5, av=0xbffff384) at ../../../texk/web2c/luatexdir/luatex.c:460 (gdb) (gdb) bt full #0 0xb7fe2424 in __kernel_vsyscall () No symbol table info available. #1 0xb7e7d781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 resultvar = <value optimized out> pid = -1208393740 selftid = 17990 #2 0xb7e80bb2 in *__GI_abort () at abort.c:92 act = {__sigaction_handler = {sa_handler = 0x88, sa_sigaction = 0x88}, sa_mask = {__val = {305, 136, 3086578592, 3086573556, 3086578592, 118, 3221221136, 3085708477, 147998000, 3086573556, 3086573556, 119, 3221221336, 3085643608, 148803032, 148803032, 118, 147998000, 0, 4222451712, 148803032, 148803133, 148803032, 148803032, 148803150, 148803332, 148803032, 148803332, 0, 0, 0, 0}}, sa_flags = 0, sa_restorer = 0x2} sigs = {__val = {32, 0 <repeats 31 times>}} #3 0xb7e768e8 in *__GI___assert_fail ( assertion=0x849895d "file_tree!=((void *)0)", file=0x84985f4 "../../../texk/web2c/luatexdir/image/writejbig2.w", line=818, function=0x84989d3 "write_jbig2") at assert.c:81 buf = 0x8de8f08 "luatex: ../../../texk/web2c/luatexdir/image/writejbig2.w:818: write_jbig2: Assertion `file_tree!=((void *)0)' failed.\n" #4 0x080c6381 in write_jbig2 (pdf=0x89a9330, idict=0x8b933b0) ---Type <return> to continue, or q <return> to quit--- at ../../../texk/web2c/luatexdir/image/writejbig2.w:818 fip = 0x0 tmp = {file = 0x8123802, filepath = 0xb7f964c0 "\207(\255\373\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\be", <incomplete sequence \371\267>, filesize = 137152399, pages = {first = 0xbffff08c, last = 0x8663646, tree = 0x0}, page0 = {first = 0xb6d46008, last = 0xbffff0a8, tree = 0x812358b}, filehdrflags = 3086574784, sequentialaccess = 1024, numofpages = 139035261, streamstart = -1073745740, pdfpage0objnum = 144347952, phase = INITIAL} pip = 0xbffff0b4 __PRETTY_FUNCTION__ = "write_jbig2" #5 0x080c3bcf in write_img (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writeimg.w:595 __PRETTY_FUNCTION__ = "write_img" #6 0x080c3caa in pdf_write_image (pdf=0x89a9330, n=15) at ../../../texk/web2c/luatexdir/image/writeimg.w:622 No locals. #7 0x080d3478 in pdf_end_page (pdf=0x89a9330) at ../../../texk/web2c/luatexdir/pdf/pdfgen.w:1939 j = 0 annots = 0 ---Type <return> to continue, or q <return> to quit--- beads = 0 res_p = 0xa185b00 local_page_resources = {resources_tree = 0xce575, last_resources = 0} annot_list = 0x0 bead_list = 0x0 link_list = 0x0 ol = 0xa1fafe8 ol1 = 0x0 save_cur_page_size = {h = -47362866, v = -1073745640} save_shipping_mode = NOT_SHIPPING procset = 1 __PRETTY_FUNCTION__ = "pdf_end_page" #8 0x080da42d in ship_out (pdf=0x89a9330, p=4282, shipping_mode=SHIPPING_PAGE) at ../../../texk/web2c/luatexdir/pdf/pdfshipout.w:295 j = 0 k = 47362866 post_callback_id = 31 pre_callback_id = 30 refpoint = {pos = {h = 4736286, v = 47362866}, dir = 135247159} cur = {h = 0, v = 47362866} __PRETTY_FUNCTION__ = "ship_out" #9 0x080edc8b in box_end (box_context=1073872897) at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1398 ---Type <return> to continue, or q <return> to quit--- __PRETTY_FUNCTION__ = "box_end" #10 0x080fb97f in package (c=0) at ../../../texk/web2c/luatexdir/tex/packaging.w:1271 h = 1337 p = 0 d = 1073741823 grp = 4 #11 0x080ed219 in handle_right_brace () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1189 p = 0 q = 0 d = 144195440 f = -1073745304 #12 0x080ec8a8 in main_control () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:905 No locals. #13 0x080e9ad2 in main_body () at ../../../texk/web2c/luatexdir/tex/mainbody.w:469 pdftex_map = "pdftex.map" #14 0x080c1a17 in main (ac=5, av=0xbffff384) at ../../../texk/web2c/luatexdir/luatex.c:460 -- 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 ___________________________________________________________________________________