Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B807C40BC7D for ; Tue, 17 Aug 2010 14:47:47 -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] autolearn=unavailable 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 zZnA6CCrtmOX for ; Tue, 17 Aug 2010 14:47:47 -0700 (PDT) Received: from pantheon-po23.its.yale.edu (pantheon-po23.its.yale.edu [130.132.50.117]) by olra.theworths.org (Postfix) with ESMTP id 8245140BC77 for ; Tue, 17 Aug 2010 14:47:47 -0700 (PDT) Received: from furry ([64.134.241.179]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7HLl0Yg023901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 17 Aug 2010 17:47:03 -0400 Received: by furry (Postfix, from userid 1000) id 34273C013; Tue, 17 Aug 2010 17:46:58 -0400 (EDT) From: Chong Yidong To: Andreas Schwab 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> Date: Tue, 17 Aug 2010 17:46:57 -0400 In-Reply-To: (Andreas Schwab's message of "Tue, 17 Aug 2010 22:57:44 +0200") Message-ID: <87wrroj4j2.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) 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 21:47:47 -0000 Andreas Schwab writes: > 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. Ah, OK. Thanks.