From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3444C40BC7F for ; Tue, 17 Aug 2010 13:58:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9gIhgg44ji+l for ; Tue, 17 Aug 2010 13:58:07 -0700 (PDT) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by olra.theworths.org (Postfix) with ESMTP id 8127340BC74 for ; Tue, 17 Aug 2010 13:58:07 -0700 (PDT) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 0DAE01C15761; Tue, 17 Aug 2010 22:57:44 +0200 (CEST) Received: from igel.home (ppp-88-217-99-164.dynamic.mnet-online.de [88.217.99.164]) by mail.mnet-online.de (Postfix) with ESMTP id ABD2D1C001B0; Tue, 17 Aug 2010 22:57:44 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 59AD7CA297; Tue, 17 Aug 2010 22:57:44 +0200 (CEST) From: Andreas Schwab To: Chong Yidong Subject: Re: bug#6214: 23.1; json-read-string crashes emacs with long string References: <87pr0t5h1q.fsf@yoom.home.cworth.org> <87fx1pkrsh.fsf@stupidchicken.com> <87tymzv6ga.fsf@steelpick.2x.cz> <878w4afozw.fsf@stupidchicken.com> <87sk2hbq3s.fsf@steelpick.2x.cz> <8739ug3mrr.fsf@stupidchicken.com> <87r5i02uo7.fsf@steelpick.2x.cz> <874oeuv4le.fsf@stupidchicken.com> <87fwye2sxt.fsf@steelpick.2x.cz> <87pqxhmg0i.fsf@stupidchicken.com> <87sk2dxl01.fsf@stupidchicken.com> X-Yow: .. I'm IMAGINING a sensuous GIRAFFE, CAVORTING in the BACK ROOM of a KOSHER DELI -- Date: Tue, 17 Aug 2010 22:57:44 +0200 In-Reply-To: <87sk2dxl01.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 17 Aug 2010 12:27:25 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Thu, 19 Aug 2010 09:14:24 -0700 Cc: 6214@debbugs.gnu.org, Notmuch mailing list , Stefan Monnier X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 20:58:21 -0000 Chong Yidong writes: > Never mind, I got confused. SAFE_ALLOCA uses record_unwind_protect, so > it's gc safe. No, it isn't. SAFE_ALLOCA only protects the memory block, you need to use SAVE_ALLOCA_LISP to protect also its contents. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."