From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: allocate_string_data memory corruption Date: Wed, 18 Jan 2006 22:21:09 -0500 Message-ID: References: <87vewha2zl.fsf@stupidchicken.com> <871wz5f66t.fsf@stupidchicken.com> <87d5ipm338.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137640984 10262 80.91.229.2 (19 Jan 2006 03:23:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 03:23:04 +0000 (UTC) Cc: Chong Yidong , Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 19 04:23:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzQNu-0000BT-Fi for ged-emacs-devel@m.gmane.org; Thu, 19 Jan 2006 04:22:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzQQJ-0004KD-MV for ged-emacs-devel@m.gmane.org; Wed, 18 Jan 2006 22:25:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EzQPl-0004Ds-Tg for emacs-devel@gnu.org; Wed, 18 Jan 2006 22:24:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EzQPi-0004Cb-By for emacs-devel@gnu.org; Wed, 18 Jan 2006 22:24:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EzQPi-0004CO-0Q for emacs-devel@gnu.org; Wed, 18 Jan 2006 22:24:42 -0500 Original-Received: from [63.240.77.82] (helo=sccrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EzQSn-0001Jk-CJ; Wed, 18 Jan 2006 22:27:53 -0500 Original-Received: from raeburn.org (c-65-96-168-237.hsd1.ma.comcast.net[65.96.168.237]) by comcast.net (sccrmhc12) with ESMTP id <2006011903211201200h8snpe>; Thu, 19 Jan 2006 03:21:16 +0000 Original-Received: from [18.101.0.226] (laptop.raeburn.org [18.101.0.226]) by raeburn.org (8.12.11/8.12.11) with ESMTP id k0J3LBM0011303; Wed, 18 Jan 2006 22:21:11 -0500 (EST) In-Reply-To: <87d5ipm338.fsf-monnier+emacs@gnu.org> Original-To: Stefan Monnier X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49254 Archived-At: On Jan 18, 2006, at 20:15, Stefan Monnier wrote: > If you use eassert instead of "if (...) abort();" you won't have to > worry > about it because the line number is embedded in the error message, > so you > don't even need debug-symbols. > OTOH you need to compile with -DENABLE_CHECKING. BTW, a configure option to turn on ENABLE_CHECKING is pretty trivial, I'll check it in if people want it... I assumed it wouldn't be of general enough interest, but we have --enable-asserts for the XASSERTS code... maybe we should have one configure option turn on both? Ken