From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: segmentation fault displaying etc/HELLO on Windows Date: Wed, 30 Jul 2008 13:48:46 +0200 Message-ID: References: <48900ED2.2000703@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217418543 22613 80.91.229.12 (30 Jul 2008 11:49:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2008 11:49:03 +0000 (UTC) Cc: emacs- devel To: "Jason Rumney" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 30 13:49:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KOABj-00059y-08 for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2008 13:49:51 +0200 Original-Received: from localhost ([127.0.0.1]:49135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOAAo-0001RX-JS for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2008 07:48:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOAAj-0001RO-VY for emacs-devel@gnu.org; Wed, 30 Jul 2008 07:48:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOAAi-0001R0-Ce for emacs-devel@gnu.org; Wed, 30 Jul 2008 07:48:48 -0400 Original-Received: from [199.232.76.173] (port=44569 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOAAi-0001Qx-7D for emacs-devel@gnu.org; Wed, 30 Jul 2008 07:48:48 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.187]:19666) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KOAAi-0003mz-5w for emacs-devel@gnu.org; Wed, 30 Jul 2008 07:48:48 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so94480nfi.26 for ; Wed, 30 Jul 2008 04:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HbVQYow3SG7cXrOP5F2xSTvosGjeYdz4lh5ZcieRId8=; b=E2HHYM8l3IWwoOqY4IuZTf+n3tFwdUXB8R1tNPOju3w65G0nTfFP0XleZbAK48x3Al Cv/xOsM5AFPyE3KC/7aJSYDe+UNCXV5XGsVqnFIkpfwiq8lHmrtp+tU3JcTnKvzvzo4a S80x+IKprDBDgV/M7nf4up84oFGHAObyVjdto= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=NZUma6CX5k8k18vkGvDGrmmq5kcrAugsF527vavG+QoPeP+7WDNlfoWPo8TawpczQe cBz4GfNOS41Y0Pm95r8EjNsp4X+UmbZwVgrqEUFn1xZvfS/PbDoPckdMxVg3t+WWLYw7 MtK2cLLHIDZWsGpZSbEoCSS4F928/jgkDHHA8= Original-Received: by 10.210.29.11 with SMTP id c11mr9225398ebc.16.1217418526597; Wed, 30 Jul 2008 04:48:46 -0700 (PDT) Original-Received: by 10.210.71.14 with HTTP; Wed, 30 Jul 2008 04:48:46 -0700 (PDT) In-Reply-To: <48900ED2.2000703@gnu.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 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:101746 Archived-At: On Wed, Jul 30, 2008 at 08:48, Jason Rumney wrote: >> Program received signal SIGSEGV, Segmentation fault. >> 0x011ea1ff in w32_compute_glyph_string_overhangs (s=0x82eaf0) at w32term.c:1194 >> 1194 font->driver->text_extents (font, code, s->nchars, &metrics); >> (gdb) bt >> #0 0x011ea1ff in w32_compute_glyph_string_overhangs (s=0x82eaf0) at >> w32term.c:1194 Hmm. I hate heisenbugs. 1) The backtrace above was at home, rebuilding (but not bootstrapping), with system-configuration-options "--with-gcc (4.3) --cflags -DENABLE_CHECKING=1 -DSITELOAD_PURESIZE_EXTRA=200000 -IC:/emacs/build/include -fno-crossjumping". 2) However, at work, after bootstrapping and with the same system-configuration-options, I get this backtrace: Program received signal SIGSEGV, Segmentation fault. x_produce_glyphs (it=0x82e08c) at xdisp.c:19561 19561 PREPARE_FACE_FOR_DISPLAY (f, face); (gdb) bt #0 x_produce_glyphs (it=0x82e08c) at xdisp.c:19561 #1 0x0103b097 in display_line (it=0x82e08c) at xdisp.c:16662 #2 0x0103fbe6 in try_window (window=49766404, pos={charpos = 1, bytepos = 1}, check_margins=1) at xdisp.c:14073 #3 0x01053f16 in redisplay_window (window=49766404, just_this_one_p=0) at xdisp.c:13691 #4 0x01055fd9 in redisplay_window_0 (window=49766404) at xdisp.c:12276 #5 0x01018d91 in internal_condition_case_1 (bfun=0x1055fb6 , arg=49766404, handlers=47498501, hfun=0x1023dce ) at eval.c:1559 #6 0x0102db3d in redisplay_windows (window=34) at xdisp.c:12255 #7 0x010474fd in redisplay_internal (preserve_echo_area=) at xdisp.c:11821 #8 0x0108a279 in read_char (commandflag=1, nmaps=3, maps=0x82fb70, prev_event=47515649, used_mouse_menu=0x82fc34, end_time=0x0) at keyboard.c:2680 #9 0x0108e8ca in read_key_sequence (keybuf=0x82fcd4, bufsize=30, prompt=47515649, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9406 #10 0x01091a3d in command_loop_1 () at keyboard.c:1646 #11 0x01019016 in internal_condition_case (bfun=0x10917af , handlers=47579377, hfun=0x1088a16 ) at eval.c:1511 #12 0x01087d2b in command_loop_2 () at keyboard.c:1362 #13 0x010190c0 in internal_catch (tag=47575449, func=0x1087d08 , arg=47515649) at eval.c:1247 #14 0x0108885b in command_loop () at keyboard.c:1341 #15 0x01088baf in recursive_edit_1 () at keyboard.c:950 #16 0x01088d1a in Frecursive_edit () at keyboard.c:1012 #17 0x01002c41 in main (argc=2, argv=0xa841e0) at emacs.c:1749 3) So I thought, let's do a non-optimizing build. This time I bootstrapped (at work) with system-configuration-options "--with-gcc (4.3) --no-opt --cflags -DENABLE_CHECKING=1 -DSITELOAD_PURESIZE_EXTRA=200000 -IC:/emacs/build/include". Now Emacs does *not* crash. All compilations were done with gcc (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502 Any pointer about how to debug this? Juanma