Re: [NTG-context] crash with pdftex-1.40
It breaks here on Ubuntu 6.06 LTS, latest pdftex, latest context distro t is \starttext \def\myCMD#1{%.. \stoptext t1 is \starttext \input \string|echo -n bla \stoptext luigi [EMAIL PROTECTED]:/tmp# texmfstart texexec --pdf t TeXExec | processing document 't' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file t.top TeXExec | using randomseed 1369 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.141592-1.40.0 (Web2C 7.5.6) \write18 enabled. %-line parsing enabled. (/opt/texlive/2005-test/texmf/web2c/natural.tcx) entering extended mode (./t.tex ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.3 int: english/english language: language en is active system : cont-new loaded (/opt/texlive/2005-test/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/opt/texlive/2005-test/texmf-dist/tex/context/base/cont-new.mkii)) system : cont-old loaded (/opt/texlive/2005-test/texmf-dist/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/opt/texlive/2005-test/texmf-dist/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/opt/texlive/2005-test/texmf-dist/tex/context/base/cont-sys.tex (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-exa.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-syn.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-enc.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-siz.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-map.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-spe.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi :texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec- 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec -17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded specials: tex,postscript,rokicki loaded system : t.top loaded (./t.top specials: loading definition file tpd (/opt/texlive/2005-test/texmf-dist/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/opt/texlive/2005-test/texmf-dist/tex/context/base/spec-fdf.tex (/opt/texlive/2005-test/texmf-dist/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are enabled (/opt/texlive/2005-test/texmf-dist/tex/context/base/sort-def.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/sort-lan.tex) (/opt/texlive/2005-test/texmf-dist/tex/context/base/pdfr-def.tex) systems : begin file t at line 1 (./texcmd.tmp) (./texcmd.tmp) (./texcmd.tmp)*** glibc detected *** pdfetex: free(): invalid next size (fast): 0x0852eba8 *** === Backtrace: = /lib/tls/i686/cmov/libc.so.6[0xb7eae8bd] /lib/tls/i686/cmov/libc.so.6(__libc_free+0x84)[0xb7eaea44] pdfetex[0x80a776b] pdfetex[0x8078858] pdfetex[0x806c3a9] pdfetex[0x8078666] pdfetex[0x80a55fd] pdfetex[0x8059b11] pdfetex[0x80a90a7] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7e5d8cc] pdfetex[0x804a471] === Memory map: 08048000-08169000 r-xp 08:03 607410 /opt/texlive/2005-test/bin/i386-linux/pdfetex 08169000-0818 rw-p 0012 08:03 607410 /opt/texlive/2005-test/bin/i386-linux/pdfetex 0818-08545000 rw-p 0818 00:00 0 [heap] b3c0-b3c21000 rw-p b3c0 00:00 0 b3c21000-b3d0 ---p b3c21000 00:00 0 b3dfd000-b7e48000 rw-p b3dfd000 00:00 0 b7e48000-b7f75000 r-xp 08:03 2638865/lib/tls/i686/cmov/libc-2.4.so b7f75000-b7f77000 r--p 0012c000 08:03 2638865/lib/tls/i686/cmov/libc-2.4.so b7f77000-b7f79000 rw-p 0012e000 08:03 2638865/lib/tls/i686/cmov/libc-2.4.so b7f79000-b7f7c000 rw-p b7f79000 00:00 0 b7f7c000-b7fa r-xp 08:03 2638873/lib/tls/i686/cmov/libm-2.4.so b7fa-b7fa2000 rw-p 00023000 08:03 2638873/lib/tls/i686/cmov/libm-2.4.so b7faa000-b7fb4000 r-xp 08:03 2605080/lib/libgcc_s.so.1 b7fb4000-b7fb5000 rw-p 9000 08:03 2605080/lib/libgcc_s.so.1 b7fb5000-b7fbb000 rw-p b7fb5000 00:00 0 b7fbb000-b7fd4000 r-xp 08:03 2605078/lib/ld-2.4.so b7fd4000-b7fd6000 rw-p 00018000 08:03 2605078/lib/ld-2.4.so bfbbf000-bfbd4000 rw-p bfbbf000 00:00 0 [stack] e000-f000 ---p 00:00 0 [vdso] TeXExec | runtime: 0.255877 [EMAIL PROTECTED]:/tmp# texmfstart texexec --pdf t1 TeXExec | processing document 't1' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file t1.top
Re: [NTG-context] crash with pdftex-1.40
Sanjoy Mahajan wrote: But this should be enough to reproduce it: \starttext \input \string|echo -n bla \stoptext Breaks here too, using pdftex 1.40.0, context 2006.12.27, Ubuntu i386: This bug is found and fixed and will be corrected in the next pdftex release. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] crash with pdftex-1.40
Hello, this is probably only related to pdfTeX and not to ConTeXt, but I'm too lazy to subscribe yet to another list... ;) While playing around with the new shell escaping in pdftex-1.40, I got the following crash: TeXExec | processing document 'test' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 121 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.0 (Web2C 7.5.6) \write18 enabled. (/opt/TeX-live/texmf/web2c/natural.tcx) entering extended mode (./test.tex ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.4 int: english/english language: language en is active system : cont-new loaded (/opt/TeX-live/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/opt/TeX-live/texmf-context/tex/context/base/cont-new.mkii)) system : cont-old loaded (/opt/TeX-live/texmf-context/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/opt/TeX-live/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/home/peter/.TeX/cont-sys.tex (/opt/TeX-live/texmf-context/tex/context/user/cont-sys.rme (/opt/TeX-live/texmf-context/tex/context/base/type-exa.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-syn.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-enc.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-siz.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-map.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-spe.tex) (/opt/TeX-live/texmf-context/tex/context/base/type-akb.tex)) (/home/peter/.TeX/dd-macros.tex loading : Macros for Delta Dore )) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:3 nl-ec:ec-2-2:3 fr- texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3 de-texnansi:texnansi-5-2:3 de-e c:ec-6-2:3 it-texnansi:texnansi-7-2:3 it-ec:ec-8-2:3 pt-texnansi:texna nsi-9-2:3 pt-ec:ec-10-2:3 hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3 pl-ec:e c-13-2:3 pl-qx:qx-14-2:3 cz-il2:il2-15-2:3 cz-ec:ec-16-2:3 sk-il2:i l2-17-2:3 sk-ec:ec-18-2:3 sl-ec:ec-19-2:3 ru-t2a:t2a-21-2:3 en-ec:e c-22-2:3 uk-ec:ec-23-2:3 us-ec:ec-24-2:3 agr-agr:agr-25-2:3 da-ec:e c-26-2:3 sv-ec:ec-27-2:3 af-ec:ec-28-2:3 no-ec:ec-29-2:3 deo-ec:ec- 30-2:3 es-ec:ec-31-2:3 ca-ec:ec-32-2:3 la-ec:ec-33-2:3 ro-ec:ec-34 -2:3 tr-ec:ec-35-2:3 fi-ec:ec-37-2:3 hu-ec:ec-38-2:3 loaded specials: tex,postscript,rokicki loaded system : test.top loaded (./test.top specials: loading definition file tpd (/opt/TeX-live/texmf-context/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/opt/TeX-live/texmf-context/tex/context/base/spec-fdf.tex (/opt/TeX-live/texmf-context/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are enabled (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (/opt/TeX-live/texmf-context/tex/context/base/sort-def.tex) (/opt/TeX-live/texmf-context/tex/context/base/sort-lan.tex) (./test.tuo) (./test.tuo) (/opt/TeX-live/texmf-context/tex/context/base/pdfr-def.tex) systems : begin file test at line 1 (./texcmd.tmp) (./texcmd.tmp) (./texcmd.tmp)TeXExec | runtime: 0.318195 *** glibc detected *** pdftex: free(): invalid next size (fast): 0x0850f718 *** === Backtrace: = /lib/libc.so.6[0xb7dbe911] /lib/libc.so.6(__libc_free+0x84)[0xb7dbff84] pdftex[0x80a54b9] pdftex[0x80774fe] pdftex[0x806b764] pdftex[0x807732e] pdftex[0x80a2d2d] pdftex[0x8059f1c] pdftex[0x80a6e3b] /lib/libc.so.6(__libc_start_main+0xdc)[0xb7d7087c] pdftex[0x804a9e1] === Memory map: 08048000-08145000 r-xp fe:01 262328 /opt/TeX-live/bin/pdftex 08145000-0815c000 rw-p 000fc000 fe:01 262328 /opt/TeX-live/bin/pdftex 0815c000-08539000 rw-p 0815c000 00:00 0 [heap] b3a0-b3a21000 rw-p b3a0 00:00 0 b3a21000-b3b0 ---p b3a21000 00:00 0 b3b13000-b3b1d000 r-xp 03:02 114396 /lib/libgcc_s.so.1 b3b1d000-b3b1e000 rw-p 9000 03:02 114396 /lib/libgcc_s.so.1 b3b3b000-b7d5b000 rw-p b3b3b000 00:00 0 b7d5b000-b7e74000 r-xp 03:02 114286 /lib/libc-2.4.so b7e74000-b7e76000 r--p 00118000 03:02 114286 /lib/libc-2.4.so b7e76000-b7e78000 rw-p 0011a000 03:02 114286 /lib/libc-2.4.so b7e78000-b7e7b000 rw-p b7e78000 00:00 0 b7e7b000-b7e9e000 r-xp 03:02 114294 /lib/libm-2.4.so b7e9e000-b7ea rw-p 00022000 03:02 114294 /lib/libm-2.4.so b7ea-b7eb1000 r-xp 03:02 114337 /lib/libz.so.1.2.3 b7eb1000-b7eb2000 rw-p 0001 03:02 114337 /lib/libz.so.1.2.3 b7eb2000-b7ef r-xp fe:04 461393 /usr/lib/libpng.so.3.1.2.8 b7ef-b7ef1000 rw-p 0003e000 fe:04 461393
Re: [NTG-context] crash with pdftex-1.40
Martin Schröder wrote: 2007/1/4, Peter Münster [EMAIL PROTECTED]: this is probably only related to pdfTeX and not to ConTeXt, but I'm too lazy to subscribe yet to another list... ;) I can't reproduce this with my old ConTeXt 2005.01.31 on SUSE 10.1. I have only the pdftex-1.40-rc4 here (no problem). I'll try the texlive and final standalone binaries tomorrow. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] crash with pdftex-1.40
But this should be enough to reproduce it: \starttext \input \string|echo -n bla \stoptext Breaks here too, using pdftex 1.40.0, context 2006.12.27, Ubuntu i386: *** glibc detected *** pdfetex: free(): invalid next size (fast): 0x082d42f0 *** Running texexec with --verbose says what the pdftex command that texexec runs is, and this is the minimal version of it: pdfetex -fmt=cont-en b.tex where b.tex is Peter's minimal (3-line) file above. Strangely, pdftex -etex -ini c.tex, where c.tex is b.tex with \input cont-en as the first line, did not crash. I rebuilt pdf(e)tex make sure not to strip the binaries, and ran it with debugging libraries and valgrind, like so: LD_LIBRARY_PATH=/usr/lib/debug: valgrind pdfetex -fmt=cont-en b.tex and the output is included below. Here is the chunk from it, where the problem is first detected by valgrind: ==27710== Invalid write of size 1 ==27710==at 0x4022756: strcpy (mc_replace_strmem.c:271) ==27710==by 0x80A774D: open_in_or_pipe (pdftexextra.c:1354) ==27710==by 0x8078857: startinput (pdftex1.c:4870) ==27710==by 0x806C3A8: expand (pdftex0.c:11501) ==27710==by 0x80786CB: getxtoken (pdftex1.c:24) ==27710==by 0x80A4B88: maincontrol (pdftex3.c:5246) ==27710==by 0x8059B10: mainbody (pdftexini.c:5664) ==27710==by 0x80A90A6: main (pdftexextra.c:349) -Sanjoy `Not all those who wander are lost.' (J.R.R. Tolkien) == valgrind run == ==27710== Memcheck, a memory error detector. ==27710== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==27710== Using LibVEX rev 1606, a library for dynamic binary translation. ==27710== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==27710== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation framework. ==27710== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==27710== For more details, rerun with: -v ==27710== This is pdfTeX, Version 3.141592-1.40.0 (Web2C 7.5.6) \write18 enabled. entering extended mode (./b.tex ConTeXt ver: 2006.12.27 11:34 MK II fmt: 2007.1.4 int: english/english language: language en is active system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/share/texmf/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/share/texmf/tex/context/user/cont-sys.rme (/usr/share/texmf/tex/context/base/type-exa.tex) (/usr/share/texmf/tex/context/base/type-syn.tex) (/usr/share/texmf/tex/context/base/type-enc.tex) (/usr/share/texmf/tex/context/base/type-siz.tex) (/usr/share/texmf/tex/context/base/type-map.tex) (/usr/share/texmf/tex/context/base/type-spe.tex) (/usr/share/texmf/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi :texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec- 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec -17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded specials: tex,postscript,rokicki loaded systems : no b.top systems : system commands are enabled (/usr/share/texmf/tex/context/base/sort-def.tex) (/usr/share/texmf/tex/context/base/sort-lan.tex)==27710== Invalid write of size 1 ==27710==at 0x4022756: strcpy (mc_replace_strmem.c:271) ==27710==by 0x80A774D: open_in_or_pipe (pdftexextra.c:1354) ==27710==by 0x8078857: startinput (pdftex1.c:4870) ==27710==by 0x806C3A8: expand (pdftex0.c:11501) ==27710==by 0x80786CB: getxtoken (pdftex1.c:24) ==27710==by 0x80A4B88: maincontrol (pdftex3.c:5246) ==27710==by 0x8059B10: mainbody (pdftexini.c:5664) ==27710==by 0x80A90A6: main (pdftexextra.c:349) ==27710== Address 0x567459C is 0 bytes after a block of size 12 alloc'd ==27710==at 0x4021396: malloc (vg_replace_malloc.c:149) ==27710==by 0x813748C: xmalloc (xmalloc.c:28) ==27710==by 0x80A7737: open_in_or_pipe (pdftexextra.c:1353) ==27710==by 0x8078857: startinput (pdftex1.c:4870) ==27710==by 0x806C3A8: expand (pdftex0.c:11501) ==27710==by 0x80786CB: getxtoken (pdftex1.c:24) ==27710==by 0x80A4B88: maincontrol (pdftex3.c:5246) ==27710==by 0x8059B10: mainbody (pdftexini.c:5664) ==27710==by 0x80A90A6: main (pdftexextra.c:349) ==27711== ==27711== Syscall param execve(argv[i]) points to unaddressable byte(s) ==27711==at 0x40D39AA: execve (execve.c:60) ==27711==by 0x409F869: popen@@GLIBC_2.1 (iopopen.c:231) ==27711==by 0x80A7760: