From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53442 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Re: obscure luatex error Date: Thu, 15 Oct 2009 16:09:44 +0200 Message-ID: <20091015140944.GL29762@katherina.student.utwente.nl> References: <61F0FF78-1A4F-4918-99EF-3A57B347604A@uni-bonn.de> <4AC4F3AF.7010306@wxs.nl> <200910151556.52242.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2131100758==" X-Trace: ger.gmane.org 1255615817 27471 80.91.229.12 (15 Oct 2009 14:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 14:10:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 15 16:10:07 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MyR1l-0004eE-6W for gctc-ntg-context-518@m.gmane.org; Thu, 15 Oct 2009 16:10:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C462FC9B21; Thu, 15 Oct 2009 16:09:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ILVBnUWt4j0R; Thu, 15 Oct 2009 16:09:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A1A6C9AE6; Thu, 15 Oct 2009 16:09:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1D65EC9AE6 for ; Thu, 15 Oct 2009 16:09:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kzoNWFE1SVUG for ; Thu, 15 Oct 2009 16:09:45 +0200 (CEST) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by balder.ntg.nl (Postfix) with ESMTP id 3114AC9AD9 for ; Thu, 15 Oct 2009 16:09:45 +0200 (CEST) Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1MyR1U-0000ck-Ry for ntg-context@ntg.nl; Thu, 15 Oct 2009 16:09:44 +0200 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <200910151556.52242.alan.braslau@cea.fr> X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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:53442 Archived-At: --===============2131100758== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBYU9MM4gf8jKg2V" Content-Disposition: inline --gBYU9MM4gf8jKg2V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, > luatex: ../../../source/texk/web2c/luatexdir/tex/printing.c:266: print:= =20 > Assertion `c < 256' failed. > [329.327MTXrun | fatal error, no return code, message: luatex: execution= =20 > interrupted A quick glance at the code, shows it's in the following part: /* An entire string is output by calling |print|. Note that if we are output= ting the single standard ASCII character \.c, we could call |print("c")|, since |"c"=3D99| is the number of a single-character string, as explained above= =2E But |print_char("c")| is quicker, so \TeX\ goes directly to the |print_char| routine when it knows that this is safe. (The present implementation assumes that it is always safe to print a visible ASCII character.) @^system dependencies@> The first 256 entries above the 17th unicode plane are used for a special trick: when \TeX\ has to print items in that range, it will instead print the character that results from substracting 0x110000 from that value. This allows byte-oriented output to things like \.{\\specials} and \.{\\pdfliterals}. Todo: Perhaps it would be useful to do the same substraction while typesetting. */ void print(integer s) { /* prints string |s| */ ... } else if (s >=3D 0x110000) { int c =3D s - 0x110000; assert(c < 256); print_char(c); } else { ... } It seems the second comment block talks about the code in which the error occurs. It also seems that this is either caused by some very high unicode character that's printed, or some invalid (uninitialized?) value is passed = to print(). Do you think you could compile luatex with CFLAGS=3D-g, and run it in gdb t= o get a backtrace? That might help to see where this comes from... Gr. Matthijs --gBYU9MM4gf8jKg2V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkrXLSgACgkQz0nQ5oovr7zszwCgqaE/cr5+KfigQmnp7CQ87297 mSwAoLnodEdZmm9QBFyiaz2URuALQUhF =3VG3 -----END PGP SIGNATURE----- --gBYU9MM4gf8jKg2V-- --===============2131100758== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2131100758==--