From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: 22.0.50 SEGFAULT Date: Mon, 08 Aug 2005 15:51:53 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1123541808 17245 80.91.229.2 (8 Aug 2005 22:56:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2005 22:56:48 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 09 00:56:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2GX2-0004kT-1H for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2005 00:55:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2Ga3-0005DZ-Kz for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2005 18:58:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2GZT-0005CI-Lb for emacs-devel@gnu.org; Mon, 08 Aug 2005 18:58:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2GZQ-0005Ak-RM for emacs-devel@gnu.org; Mon, 08 Aug 2005 18:58:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2GZQ-0005A6-MZ for emacs-devel@gnu.org; Mon, 08 Aug 2005 18:58:12 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E2GiB-0002An-Ul for emacs-devel@gnu.org; Mon, 08 Aug 2005 19:07:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E2GU3-0004Wf-2w for emacs-devel@gnu.org; Tue, 09 Aug 2005 00:52:39 +0200 Original-Received: from turtle.as.arizona.edu ([128.196.208.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2005 00:52:39 +0200 Original-Received: from jdsmith by turtle.as.arizona.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2005 00:52:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 91 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: turtle.as.arizona.edu User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) 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:41732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41732 On Wed, 03 Aug 2005 09:19:18 -0700, JD Smith wrote: > On Sun, 31 Jul 2005 01:01:53 +0200, Kim F. Storm wrote: > >> JD Smith writes: >> >> >>>>> GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) >>>>> of 2005-07-14 on turtle.as.arizona.edu >> >> Sorry, but I cannot see any reason why it fails from the data you sent me. >> >> Something tells me that the gdb output isn't quite right, as the >> references (buffer) object is the same for all of these: >> >> p row->glyphs[area][i-1] (if i > 0) >> p row->glyphs[area][i] >> p row->glyphs[area][i+1] >> >> .. so why would it fail on [i] but not on [i-1]. >> >> >> My only suggestion to get to the bottom of this is to build emacs without >> optimizations like this: >> >> /configure "CFLAGS=-g -O0" (that's letter O followed by digit 0). make OK, I've built an Emacs without optimization as you suggest, and eventually got a SEGFAULT. This one feels much different, more like a memory leak, and not involving the breakpoint glyph. Emacs got progressively slower over a couple of days until: Program received signal SIGSEGV, Segmentation fault. 0x0816c4f2 in Fcons (car=144218891, cdr=137711637) at alloc.c:2696 2696 cons_free_list = *(struct Lisp_Cons **)&cons_free_list->cdr; (gdb) bt #0 0x0816c4f2 in Fcons (car=144218891, cdr=137711637) at alloc.c:2696 #1 0x0816c6ae in Flist (nargs=0, args=0xbfffc960) at alloc.c:2784 #2 0x081bdf8f in Fbyte_code (bytestr=140897115, vector=141296740, maxdepth=120) at bytecode.c:977 #3 0x08189b92 in funcall_lambda (fun=141605820, nargs=0, arg_vector=0xbfffcaf0) at eval.c:3049 #4 0x08189802 in apply_lambda (fun=141605820, args=137711633, eval_flag=1) at eval.c:2971 #5 0x08188883 in Feval (form=139656485) at eval.c:2246 #6 0x08185966 in Fprogn (args=158408061) at eval.c:432 #7 0x081884ef in Feval (form=158408053) at eval.c:2151 #8 0x08189415 in Ffuncall (nargs=2, args=0xbfffcdf0) at eval.c:2862 #9 0x081bd1dc in Fbyte_code (bytestr=141672107, vector=140879548, maxdepth=40) at bytecode.c:690 #10 0x08189b92 in funcall_lambda (fun=141707116, nargs=2, arg_vector=0xbfffcfe4) at eval.c:3049 #11 0x081895cd in Ffuncall (nargs=3, args=0xbfffcfe0) at eval.c:2908 #12 0x08188c5b in Fapply (nargs=2, args=0xbfffd090) at eval.c:2356 #13 0x08189005 in apply1 (fn=146693321, arg=152427421) at eval.c:2620 #14 0x081c6481 in read_process_output_call (fun_and_args=152427413) at process.c:4717 #15 0x08187434 in internal_condition_case_1 ( bfun=0x81c6462 , arg=152427413, handlers=137772625, hfun=0x81c6486 ) at eval.c:1493 #16 0x081c69cb in read_process_output (proc=143722748, channel=6) at process.c:4940 #17 0x081c605d in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=137711633, wait_proc=0x0, just_wait_proc=0) at process.c:4557 #18 0x0805b1ba in sit_for (sec=30, usec=0, reading=1, display=1, initial_display=0) at dispnew.c:6400 #19 0x08111d70 in read_char (commandflag=1, nmaps=2, maps=0xbfffe7c0, prev_event=137711633, used_mouse_menu=0xbfffe8bc) at keyboard.c:2768 #20 0x0811aae5 in read_key_sequence (keybuf=0xbfffea20, bufsize=30, prompt=137711633, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:8817 #21 0x0810f11c in command_loop_1 () at keyboard.c:1528 #22 0x08187314 in internal_condition_case (bfun=0x810ee14 , handlers=137772625, hfun=0x810e95c ) at eval.c:1452 #23 0x0810ec8d in command_loop_2 () at keyboard.c:1318 #24 0x08186d9e in internal_catch (tag=137766633, func=0x810ec6f , arg=137711633) at eval.c:1211 #25 0x0810ec41 in command_loop () at keyboard.c:1297 #26 0x0810e6db in recursive_edit_1 () at keyboard.c:990 #27 0x0810e81c in Frecursive_edit () at keyboard.c:1051 #28 0x0810d128 in main (argc=3, argv=0xbffff064) at emacs.c:1782 which doesn't seem to relate to the other type of SEGFAULT I was getting (unless optimizations were clouding things). If I can use this hung session to provide any information for you, do let me know. For now I'm considering this a separate and perhaps unrelated issue, likely in GC. JD