From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Mattner Newsgroups: gmane.emacs.devel Subject: Re: C-g crash in C-x C-f (OSX Lion) Date: Fri, 16 Dec 2011 20:00:35 +0100 Message-ID: References: <4EEB48B2.9090602@swipnet.se> <83liqc1tac.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1324062050 3359 80.91.229.12 (16 Dec 2011 19:00:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2011 19:00:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 20:00:45 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rbd1Q-0000cR-ID for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2011 20:00:44 +0100 Original-Received: from localhost ([::1]:37523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbd1Q-0007is-6N for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2011 14:00:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbd1M-0007in-JC for emacs-devel@gnu.org; Fri, 16 Dec 2011 14:00:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rbd1L-0001Hz-0f for emacs-devel@gnu.org; Fri, 16 Dec 2011 14:00:40 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rbd1I-0001HI-Ua; Fri, 16 Dec 2011 14:00:37 -0500 Original-Received: by iacb35 with SMTP id b35so3617866iac.0 for ; Fri, 16 Dec 2011 11:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=oYpMYTQiAoOg9rlg0g3MvnBRKG3J6zElBPYEvei4lH8=; b=kcwGEs5ROnYBLfm5tjyYaLdrV9yij2GpohYCQZnxwl5tuueADrQdb0GnQW3pcXGilt GtK1+FTukRsG+VEp3dVNMiRswb64BG1AIoc2aWaBcaWKgvxSKq7TX0SGTQ28yg7JUfzn 0jsQwmHuA0dcmItS/g3Wpek9tBBsbgvA4+ftI= Original-Received: by 10.50.169.68 with SMTP id ac4mr1144410igc.77.1324062035876; Fri, 16 Dec 2011 11:00:35 -0800 (PST) Original-Received: by 10.50.6.165 with HTTP; Fri, 16 Dec 2011 11:00:35 -0800 (PST) In-Reply-To: <83liqc1tac.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:146745 Archived-At: On Fri, Dec 16, 2011 at 3:32 PM, Eli Zaretskii wrote: >> Date: Fri, 16 Dec 2011 15:21:54 +0100 >> From: Carsten Mattner >> Cc: Eli Zaretskii , emacs-devel@gnu.org >> >> >> I hope the crash didn't vanish just due to differences in the generat= ed >> >> code. >> > >> > >> > This may be the case. =C2=A0It may be an optimization issue. >> >> I hope it's not and I can reproduce it for pinpointing the faulty piece = of code. > > I hope so, too. =C2=A0But if it turns out you do need an optimized build = to > reproduce the problem, reconfigure using > > =C2=A0CFLAGS=3D'-O2 -ggdb -g3' CC=3D'gcc -arch i386' ./configure --with-n= s \ > =C2=A0 =C2=A0 --without-gnutls --enable-asserts > > and rebuild. =C2=A0It will be harder to make sense out of backtrace and > variable values that way, but we may have no choice. OK, I made it crash. I'm not sure what it was exactly but I was about to discard the changes to a file and pressed kill-buffer (C-x k) and probably C-g to cancel. Btw, I do use evil-mode because I haven't found the same set of quick editing bindings with emacs chained bindings. I use a mix of evil and emacs key bindings. On a second run I was able to make it crash by just wanting to visually mark a block to delete in a buffer and press 'd' for delete (evil) or something else (not sure what I pressed). Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x9adc5d50 in strlen () (gdb) bt full#0 0x9adc5d50 in strlen () No symbol table info available. #1 0x001e7601 in intern (str=3D0x0) at lread.c:3707 tem =3D 1178832048 len =3D 4363 obarray =3D 0 #2 0x00283efb in ns_string_to_symbol (t=3D0x0) at nsselect.m:86 No locals. #3 0x002847ab in ns_handle_selection_request (event=3D0xbfffef88) at nsselect.m:247 pb =3D (id) 0x0 type =3D (NSString *) 0xacc4eb98 selection_name =3D 48164934 data =3D -1701734496 rest =3D 2638150 selection_data =3D 1811051 target_symbol =3D 1585835 successful_p =3D 0 #4 0x00285202 in Fx_own_selection_internal (selection_name=3D27744162, selection_value=3D39954401) at nsselect.m:425 ev =3D { kind =3D SELECTION_REQUEST_EVENT, code =3D 0, part =3D 1771886, modifiers =3D 0, x =3D 0, y =3D -1396380776, timestamp =3D 1, padding =3D {0x4, 0x1a6ba22}, frame_or_window =3D 27783754, arg =3D 27703842 } pb =3D (id) 0x0 [94/960] old_value =3D 27703842 new_value =3D 48164926 #5 0x001b025b in Ffuncall (nargs=3D3, args=3D0xbffff090) at eval.c:2989 fun =3D 4746981 numargs =3D 2 lisp_numargs =3D 1007840 val =3D 27703866 internal_args =3D (Lisp_Object *) 0xbffff094 i =3D 27703842 original_fun =3D 27840882 funcar =3D -1073745816 backtrace =3D { next =3D 0xbffff3d8, function =3D 0xbffff090, args =3D 0xbffff094, nargs =3D 2, debug_on_exit =3D 0 } #6 0x0020e3b1 in exec_byte_code (bytestr=3D3581977, vector=3D3581997, maxdepth=3D20, args_template=3D27703842, nargs=3D0, args=3D0x0) at byte code.c:785 count =3D 4 vectorp =3D (Lisp_Object *) 0x36a830 top =3D (Lisp_Object *) 0xbffff090 op =3D 2 stack =3D { pc =3D 0x41bdbf "??T", byte_string =3D 3581977, byte_string_start =3D 0x41bd73 "\b;?\t", constants =3D 3581997, next =3D 0x0 } result =3D 0 #7 0x001b0e01 in funcall_lambda (fun=3D3581941, nargs=3D2, arg_vector=3D0xbffff440) at eval.c:3217 val =3D 2 lexenv =3D 27703842 count =3D 2 i =3D 2 optional =3D 0 rest =3D 0 syms_left =3D 27703842 next =3D 27783754 #8 0x001b04a0 in Ffuncall (nargs=3D3, args=3D0xbffff43c) at eval.c:3035 fun =3D 3581941 numargs =3D 2 lisp_numargs =3D 39954401 val =3D 0 internal_args =3D (Lisp_Object *) 0x19c19e i =3D 27784514 original_fun =3D 27744138 funcar =3D 0 backtrace =3D { next =3D 0x0, function =3D 0xbffff43c, args =3D 0xbffff440, nargs =3D 2, debug_on_exit =3D 0 } #9 0x001af8e4 in call2 (fn=3D27744138, arg1=3D27744162, arg2=3D39954401) a= t eval.c:2770 ret_ungc_val =3D -1073744792 gcpro1 =3D { next =3D 0x2034, var =3D 0x261a7e1, nvars =3D 3 } args =3D {27744138, 27744162, 39954401} #10 0x000f7a89 in command_loop_1 () at keyboard.c:1659 beg =3D 8246 end =3D 8244 keybuf =3D {28112218, 24, 27785018, 27703842, 0, 0, -1880911564, -1660254974, 27703842, 28242954, 39515774, 3182981, 1773724 , 39515774, 27703842, 27918518, 39515774, 39515774, 39515774, 2, -1073744520, 1761123, 2, 39515774, -1073744424, 1760955, 2, 27703 842, 39515774, 39515774} i =3D 1 prev_modiff =3D 2127 cmd =3D 46658450 prev_buffer =3D (struct buffer *) 0x850500 already_adjusted =3D 0 #11 0x001ac5d6 in internal_condition_case (bfun=3D0xf6b70 , handlers=3D27748746, hfun=3D0xf6180 ) at eval.c:1 499 val =3D 39515774 c =3D { tag =3D 27703842, val =3D 27703842, next =3D 0xbffff698, gcpro =3D 0x0, jmp =3D {-1880947841, -1881125920, 8098, 1009472, -1073744360, -1881125836, 1009296, 1010544, -1073744296, -1073744480, -171897889 6, 21, 1754471, -1697071940, -1073744216, 27746770, -1073744248, -171897848= 4}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } h =3D { handler =3D 27748746, var =3D 27703842, chosen_clause =3D 5126149, tag =3D 0xbffff5c8, next =3D 0x0 } #12 0x000f66cd in command_loop_2 (ignore=3D27703842) at keyboard.c:1159 val =3D 1009484 #13 0x001abebf in internal_catch (tag=3D27746770, func=3D0xf6690 , arg=3D27703842) at eval.c:1256 c =3D { tag =3D 27746770, val =3D 27703842, next =3D 0x0, gcpro =3D 0x0, jmp =3D {-1073806465, 1623346, 8098, 1009472, 27739144, 1619675, 1009296, -1073744216, -1073744088, -1073744240, 1622285, 27703842 , 1752752, 4755872, 27739144, 4755872, -1073744104, 27832952}, backlist =3D 0x0, handlerlist =3D 0x0, lisp_eval_depth =3D 0, pdlcount =3D 2, poll_suppress_count =3D 0, interrupt_input_blocked =3D 0, byte_stack =3D 0x0 } #14 0x000f664b in command_loop () at keyboard.c:1138 No locals. #15 0x000f5b95 in recursive_edit_1 () at keyboard.c:758 count =3D 1 val =3D 2815621 #16 0x000f5d86 in Frecursive_edit () at keyboard.c:822 count =3D 0 buffer =3D 27703842 #17 0x000f3b6a in main (argc=3D1, argv=3D0xbffff9cc) at emacs.c:1709 stack_bottom_variable =3D 0 '\0' do_initial_setlocale =3D 1 no_loadup =3D 0 dummy =3D 0 junk =3D 0x0 skip_args =3D 0 rlim =3D { rlim_cur =3D 8388608, rlim_max =3D 67104768 } dname_arg =3D 0x0 dname_arg2 =3D '\0' , "-=E2=8F=AC???d???H???w?-?\000\000\000\000U?`???\000\000\000" ch_to_dir =3D 0x0