From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76270 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Luatex crash on \endinput \end Date: Fri, 18 May 2012 05:36:24 -0400 (EDT) Message-ID: References: <4FB500D3.7060004@elvenkind.com> <4FB60F37.7080208@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337333809 10662 80.91.229.3 (18 May 2012 09:36:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 May 2012 09:36:49 +0000 (UTC) Cc: mailing list for ConTeXt users To: Taco Hoekwater Original-X-From: ntg-context-bounces@ntg.nl Fri May 18 11:36:48 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SVJc5-00029o-VR for gctc-ntg-context-518@m.gmane.org; Fri, 18 May 2012 11:36:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7014101E7; Fri, 18 May 2012 11:36:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u18ygk7Yx5+3; Fri, 18 May 2012 11:36:39 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CAC4101E2; Fri, 18 May 2012 11:36:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D388101E2 for ; Fri, 18 May 2012 11:36:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Imu02xsAG1IG for ; Fri, 18 May 2012 11:36:37 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 13F17101DF for ; Fri, 18 May 2012 11:36:36 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4I9aTNs011370 for ; Fri, 18 May 2012 11:36:35 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682554.dsl.bell.ca [65.94.12.58]) By hackers.mr.itd.umich.edu ID 4FB6181A.535B9.21818 ; Authuser adityam; 18 May 2012 05:36:26 EDT In-Reply-To: <4FB60F37.7080208@elvenkind.com> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06HblAuzh - 381f35ae35ad - 20120518 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76270 Archived-At: On Fri, 18 May 2012, 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. Of all the differences in the systems, the most relevant was how the shell espace in string works. Apparently I have some weird option set in my .zshrc due to which echo always enable escape characters. > 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. Thanks for the diagnosis. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________