Stuart Henderson <s...@spacehopper.org> writes: > On 2020/11/24 06:57, Jon Fineman wrote: >> Stuart Henderson <s...@spacehopper.org> writes: >> >> > On 2020/11/24 11:03, Jon Fineman wrote: >> >> Had been running for several days. No idea how to re-create it. I was >> >> creating a new email in notmuch. >> >> >> >> uname -a >> >> OpenBSD desktop 6.8 GENERIC.MP#1 amd64 >> >> >> >> In xterm: >> >> Fatal error 11: Segmentation fault >> >> Segmentation fault (core dumped) >> >> >> > >> > Do you have the debug-emacs and debug-notmuch packages installed? If not >> > please pkg_add them and retry in gdb. >> >> I do have the debug packages installed per your sugestion last >> month. Did I not run the emacs or debugger command correctly? > > I wasn't sure as you didn't mention it - I was expecting to see a > "Reading symbols from xx" line. > >> After installing them I did notice there is not a 'debug-emacs' command >> to run. Just emacs. Or should I have deleted the emacs and notmuch >> package first? > > ok no, that's correct then.. The debug packages have detached symbols > in a separate file, there is no separate executable. > >> debug-emacs-27.1-gtk3 (installed) >> emacs-27.1-gtk3 (installed) >> >> debug-notmuch-0.30 (installed) >> notmuch-0.30 (installed) >> notmuch-emacs-0.30 >> py3-notmuch-0.30 (installed) >> >> > >> >> desktop(~/.emacs.d)$: egdb -core emacs-27.1.core > > I didn't notice how you were calling gdb before; please try > > egdb emacs-27.1 emacs-27.1.core > >> >> [Current thread is 1 (process 391403)] >> >> (gdb) bt >> >> #0 0x0000038a4fe993ea in ?? () >> >> #1 0x000003880df74a4e in ?? () >> >> #2 0x0000000000000000 in ?? () > > I am hoping that some function names will show up instead of ??.
Ah not that familar with gdb. desktop(~/.emacs.d)$: egdb emacs-27.1 emacs-27.1.core GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-openbsd6.8". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from emacs-27.1...Reading symbols from /usr/local/bin/.debug/emacs-27.1.dbg...done. done. [New process 391403] [New process 147349] [New process 201990] [New process 554034] [New process 127018] Core was generated by `emacs-27.1'. Program terminated with signal SIGSEGV, Segmentation fault. #0 thrkill () at /tmp/-:3 3 /tmp/-: No such file or directory. [Current thread is 1 (process 391403)] (gdb) bt #0 thrkill () at /tmp/-:3 #1 0x000003880df74a4e in terminate_due_to_signal (sig=11, backtrace_limit=<optimized out>) at emacs.c:409 #2 0x000003880df9794e in handle_fatal_signal (sig=0) at sysdep.c:1793 #3 0x000003880df979d2 in deliver_thread_signal (sig=11, handler=<optimized out>) at sysdep.c:1767 #4 0x000003880df967d9 in deliver_fatal_thread_signal (sig=0) at sysdep.c:1805 #5 0x000003880df97a1a in handle_sigsegv (sig=11, siginfo=<optimized out>, arg=<optimized out>) at sysdep.c:1890 #6 <signal handler called> #7 0x0000038ae6c37961 in gtk_label_new () from /usr/local/lib/libgtk-3.so.2201.0 #8 0x000003880df61067 in xg_make_tool_item (f=0x38a5797fda0, wimage=<optimized out>, label=0x38a755c2d88 <error: Cannot access memory at address 0x38a755c2d88>, i=9, horiz=true, text_image=<optimized out>, wbutton=<optimized out>) at gtkutil.c:4712 #9 update_frame_tool_bar (f=<optimized out>) at gtkutil.c:5197 #10 0x000003880dec84de in redisplay_tool_bar (f=0x38a5797fda0) at xdisp.c:14152 #11 redisplay_window (window=0x38a3c25a005, just_this_one_p=true) at xdisp.c:19060 #12 0x000003880dec25c7 in redisplay_window_1 (window=0x0) at xdisp.c:16322 #13 0x000003880e00aaff in internal_condition_case_1 (bfun=0x3c81d69f8f5c9d87, arg=0x38a3c25a005, handlers=<optimized out>, hfun=0x3880dec25e0 <redisplay_window_error>) at eval.c:1380 #14 0x000003880de95b91 in redisplay_internal () at xdisp.c:15890 #15 0x000003880df7cd50 in read_char (commandflag=1, map=0x38a6bf9e913, prev_event=0x0, used_mouse_menu=0x7f7ffffd2007, end_time=0x0) at keyboard.c:2493 #16 0x000003880df7a7ca in read_key_sequence (keybuf=<optimized out>, prompt=<optimized out>, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=<optimized out>) at keyboard.c:9553 #17 0x000003880df791a0 in command_loop_1 () at keyboard.c:1350 #18 0x000003880e00aa56 in internal_condition_case (bfun=0xc9a095673c200ea2, handlers=<optimized out>, hfun=0x3880df8a4e0 <cmd_error>) at eval.c:1356 #19 0x000003880df8a430 in command_loop_2 (ignore=<optimized out>) at keyboard.c:1091 #20 0x000003880e00a327 in internal_catch (tag=<optimized out>, func=0xba17322fd985a904, arg=0x0) at eval.c:1117 #21 0x000003880df7803a in command_loop () at keyboard.c:1070 #22 0x000003880df77f01 in recursive_edit_1 () at keyboard.c:714 #23 0x000003880df7822a in Frecursive_edit () at keyboard.c:786 #24 0x000003880df76e58 in main (argc=1, argv=0x7f7ffffd24a8) at emacs.c:2062 (gdb)