From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Gabriel Foster Newsgroups: gmane.emacs.devel Subject: Re: Mac OSX running Carbon crash with today's CVS Date: Tue, 22 Apr 2003 07:39:25 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <37111A44-74D0-11D7-A77C-00039375B5CC@apple.com> References: <8582-Tue22Apr2003100554+0300-eliz@elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051022572 5165 80.91.224.249 (22 Apr 2003 14:42:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2003 14:42:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 22 16:42:50 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197yxW-0001Da-00 for ; Tue, 22 Apr 2003 16:41:22 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 197z2o-00034c-00 for ; Tue, 22 Apr 2003 16:46:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197yyA-00012r-02 for emacs-devel@quimby.gnus.org; Tue, 22 Apr 2003 10:42:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 197ywZ-0000dp-00 for emacs-devel@gnu.org; Tue, 22 Apr 2003 10:40:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 197yvz-0008Oj-00 for emacs-devel@gnu.org; Tue, 22 Apr 2003 10:39:49 -0400 Original-Received: from mail-out1.apple.com ([17.254.0.52]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197yvi-0007xE-00 for emacs-devel@gnu.org; Tue, 22 Apr 2003 10:39:30 -0400 Original-Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out1.apple.com (8.12.9/8.12.9) with ESMTP id h3MEdT3h006583 for ; Tue, 22 Apr 2003 07:39:29 -0700 (PDT) Original-Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com ; Tue, 22 Apr 2003 07:39:18 -0700 Original-Received: from apple.com ([17.101.162.8]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h3MEdPVX027761; Tue, 22 Apr 2003 07:39:26 -0700 (PDT) Original-To: Eli Zaretskii In-Reply-To: <8582-Tue22Apr2003100554+0300-eliz@elta.co.il> X-Mailer: Apple Mail (2.552) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13358 On Tuesday, April 22, 2003, at 01:05 AM, Eli Zaretskii wrote: >> Date: Mon, 21 Apr 2003 15:21:40 -0700 >> From: Gabriel Foster >> >> I'm gettting a random but fairly consistent crash on Mac OSX, built >> from today's CVS. > > Are all of them in the same place in the code, i.e. during garbage > collection? > >> (gdb) list >> 4299 >> 4300 #if (GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE \ >> 4301 || GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES) >> 4302 for (tail = gcprolist; tail; tail = tail->next) >> 4303 for (i = 0; i < tail->nvars; i++) >> 4304 XUNMARK (tail->var[i]); >> 4305 #endif >> 4306 >> 4307 unmark_byte_stack (); >> 4308 for (backlist = backtrace_list; backlist; backlist = >> backlist->next) >> (gdb) print tail >> $1 = (struct gcpro *) 0xbfffde90 >> (gdb) print tail->nvars >> $2 = 1168308 >> (gdb) print i >> $3 = 7289 >> (gdb) > > How about > > (gdb) print tail->var[i] > > Also, please try to describe what are you doing in Emacs when these > crashes happen. > In the most recent case, I had just hit the enter key. Program received signal EXC_BAD_ACCESS, Could not access memory. 0x000c4630 in Fgarbage_collect () at alloc.c:4197 4197 if (!XMARKBIT (tail->var[i])) (gdb) print i $1 = 0 (gdb) print tail $2 = (struct gcpro *) 0xbfffde20 (gdb) print *tail->var[i] Cannot access memory at address 0x1 (gdb) print tail->var[i] Cannot access memory at address 0x1 (gdb) print tail->var $3 = (volatile int *) 0x1 (gdb) where #0 0x000c4630 in Fgarbage_collect () at alloc.c:4197 #1 0x0010c60c in Fbyte_code (bytestr=275966772, vector=130, maxdepth=-1073757728) at bytecode.c:744 #2 0x000dca34 in funcall_lambda (fun=1108651152, nargs=3, arg_vector=0xbfffc404) at eval.c:2910 #3 0x000dc4f8 in Ffuncall (nargs=1381796708, args=0xbfffc400) at eval.c:2780 #4 0x0010c558 in Fbyte_code (bytestr=274992596, vector=3, maxdepth=-1073757184) at bytecode.c:709 #5 0x000dca34 in funcall_lambda (fun=1108648928, nargs=3, arg_vector=0xbfffc624) at eval.c:2910 #6 0x000dc4f8 in Ffuncall (nargs=1381796708, args=0xbfffc620) at eval.c:2780 #7 0x0010c558 in Fbyte_code (bytestr=274992596, vector=3, maxdepth=-1073756640) at bytecode.c:709 #8 0x000dca34 in funcall_lambda (fun=1080299968, nargs=2, arg_vector=0xbfffc978) at eval.c:2910 #9 0x000dc4f8 in Ffuncall (nargs=1381796708, args=0xbfffc974) at eval.c:2780 #10 0x000dbac8 in run_hook_with_args (nargs=3, args=0xbfffc974, cond=to_completion) at eval.c:2393 #11 0x000dc3a8 in Ffuncall (nargs=1381796708, args=0xbfffc970) at eval.c:2726 #12 0x0010c558 in Fbyte_code (bytestr=276103540, vector=3, maxdepth=-1073755792) at bytecode.c:709 #13 0x000dca34 in funcall_lambda (fun=1101781200, nargs=2, arg_vector=0xbfffcb94) at eval.c:2910 #14 0x000dc4f8 in Ffuncall (nargs=1381796708, args=0xbfffcb90) at eval.c:2780 #15 0x0010c558 in Fbyte_code (bytestr=303377588, vector=2, maxdepth=-1073755248) at bytecode.c:709 #16 0x000dca34 in funcall_lambda (fun=1101780992, nargs=1, arg_vector=0xbfffd2a4) at eval.c:2910 #17 0x000dc4f8 in Ffuncall (nargs=1381796708, args=0xbfffd2a0) at eval.c:2780 #18 0x000d9fb4 in internal_condition_case_2 (bfun=0xdc0d8 , nargs=2, args=0xbfffd2a0, handlers=275715844, hfun=0x16bf8 ) at eval.c:1418 #19 0x00016de4 in safe_call (nargs=2, args=0xbfffd2a0) at xdisp.c:1789 #20 0x00016e34 in safe_call1 (fn=1381796708, arg=275715796) at xdisp.c:1809 #21 0x000184f8 in handle_fontified_prop (it=0x525c8b64) at xdisp.c:2711 #22 0x00017f24 in handle_stop (it=0xbfffd560) at xdisp.c:2472 #23 0x0001c4ec in next_element_from_buffer (it=0x157608) at xdisp.c:5274 #24 0x0001b82c in get_next_display_element (it=0xbfffd560) at xdisp.c:4626 #25 0x0002cd50 in display_line (it=0xbfffd560) at xdisp.c:14242 #26 0x000291e4 in try_window (window=1381796708, pos={charpos = 2710, bytepos = 2710}) at xdisp.c:11981 #27 0x00028408 in redisplay_window (window=1101750720, just_this_one_p=1) at xdisp.c:11639 #28 0x000253cc in redisplay_window_1 (window=1381796708) at xdisp.c:10409 #29 0x000d9e40 in internal_condition_case_1 (bfun=0x25390 , arg=1101750720, handlers=1349614436, hfun=0x25300 ) at eval.c:1374 #30 0x00024a14 in redisplay_internal (preserve_echo_area=1381796708) at xdisp.c:10035 #31 0x00075f00 in read_char (commandflag=1, nmaps=2, maps=0xbfffebd0, prev_event=275715796, used_mouse_menu=0xbfffecd4) at keyboard.c:2473 #32 0x0007e45c in read_key_sequence (keybuf=0xbfffeda0, bufsize=2373924, prompt=275715796, dont_downcase_last=2384204, can_return_switch_frame=1, fix_current_buffer=2371724) at keyboard.c:8583 #33 0x00073d5c in command_loop_1 () at keyboard.c:1502 #34 0x000d9cd4 in internal_condition_case (bfun=0x73918 , handlers=275762388, hfun=0x732c8 ) at eval.c:1333 #35 0x000736f8 in command_loop_2 () at keyboard.c:1290 #36 0x000d9744 in internal_catch (tag=1381796708, func=0x736b8 , arg=275715796) at eval.c:1094 #37 0x00073650 in command_loop () at keyboard.c:1269 #38 0x00073064 in recursive_edit_1 () at keyboard.c:985 #39 0x000731ec in Frecursive_edit () at keyboard.c:1041 #40 0x00071cc0 in main (argc=0, argv=0xbffffa44) at emacs.c:1659 #41 0x00003ae8 in _start (argc=50, argv=0x0, envp=0x2405b4) at /SourceCache/Csu/Csu-45/crt.c:267 #42 0x00003968 in start () > Thanks.