From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) Newsgroups: gmane.emacs.devel Subject: Re: EXC_BAD_ACCESS on Mac Date: Tue, 18 Jun 2013 09:29:33 +0900 (JST) Message-ID: <20130618.092933.35336000126336498.kazu@iij.ad.jp> References: <83sj0gshlj.fsf@gnu.org> <20130618.044405.1130378281292486125.kazu@iij.ad.jp> <51BF90EE.90908@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1371515621 20836 80.91.229.3 (18 Jun 2013 00:33:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Jun 2013 00:33:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 18 02:33:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uojrh-0004dp-20 for ged-emacs-devel@m.gmane.org; Tue, 18 Jun 2013 02:33:41 +0200 Original-Received: from localhost ([::1]:49750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uojrg-0001mF-L8 for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 20:33:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UojqS-0000AC-NM for emacs-devel@gnu.org; Mon, 17 Jun 2013 20:32:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UojqQ-00084s-5D for emacs-devel@gnu.org; Mon, 17 Jun 2013 20:32:24 -0400 Original-Received: from mo30.iij.ad.jp ([202.232.30.71]:43064 helo=omgo.iij.ad.jp) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UojqP-00084E-Fp for emacs-devel@gnu.org; Mon, 17 Jun 2013 20:32:22 -0400 DKIM-Signature: v=1;a=rsa-sha256;c=relaxed/simple;d=iij.ad.jp;h=Date: Message-Id:To:Subject:From:In-Reply-To:References:Mime-Version:Content-Type: Content-Transfer-Encoding; i=kazu@iij.ad.jp; s=omgo1; t=1371515539; x=1372725139; bh=NJvvQTGX9IDj4Hfsim/hdN+ehLWuSe2I54wII/vMCyw=; b=M7vd8gCzpGofAXlJCepkHpqa8Nb +aedog4OzGNwmZwnjneNMGcDFNkqPnfVima+VQqxEJCPIdr73w0lXN/tXFdtMqk8iPxc41C8WQ+CX Go934csc5VDMZROSW0T3psEAgeoEvvvagp8XOJCzPxJyPxOY0ZQQLGwLrVmngsvJceo=; Original-Received: by omgo.iij.ad.jp (mo30) id r5I0WIRj001302; Tue, 18 Jun 2013 09:32:18 +0900 In-Reply-To: <51BF90EE.90908@cs.ucla.edu> X-Mailer: Mew version 6.5 on Emacs 24.3.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 202.232.30.71 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160541 Archived-At: > It could be because of this code in draw_glyphs: > > /* Let's rather be paranoid than getting a SEGV. */ > end = min (end, row->used[area]); > start = clip_to_bounds (0, start, end); > > Even if 'start < end' before this code > is executed, it could be that start == end afterwards. Oh, you are right. > What happens if you apply the following patch and compile > with -DENABLE_CHECKING? Thanks you for the patch. I compiled Emacs with: ./configure --with-ns --enable-checking Let me see what will happen. --Kazu