On 18-5-2012 10:58, Taco Hoekwater wrote:
On 05/17/2012 04:30 PM, Aditya Mahajan wrote:
with the same crash. Can someone else using context minimals with archlinux check if they get a crash or not?
I get a crash (double free) with:
echo '\endinput \end ' | context --pipe
and I get a 'normal' Fatal error occurred with:
echo '\\endinput \\end' | context --pipe
and I think that solves that bit of the mystery.
Now for that double-free:
echo '\tracingall \endinput \end ' | context --pipe
ends with:
{\endinput}
\end ->\ctxcommand {forceendjob()}
\ctxcommand #1->\directlua \zerocount {commands.#1} #1<-forceendjob() {\directlua} system > don't use \end to finish a document *** glibc detected *** luatex: double free or corruption (fasttop): 0x0000000004c21340 ***
It probably crashes because in context the \end code and the \endinput code interfere with eachother. You get the same crash if you create a simple input file with just that same line, and the crash goes away if you put \endinput and \end on separate lines, and as far as I can tell, context always crashes if \endinput and \end/\stoptext are on the same line.
A weird problem ... just a side note: I didn't change anything in the \stoptext code for a while. Can you see what gets freed? Some node? Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------