unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Perry E. Metzger" <perry@piermont.com>
To: Ben Mezger <me@benmezger.nl>
Cc: emacs-devel@gnu.org
Subject: Re: weird segfault crash
Date: Wed, 1 Sep 2021 10:42:42 -0400	[thread overview]
Message-ID: <c2065513-cc6a-68dd-9dfb-c3012c80f229@piermont.com> (raw)
In-Reply-To: <m235qov01t.fsf@benmezger.nl>


On 9/1/21 10:30, Ben Mezger wrote:
> Are you able to run with lldb --file /path/to/emacs/bin and see the
> traceback with bt? I am unable to test this out atm.

Running under LLDB gives me:

Process 85909 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = 
EXC_BAD_ACCESS (code=1, address=0x2488cc8fb)
     frame #0: 0x0000000100227a2b Emacs`keyremap_step.cold.2 at 
keyboard.c:2208:29 [opt]
    2205        }
    2206
    2207      /* Terminate Emacs in batch mode if at eof.  */
-> 2208      if (noninteractive && FIXNUMP (c) && XFIXNUM (c) < 0)
    2209        Fkill_emacs (make_fixnum (1));
    2210
    2211      if (FIXNUMP (c))
Target 1: (Emacs) stopped.

Doing a backtrace gives me:

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = 
EXC_BAD_ACCESS (code=1, address=0x2488cc8fb)
   * frame #0: 0x0000000100227a2b Emacs`keyremap_step.cold.2 at 
keyboard.c:2208:29 [opt]
     frame #1: 0x00000001000db18a Emacs`keyremap_step [inlined] 
SYMBOL_NAME at lisp.h:0 [opt]
     frame #2: 0x00000001000db182 Emacs`keyremap_step at keyboard.c:9193 
[opt]
     frame #3: 0x00000001000db08c 
Emacs`keyremap_step(keybuf=0x00007ffeefbff190, fkey=0x00007ffeefbff038, 
input=1, doit=true, diff=0x00007ffeefbff0b8, prompt=0x0000000000000000) 
at keyboard.c:9218 [opt]
     frame #4: 0x00000001000cad9f 
Emacs`read_key_sequence(keybuf=<unavailable>, prompt=0x0000000000000000, 
dont_downcase_last=false, can_return_switch_frame=true, 
fix_current_buffer=true, prevent_redisplay=<unavailable>) at 
keyboard.c:10103:11 [opt]
     frame #5: 0x00000001000c871c Emacs`command_loop_1 at 
keyboard.c:1376:15 [opt]
     frame #6: 0x00000001001521af 
Emacs`internal_condition_case(bfun=(Emacs`command_loop_1 at 
keyboard.c:1262), handlers=0x0000000000000090, hfun=(Emacs`cmd_error at 
keyboard.c:925)) at eval.c:1478:25 [opt]
     frame #7: 0x00000001000c81fe 
Emacs`command_loop_2(handlers=0x0000000000000090) at keyboard.c:1117:11 
[opt]
     frame #8: 0x000000010015173e 
Emacs`internal_catch(tag=0x000000000000d9e0, func=(Emacs`command_loop_2 
at keyboard.c:1113), arg=0x0000000000000090) at eval.c:1198:25 [opt]
     frame #9: 0x00000001002277c8 Emacs`recursive_edit_1.cold.1 at 
keyboard.c:1095:2 [opt]
     frame #10: 0x00000001000c7a9c Emacs`recursive_edit_1 [inlined] 
command_loop at keyboard.c:1092:5 [opt]
     frame #11: 0x00000001000c7a97 Emacs`recursive_edit_1 at 
keyboard.c:720 [opt]
     frame #12: 0x00000001000c7c2b Emacs`Frecursive_edit at 
keyboard.c:792:3 [opt]
     frame #13: 0x00000001000c6c5e Emacs`main(argc=<unavailable>, 
argv=0x00007ffeefbff5a0) at emacs.c:2310:3 [opt]
     frame #14: 0x00007fff20548f3d libdyld.dylib`start + 1
(lldb)

Perry





  reply	other threads:[~2021-09-01 14:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01 14:07 weird segfault crash Perry E. Metzger
2021-09-01 14:30 ` Ben Mezger
2021-09-01 14:42   ` Perry E. Metzger [this message]
2021-09-01 16:30 ` Eli Zaretskii
2021-09-01 19:34   ` Perry E. Metzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2065513-cc6a-68dd-9dfb-c3012c80f229@piermont.com \
    --to=perry@piermont.com \
    --cc=emacs-devel@gnu.org \
    --cc=me@benmezger.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).