GNU bug report logs - #45511
27.1; Emacs crashes in gui_produce_glyphs when using a custom function for org-roam-insert

Previous Next

Package: emacs;

Reported by: Maikol Solís <maikol.solis <at> ucr.ac.cr>

Date: Mon, 28 Dec 2020 17:05:02 UTC

Severity: normal

Merged with 44111

Found in version 27.1

Fixed in version 27.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45511 in the body.
You can then email your comments to 45511 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#45511; Package emacs. (Mon, 28 Dec 2020 17:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maikol Solís <maikol.solis <at> ucr.ac.cr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 28 Dec 2020 17:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; Emacs crashes in gui_produce_glyphs when using a custom
 function for org-roam-insert
Date: Mon, 28 Dec 2020 09:32:17 -0600
[Message part 1 (text/plain, inline)]
Hi!

I am trying to make a custom function for org-roam which inserts
footnote-like links in the current note. I'm using doom-emacs.

The idea is to insert links in this way

    The logistic regression [fn:20200612000001]...

    * Footnotes

    [fn:20200612000001] [[file:
20200612000001-definition_logistic_regression.org][Logistic regression]]

and the linked file has the form

    :PROPERTIES:
    :ID: 20200612000001
    :END:
    #+TITLE: Definition Logistic Regression

I just copy-pasted the original `org-roam-insert` function and hacked it a
little to insert the footnote. The code is here
https://gist.github.com/maikol-solis/ed149c16cff16a55492d1acba8c12025.

Everything is fine except that after a couple of times using it, emacs
crashes completely.  I think that is caused by this function because this
has never happened before.

I used `gdb` to follow the crash and this is the output:

     Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault.
     gui_produce_glyphs (it=0x7fff82fc3650) at xdisp.c:29925
     29925         struct font *font = face->font;
     (gdb) next
     handle_sigsegv (sig=11, siginfo=0xc201f0 <sigsegv_stack+7152>,
arg=0xc200c0 <sigsegv_stack+6848>) at sysdep.c:1876
     1876    {
     (gdb) next
     1882      if (!fatal && !pthread_equal (pthread_self (),
main_thread_id))
     (gdb) next
     1886      if (!fatal && stack_overflow (siginfo))
     (gdb) next
     1890      deliver_fatal_thread_signal (sig);
     (gdb) next

     Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault.
     0x00007fc45ddc1170 in raise () from /lib64/libpthread.so.0
     (gdb) next
     Single stepping until exit from function raise,
     which has no line number information.
     [Thread 0x7fc44567f700 (LWP 28923) exited]
     [Thread 0x7fc4477fe700 (LWP 28922) exited]
     [Thread 0x7fc447fff700 (LWP 28921) exited]
     [Thread 0x7fc44df97700 (LWP 28920) exited]

     Program terminated with signal SIGSEGV, Segmentation fault.
     The program no longer exists.

I appreciate any help to solve this issue.
Best.

Maikol


In GNU Emacs 27.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.20,
cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: openSUSE Leap 15.2

Recent messages:
org-super-agenda-mode enabled.
Ignoring ’:ensure t’ in ’company-tabnine’ config
Doom loaded 332 packages across 54 modules in 5.736s
Package cl is deprecated
Quit
Error in minibuffer-exit-hook (+ivy--set-jump-point-maybe-h):
(wrong-type-argument markerp nil)

Configured using:
 'configure --disable-build-details --with-pop --without-hesiod
 --with-gameuser=:games --with-kerberos --with-kerberos5
 --with-file-notification=inotify --with-modules --enable-autodepend
 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib
 --libexecdir=/usr/lib
 --enable-locallisppath=/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp
 --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff
 --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf
 --with-m17n-flt --with-cairo --with-xwidgets --build=x86_64-suse-linux
 --with-dumping=pdumper 'CFLAGS=-fmessage-length=0 -grecord-gcc-switches
 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
 -fasynchronous-unwind-tables -fstack-clash-protection -g -D_GNU_SOURCE
 -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
 -fno-optimize-sibling-calls -fno-PIE -DSYSTEM_PURESIZE_EXTRA=55000
 -DSITELOAD_PURESIZE_EXTRA=10000 -DPDMP_BASE='\''"emacs-gtk"'\'''
 LDFLAGS=-Wl,-O2'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LC_NUMERIC: POSIX
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8

Major mode: DOOM v2.0.9

Minor modes in effect:
  flyspell-lazy-mode: t
  gcmh-mode: t
  winner-mode: t
  ws-butler-global-mode: t
  global-flycheck-mode: t
  which-key-mode: t
  better-jumper-mode: t
  better-jumper-local-mode: t
  helm-descbinds-mode: t
  helm-mode: t
  ivy-rich-mode: t
  ivy-mode: t
  evil-goggles-mode: t
  evil-escape-mode: t
  evil-snipe-override-mode: t
  evil-snipe-mode: t
  evil-snipe-override-local-mode: t
  evil-snipe-local-mode: t
  winum-mode: t
  savehist-mode: t
  xterm-mouse-mode: t
  xclip-mode: t
  solaire-global-mode: t
  doom-modeline-mode: t
  org-edna-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  override-global-mode: t
  TeX-PDF-mode: t
  TeX-source-correlate-mode: t
  company-tng-mode: t
  global-company-mode: t
  company-mode: t
  org-super-agenda-mode: t
  global-git-commit-mode: t
  org-roam-bibtex-mode: t
  global-hl-line-mode: t
  hl-line-mode: t
  helm-ff-cache-mode: t
  async-bytecomp-package-mode: t
  org-roam-mode: t
  smartparens-global-mode: t
  global-auto-revert-mode: t
  minions-mode: t
  persp-mode: t
  shell-dirtrack-mode: t
  evil-mode: t
  evil-local-mode: t
  +popup-mode: t
  general-override-mode: t
  show-paren-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/maikol/.emacs.d/.local/straight/build-27.1/queue/queue hides
/home/maikol/.emacs.d/.local/straight/build-27.1/predictive/queue
/home/maikol/.emacs.d/.local/straight/build-27.1/popup/popup hides
/home/maikol/.emacs.d/.local/straight/build-27.1/predictive/popup
/home/maikol/.emacs.d/.local/straight/build-27.1/jsonrpc/jsonrpc hides
/usr/share/emacs/27.1/lisp/jsonrpc
/home/maikol/.emacs.d/.local/straight/build-27.1/project/project hides
/usr/share/emacs/27.1/lisp/progmodes/project
/home/maikol/.emacs.d/.local/straight/build-27.1/flymake/flymake hides
/usr/share/emacs/27.1/lisp/progmodes/flymake
/home/maikol/.emacs.d/.local/straight/build-27.1/xref/xref hides
/usr/share/emacs/27.1/lisp/progmodes/xref
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox hides
/usr/share/emacs/27.1/lisp/org/ox
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-info hides
/usr/share/emacs/27.1/lisp/org/ol-info
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-texinfo hides
/usr/share/emacs/27.1/lisp/org/ox-texinfo
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-gnus hides
/usr/share/emacs/27.1/lisp/org/ol-gnus
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-publish hides
/usr/share/emacs/27.1/lisp/org/ox-publish
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-eww hides
/usr/share/emacs/27.1/lisp/org/ol-eww
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-org hides
/usr/share/emacs/27.1/lisp/org/ox-org
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-eshell hides
/usr/share/emacs/27.1/lisp/org/ol-eshell
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-indent hides
/usr/share/emacs/27.1/lisp/org/org-indent
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-docview hides
/usr/share/emacs/27.1/lisp/org/ol-docview
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-id hides
/usr/share/emacs/27.1/lisp/org/org-id
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-bibtex hides
/usr/share/emacs/27.1/lisp/org/ol-bibtex
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-habit hides
/usr/share/emacs/27.1/lisp/org/org-habit
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-bbdb hides
/usr/share/emacs/27.1/lisp/org/ol-bbdb
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-odt hides
/usr/share/emacs/27.1/lisp/org/ox-odt
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob hides
/usr/share/emacs/27.1/lisp/org/ob
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-sql hides
/usr/share/emacs/27.1/lisp/org/ob-sql
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-md hides
/usr/share/emacs/27.1/lisp/org/ox-md
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-shen hides
/usr/share/emacs/27.1/lisp/org/ob-shen
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-man hides
/usr/share/emacs/27.1/lisp/org/ox-man
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-shell hides
/usr/share/emacs/27.1/lisp/org/ob-shell
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-goto hides
/usr/share/emacs/27.1/lisp/org/org-goto
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-sed hides
/usr/share/emacs/27.1/lisp/org/ob-sed
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-latex hides
/usr/share/emacs/27.1/lisp/org/ox-latex
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-screen hides
/usr/share/emacs/27.1/lisp/org/ob-screen
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-footnote
hides /usr/share/emacs/27.1/lisp/org/org-footnote
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-scheme hides
/usr/share/emacs/27.1/lisp/org/ob-scheme
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-feed hides
/usr/share/emacs/27.1/lisp/org/org-feed
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-sass hides
/usr/share/emacs/27.1/lisp/org/ob-sass
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-icalendar
hides /usr/share/emacs/27.1/lisp/org/ox-icalendar
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ruby hides
/usr/share/emacs/27.1/lisp/org/ob-ruby
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-html hides
/usr/share/emacs/27.1/lisp/org/ox-html
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ref hides
/usr/share/emacs/27.1/lisp/org/ob-ref
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-beamer hides
/usr/share/emacs/27.1/lisp/org/ox-beamer
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-python hides
/usr/share/emacs/27.1/lisp/org/ob-python
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-faces hides
/usr/share/emacs/27.1/lisp/org/org-faces
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-processing
hides /usr/share/emacs/27.1/lisp/org/ob-processing
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-entities
hides /usr/share/emacs/27.1/lisp/org/org-entities
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-plantuml hides
/usr/share/emacs/27.1/lisp/org/ob-plantuml
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-element hides
/usr/share/emacs/27.1/lisp/org/org-element
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-picolisp hides
/usr/share/emacs/27.1/lisp/org/ob-picolisp
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-duration
hides /usr/share/emacs/27.1/lisp/org/org-duration
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-perl hides
/usr/share/emacs/27.1/lisp/org/ob-perl
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ox-ascii hides
/usr/share/emacs/27.1/lisp/org/ox-ascii
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-org hides
/usr/share/emacs/27.1/lisp/org/ob-org
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org hides
/usr/share/emacs/27.1/lisp/org/org
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-octave hides
/usr/share/emacs/27.1/lisp/org/ob-octave
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-datetree
hides /usr/share/emacs/27.1/lisp/org/org-datetree
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ocaml hides
/usr/share/emacs/27.1/lisp/org/ob-ocaml
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-ctags hides
/usr/share/emacs/27.1/lisp/org/org-ctags
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-mscgen hides
/usr/share/emacs/27.1/lisp/org/ob-mscgen
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-crypt hides
/usr/share/emacs/27.1/lisp/org/org-crypt
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-maxima hides
/usr/share/emacs/27.1/lisp/org/ob-maxima
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-compat hides
/usr/share/emacs/27.1/lisp/org/org-compat
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-matlab hides
/usr/share/emacs/27.1/lisp/org/ob-matlab
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-colview hides
/usr/share/emacs/27.1/lisp/org/org-colview
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-makefile hides
/usr/share/emacs/27.1/lisp/org/ob-makefile
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-clock hides
/usr/share/emacs/27.1/lisp/org/org-clock
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-lua hides
/usr/share/emacs/27.1/lisp/org/ob-lua
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-version hides
/usr/share/emacs/27.1/lisp/org/org-version
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-lob hides
/usr/share/emacs/27.1/lisp/org/ob-lob
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-timer hides
/usr/share/emacs/27.1/lisp/org/org-timer
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-lisp hides
/usr/share/emacs/27.1/lisp/org/ob-lisp
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-tempo hides
/usr/share/emacs/27.1/lisp/org/org-tempo
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-lilypond hides
/usr/share/emacs/27.1/lisp/org/ob-lilypond
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-capture hides
/usr/share/emacs/27.1/lisp/org/org-capture
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ledger hides
/usr/share/emacs/27.1/lisp/org/ob-ledger
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-attach hides
/usr/share/emacs/27.1/lisp/org/org-attach
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-latex hides
/usr/share/emacs/27.1/lisp/org/ob-latex
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-attach-git
hides /usr/share/emacs/27.1/lisp/org/org-attach-git
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-js hides
/usr/share/emacs/27.1/lisp/org/ob-js
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-table hides
/usr/share/emacs/27.1/lisp/org/org-table
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-java hides
/usr/share/emacs/27.1/lisp/org/ob-java
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-src hides
/usr/share/emacs/27.1/lisp/org/org-src
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-io hides
/usr/share/emacs/27.1/lisp/org/ob-io
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-protocol
hides /usr/share/emacs/27.1/lisp/org/org-protocol
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-hledger hides
/usr/share/emacs/27.1/lisp/org/ob-hledger
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-archive hides
/usr/share/emacs/27.1/lisp/org/org-archive
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-haskell hides
/usr/share/emacs/27.1/lisp/org/ob-haskell
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-agenda hides
/usr/share/emacs/27.1/lisp/org/org-agenda
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-groovy hides
/usr/share/emacs/27.1/lisp/org/ob-groovy
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol hides
/usr/share/emacs/27.1/lisp/org/ol
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-gnuplot hides
/usr/share/emacs/27.1/lisp/org/ob-gnuplot
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-w3m hides
/usr/share/emacs/27.1/lisp/org/ol-w3m
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-fortran hides
/usr/share/emacs/27.1/lisp/org/ob-fortran
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-rmail hides
/usr/share/emacs/27.1/lisp/org/ol-rmail
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-forth hides
/usr/share/emacs/27.1/lisp/org/ob-forth
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-mhe hides
/usr/share/emacs/27.1/lisp/org/ol-mhe
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-exp hides
/usr/share/emacs/27.1/lisp/org/ob-exp
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-plot hides
/usr/share/emacs/27.1/lisp/org/org-plot
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-eval hides
/usr/share/emacs/27.1/lisp/org/ob-eval
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-pcomplete
hides /usr/share/emacs/27.1/lisp/org/org-pcomplete
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-eshell hides
/usr/share/emacs/27.1/lisp/org/ob-eshell
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ol-irc hides
/usr/share/emacs/27.1/lisp/org/ol-irc
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-emacs-lisp
hides /usr/share/emacs/27.1/lisp/org/ob-emacs-lisp
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-vala hides
/usr/share/emacs/27.1/lisp/org/ob-vala
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ebnf hides
/usr/share/emacs/27.1/lisp/org/ob-ebnf
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-num hides
/usr/share/emacs/27.1/lisp/org/org-num
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-dot hides
/usr/share/emacs/27.1/lisp/org/ob-dot
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-mouse hides
/usr/share/emacs/27.1/lisp/org/org-mouse
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-ditaa hides
/usr/share/emacs/27.1/lisp/org/ob-ditaa
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-tangle hides
/usr/share/emacs/27.1/lisp/org/ob-tangle
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-css hides
/usr/share/emacs/27.1/lisp/org/ob-css
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-mobile hides
/usr/share/emacs/27.1/lisp/org/org-mobile
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-core hides
/usr/share/emacs/27.1/lisp/org/ob-core
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-macs hides
/usr/share/emacs/27.1/lisp/org/org-macs
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-coq hides
/usr/share/emacs/27.1/lisp/org/ob-coq
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-macro hides
/usr/share/emacs/27.1/lisp/org/org-macro
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-comint hides
/usr/share/emacs/27.1/lisp/org/ob-comint
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-table hides
/usr/share/emacs/27.1/lisp/org/ob-table
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-clojure hides
/usr/share/emacs/27.1/lisp/org/ob-clojure
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-sqlite hides
/usr/share/emacs/27.1/lisp/org/ob-sqlite
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-calc hides
/usr/share/emacs/27.1/lisp/org/ob-calc
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-loaddefs
hides /usr/share/emacs/27.1/lisp/org/org-loaddefs
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-awk hides
/usr/share/emacs/27.1/lisp/org/ob-awk
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-list hides
/usr/share/emacs/27.1/lisp/org/org-list
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-asymptote
hides /usr/share/emacs/27.1/lisp/org/ob-asymptote
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-stan hides
/usr/share/emacs/27.1/lisp/org/ob-stan
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-abc hides
/usr/share/emacs/27.1/lisp/org/ob-abc
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-lint hides
/usr/share/emacs/27.1/lisp/org/org-lint
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-R hides
/usr/share/emacs/27.1/lisp/org/ob-R
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-keys hides
/usr/share/emacs/27.1/lisp/org/org-keys
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-J hides
/usr/share/emacs/27.1/lisp/org/ob-J
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-install hides
/usr/share/emacs/27.1/lisp/org/org-install
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/ob-C hides
/usr/share/emacs/27.1/lisp/org/ob-C
/home/maikol/.emacs.d/.local/straight/build-27.1/org-mode/org-inlinetask
hides /usr/share/emacs/27.1/lisp/org/org-inlinetask
/home/maikol/.emacs.d/.local/straight/build-27.1/map/map hides
/usr/share/emacs/27.1/lisp/emacs-lisp/map
/home/maikol/.emacs.d/.local/straight/build-27.1/eldoc/eldoc hides
/usr/share/emacs/27.1/lisp/emacs-lisp/eldoc
/home/maikol/.emacs.d/.local/straight/build-27.1/predictive/avl-tree hides
/usr/share/emacs/27.1/lisp/emacs-lisp/avl-tree

Features:
(shadow sort disp-table whitespace flycheck-popup-tip flyspell-lazy
ispell flyspell display-fill-column-indicator vi-tilde-fringe
display-line-numbers highlight-indent-guides adaptive-wrap gcmh winner
ws-butler evil-collection-flycheck flycheck mail-extr emacsbug sendmail
cursor-sensor amx evil-collection-which-key which-key better-jumper
company-yasnippet company-capf helm-descbinds helm-mode
evil-collection-ivy ivy-avy avy ivy-rich counsel xdg helm-xref ivy-xref
evil-collection-xref xref project swiper ivy ivy-faces ivy-overlay colir
evil-goggles pulse evil-easymotion evil-escape evil-snipe face-remap
doom-snippets doom-snippets-lib yasnippet evil-collection-elisp-mode
elisp-mode winum savehist recentf tree-widget xt-mouse xclip
evil-terminal-cursor-changer persistent-soft list-utils pcache
font-utils unicode-fonts doom-themes-ext-org doom-themes-ext-treemacs
solaire-mode doom-nord-theme doom-themes doom-themes-base dtrt-indent
doom-modeline doom-modeline-segments doom-modeline-env
doom-modeline-core shrink-path all-the-icons all-the-icons-faces
data-material data-weathericons data-octicons data-fileicons
data-faicons data-alltheicons memoize real-auto-save edwina org-gtd
org-edna org-agenda-property google-translate-smooth-ui google-translate
google-translate-default-ui google-translate-core-ui
evil-collection-popup popup google-translate-core google-translate-tk
google-translate-backend undo-tree poly-org polymode poly-lock
polymode-base polymode-weave polymode-export polymode-compat
polymode-methods polymode-core polymode-classes eieio-custom eieio-base
color langtool use-package-bind-key bind-key smartparens-latex
auctex-latexmk tex-buf latex latex-flymake evil-collection-flymake
flymake-proc flymake tex-ispell tex-style tex texmathp move-dup
company-tabnine unicode-escape company-template company-tng company
use-package-ensure org-tracktable org-noter time-stamp org-pomodoro
org-timer org-super-agenda ts org-habit org-gcal persist org-clock
org-archive request-deferred request org-agenda orgit
evil-collection-magit-todos magit-todos pcre2el rxt re-builder hl-todo
evil-collection-grep grep evil-collection-compile compile github-review
ghub-graphql treepy gsexp ghub gnutls deferred a evil-collection-magit
magit-autoloads magit-submodule magit-obsolete magit-popup magit-blame
magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch
magit-clone magit-remote magit-commit magit-sequence magit-notes
magit-worktree magit-tag magit-merge magit-branch magit-reset
magit-files magit-refs magit-status magit magit-repos magit-apply
magit-wip magit-log which-func evil-collection-imenu imenu magit-diff
smerge-mode diff evil-collection-diff-mode diff-mode magit-core
magit-autorevert magit-margin magit-transient magit-process magit-mode
git-commit transient magit-git magit-section magit-utils crm
evil-collection-log-edit log-edit pcvs-util add-log with-editor
org-roam-bibtex orb-helm orb-core orb-compat orb-utils org-roam-server
simple-httpd org-ref org-ref-helm-bibtex core-packages package
url-handlers org-ref-helm helm-bibtex bibtex-completion biblio
biblio-download biblio-dissemin biblio-ieee biblio-hal biblio-dblp
biblio-crossref biblio-arxiv timezone biblio-doi biblio-core let-alist
url-queue ido hl-line helm-files helm-buffers helm-occur helm-tags
helm-locate helm-grep helm-regexp helm-utils helm-types helm-net
browse-url helm-help helm async-bytecomp helm-global-bindings
helm-source eieio-compat helm-multi-match helm-lib async helm-config
helm-autoloads org-ref-core warnings evil-collection-reftex reftex-cite
reftex-ref reftex-parse reftex reftex-loaddefs reftex-vars parsebib
ox-pandoc ht ox-org ox-hugo ffap ox-blackfriday ox-odt rng-loc rng-uri
rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-icalendar ox-ascii ox-md ox-beamer ox-latex
org-re-reveal ox-html table ox-publish ox org-ref-glossary
org-ref-bibtex org-ref-citeproc message evil-collection-dired dired
dired-loaddefs rfc822 mml mml-sec evil-collection-epa epa epg epg-config
gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies
mm-encode mailabbrev mail-utils gmm-utils mailheader key-chord hydra lv
doi-utils org-ref-utils org-ref-pdf url-http url url-proxy url-privacy
url-expand url-methods url-history mailcap url-auth mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-cookie url-domsuf
url-util url-gw url-parse url-vars nsm rmc puny ol-bibtex bibtex htmlize
org-roam org-roam-link org-roam-graph org-roam-doctor org-roam-db
emacsql-sqlite3 emacsql emacsql-compiler org-roam-dailies
org-roam-capture org-capture org-roam-completion org-roam-buffer
org-roam-faces org-roam-macs org-roam-compat f s org-id org-refile
smartparens-org org-yt org-element avl-tree generator org org-macro
org-footnote org-pcomplete org-list org-faces org-entities
evil-collection-outline noutline outline org-version ob-latex ob-R
ob-dot ob-python pyvenv evil-collection-eshell em-prompt esh-mode eshell
esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups
esh-util smartparens-config smartparens-text smartparens-python
smartparens help-mode dash evil-collection-python python tramp-sh tramp
tramp-loaddefs trampver tramp-integration files-x tramp-compat
parse-time iso8601 time-date ls-lisp auth-source eieio eieio-core
eieio-loaddefs password-cache json map ob ob-tangle org-src ob-ref
ob-lob ob-table ob-exp ob-comint ob-emacs-lisp ob-core ob-eval org-table
ol org-keys org-compat org-macs org-loaddefs format-spec find-func
evil-collection-calendar evil-collection-custom cus-edit cus-start
cus-load wid-edit evil-collection-comint evil-collection annalist
cal-menu calendar cal-loaddefs alert log4e rx notifications dbus server
autorevert filenotify xml gntp minions iso-transl persp-mode ibuf-macs
evil evil-integration evil-maps evil-commands reveal evil-jumps
evil-command-window evil-types evil-search shell pcomplete comint
ansi-color evil-macros evil-repeat evil-states evil-core evil-common
windmove thingatpt rect evil-digraphs evil-vars ring derived core-editor
core-projects core-ui edmacro kmacro core-keybinds pp general cl-extra
seq byte-opt cl-seq use-package-core bytecomp byte-compile cconv
core-modules helm-easymenu easymenu advice tex-site cl core core-lib
cl-macs gv cl-loaddefs cl-lib subr-x paren delsel lpr easy-mmode pcase
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook simple abbrev obarray cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting xwidget-internal cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 781256 979793)
 (symbols 48 59770 46)
 (strings 32 204651 101164)
 (string-bytes 1 6553586)
 (vectors 16 92556)
 (vector-slots 8 1104700 835690)
 (floats 8 1167 3180)
 (intervals 56 1494 330)
 (buffers 1000 15))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45511; Package emacs. (Mon, 28 Dec 2020 17:17:02 GMT) Full text and rfc822 format available.

Message #8 received at 45511 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Maikol Solís <maikol.solis <at> ucr.ac.cr>
Cc: 45511 <at> debbugs.gnu.org
Subject: Re: bug#45511: 27.1;
 Emacs crashes in gui_produce_glyphs when using a custom function for
 org-roam-insert
Date: Mon, 28 Dec 2020 19:16:07 +0200
> From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
> Date: Mon, 28 Dec 2020 09:32:17 -0600
> 
> Everything is fine except that after a couple of times using it, emacs crashes completely.  I think that is
> caused by this function because this has never happened before.
> 
> I used `gdb` to follow the crash and this is the output:
> 
>      Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault.

Is this a normal build of Emacs, or did you build some branch of the
Git repository?  (I'm puzzled why the thread is called "emacs-gtk".)

>      gui_produce_glyphs (it=0x7fff82fc3650) at xdisp.c:29925
>      29925         struct font *font = face->font;
>      (gdb) next

At this point, please say

   (gdb) source /path/to/emacs/src/.gdbinit
   (gdb) bt

(replacing "/path/to/emacs" with the real location of the Emacs
sources on your system) and post the result.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45511; Package emacs. (Mon, 28 Dec 2020 18:43:02 GMT) Full text and rfc822 format available.

Message #11 received at 45511 <at> debbugs.gnu.org (full text, mbox):

From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Maikol Solís <maikol.solis <at> ucr.ac.cr>,
 45511 <at> debbugs.gnu.org
Subject: Re: bug#45511: 27.1; Emacs crashes in gui_produce_glyphs when using a
 custom function for org-roam-insert
Date: Mon, 28 Dec 2020 12:42:08 -0600
[Message part 1 (text/plain, inline)]
Hi Eli,

My emacs is the compiled in the editor's repo for 15.2 (
https://build.opensuse.org/package/show/editors/emacs), so I haven't any
control on how it was compiled.

With respect to the bug, I could reproduce it when I tried to replace a
link in org-roam. Here it is the full backtrace.


Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault.
gui_produce_glyphs (it=0x7ffd8df127a0) at xdisp.c:29925
29925         struct font *font = face->font;
(gdb) source /etc/gdbinit
(gdb) bt
#0  0x00000000004693ed in gui_produce_glyphs (it=0x7ffd8df127a0) at
xdisp.c:29925
#1  0x000000000044d632 in maybe_produce_line_number
(it=it <at> entry=0x7ffd8df16260)
at xdisp.c:22909
#2  0x000000000045a0ee in display_line (it=it <at> entry=0x7ffd8df16260,
cursor_vpos=cursor_vpos <at> entry=1) at xdisp.c:23161
#3  0x000000000045e00d in try_window (window=0x234d765, pos=...,
flags=<optimized out>) at xdisp.c:19182
#4  0x0000000000472e48 in redisplay_window (window=0x234d765,
just_this_one_p=just_this_one_p <at> entry=false) at xdisp.c:18600
#5  0x000000000047617b in redisplay_window_0 (window=window <at> entry=0x234d765)
at xdisp.c:16314
#6  0x0000000000574f16 in internal_condition_case_1 (bfun=0x476150
<redisplay_window_0>, arg=0x234d765, handlers=<optimized out>,
hfun=0x437840 <redisplay_window_error>) at eval.c:1380
#7  0x000000000044107c in redisplay_windows (window=0x234d765) at
xdisp.c:16294
#8  0x000000000044108d in redisplay_windows (window=0xf8e2c45) at
xdisp.c:16288
#9  0x0000000000461b78 in redisplay_internal () at xdisp.c:15762
#10 0x000000000046394d in redisplay_preserve_echo_area
(from_where=from_where <at> entry=7) at xdisp.c:16115
#11 0x00000000005051aa in swallow_events (do_display=do_display <at> entry=true)
at keyboard.c:4146
#12 0x000000000042c082 in sit_for (timeout=timeout <at> entry=0x7a,
reading=reading <at> entry=true, display_option=display_option <at> entry=1) at
dispnew.c:6006
#13 0x000000000050ae48 in read_char (commandflag=commandflag <at> entry=1,
map=map <at> entry=0x45f8433, prev_event=0x0,
used_mouse_menu=used_mouse_menu <at> entry=0x7ffd8df1b84b,
end_time=end_time <at> entry=0x0) at keyboard.c:2738
#14 0x000000000050b290 in read_key_sequence
   (keybuf=keybuf <at> entry=0x7ffd8df1b950, prompt=prompt <at> entry=0x0,
dont_downcase_last=dont_downcase_last <at> entry=false,
can_return_switch_frame=can_return_switch_frame <at> entry=true,
fix_current_buffer=fix_current_buffer <at> entry=true, prevent_re
display=prevent_redisplay <at> entry=false) at keyboard.c:9553
#15 0x000000000050c8fe in command_loop_1 () at keyboard.c:1350
#16 0x0000000000574e7e in internal_condition_case (bfun=bfun <at> entry=0x50c700
<command_loop_1>, handlers=handlers <at> entry=0x90, hfun=hfun <at> entry=0x503780
<cmd_error>) at eval.c:1356
#17 0x00000000004fe1bc in command_loop_2 (ignore=ignore <at> entry=0x0) at
keyboard.c:1091
#18 0x0000000000574ded in internal_catch (tag=tag <at> entry=0x5bb0,
func=func <at> entry=0x4fe1a0 <command_loop_2>, arg=arg <at> entry=0x0) at eval.c:1117
#19 0x00000000004fe124 in command_loop () at keyboard.c:1062
#20 0x00000000005033b6 in recursive_edit_1 () at keyboard.c:714
#21 0x000000000052bdc2 in read_minibuf (map=map <at> entry=0x4552933,
initial=<optimized out>, initial <at> entry=0x0, prompt=<optimized out>,
   prompt <at> entry=0x3695c44, expflag=<optimized out>, histvar=<optimized
out>, histpos=<optimized out>, defalt=<optimized out>,
allow_props=<optimized out>, inherit_input_method=<optimized out>) at
minibuf.c:664
#22 0x000000000052c57c in Fread_from_minibuffer (prompt=0x3695c44,
initial_contents=0x0, keymap=0x4552933, read=0x0, hist=<optimized out>,
default_value=0x0, inherit_input_method=0x0) at minibuf.c:942
#23 0x0000000000577201 in funcall_subr (subr=0xbc5920
<Sread_from_minibuffer>, numargs=numargs <at> entry=5,
args=args <at> entry=0x7ffd8df1bd88)
at eval.c:2893
#24 0x0000000000575c05 in Ffuncall (nargs=6, args=args <at> entry=0x7ffd8df1bd80)
at eval.c:2795
#25 0x00000000005ab160 in exec_byte_code (bytestr=<optimized out>,
vector=<optimized out>, maxdepth=<optimized out>,
args_template=args_template <at> entry=0x406, nargs=nargs <at> entry=1,
args=<optimized out>, args <at> entry=0x7ffd8df1c028)
   at bytecode.c:633
#26 0x00000000005784dc in funcall_lambda (fun=0x7f68248f3d8d,
nargs=nargs <at> entry=1, arg_vector=arg_vector <at> entry=0x7ffd8df1c028) at
eval.c:2990
#27 0x0000000000575b5f in Ffuncall (nargs=nargs <at> entry=2,
args=args <at> entry=0x7ffd8df1c020)
at eval.c:2809
#28 0x0000000000575cca in call1 (fn=<optimized out>, arg1=arg1 <at> entry=0x3695c64)
at eval.c:2655
#29 0x000000000058276e in do_yes_or_no_p (prompt=0x3695c64) at fns.c:2773
#30 0x000000000051ef96 in Fkill_buffer (buffer_or_name=<optimized out>) at
buffer.c:1739
#31 0x0000000000577236 in funcall_subr (subr=0xbc4da0 <Skill_buffer>,
numargs=numargs <at> entry=1, args=args <at> entry=0x7ffd8df1c208) at eval.c:2868
#32 0x0000000000575c05 in Ffuncall (nargs=2, args=args <at> entry=0x7ffd8df1c200)
at eval.c:2795
#33 0x00000000005ab160 in exec_byte_code (bytestr=<optimized out>,
vector=<optimized out>, maxdepth=<optimized out>,
args_template=args_template <at> entry=0x80a, nargs=nargs <at> entry=2,
args=<optimized out>, args <at> entry=0x7ffd8df1c450)
   at bytecode.c:633
#34 0x00000000005784dc in funcall_lambda (fun=0x6b88445, nargs=nargs <at> entry=2,
arg_vector=arg_vector <at> entry=0x7ffd8df1c450) at eval.c:2990
#35 0x0000000000575b5f in Ffuncall (nargs=3, args=args <at> entry=0x7ffd8df1c448)
at eval.c:2809
#36 0x00000000005ab160 in exec_byte_code (bytestr=<optimized out>,
vector=<optimized out>, maxdepth=<optimized out>,
args_template=args_template <at> entry=0x402, nargs=nargs <at> entry=1,
args=<optimized out>, args <at> entry=0x7ffd8df1c760)
   at bytecode.c:633
#37 0x00000000005784dc in funcall_lambda (fun=0x6b88405, nargs=nargs <at> entry=1,
arg_vector=arg_vector <at> entry=0x7ffd8df1c760) at eval.c:2990
#38 0x0000000000575b5f in Ffuncall (nargs=nargs <at> entry=2,
args=args <at> entry=0x7ffd8df1c758)
at eval.c:2809
#39 0x0000000000572460 in Ffuncall_interactively (nargs=2,
args=0x7ffd8df1c758) at callint.c:254
#40 0x0000000000577175 in funcall_subr (subr=0xbcaaa0
<Sfuncall_interactively>, numargs=numargs <at> entry=2,
args=args <at> entry=0x7ffd8df1c758)
at eval.c:2848
#41 0x0000000000575c05 in Ffuncall (nargs=nargs <at> entry=3,
args=args <at> entry=0x7ffd8df1c750)
at eval.c:2795
#42 0x0000000000573040 in Fcall_interactively (function=<optimized out>,
record_flag=<optimized out>, keys=<optimized out>) at callint.c:783
#43 0x000000000057725e in funcall_subr (subr=0xbcaa60
<Scall_interactively>, numargs=numargs <at> entry=3, args=args <at> entry=0x7ffd8df1ca20)
at eval.c:2873
#44 0x0000000000575c05 in Ffuncall (nargs=4, args=args <at> entry=0x7ffd8df1ca18)
at eval.c:2795
#45 0x00000000005ab160 in exec_byte_code (bytestr=<optimized out>,
vector=<optimized out>, maxdepth=<optimized out>,
args_template=args_template <at> entry=0x1006, nargs=nargs <at> entry=1,
args=<optimized out>, args <at> entry=0x7ffd8df1ccb8)
   at bytecode.c:633
#46 0x00000000005784dc in funcall_lambda (fun=0x7f6824a613e5,
nargs=nargs <at> entry=1, arg_vector=arg_vector <at> entry=0x7ffd8df1ccb8) at
eval.c:2990
--Type <RET> for more, q to quit, c to continue without paging--
#47 0x0000000000575b5f in Ffuncall (nargs=nargs <at> entry=2,
args=args <at> entry=0x7ffd8df1ccb0)
at eval.c:2809
#48 0x0000000000575cca in call1 (fn=fn <at> entry=0x4380, arg1=<optimized out>)
at eval.c:2655
#49 0x000000000050caf0 in command_loop_1 () at keyboard.c:1463
#50 0x0000000000574e7e in internal_condition_case (bfun=bfun <at> entry=0x50c700
<command_loop_1>, handlers=handlers <at> entry=0x90, hfun=hfun <at> entry=0x503780
<cmd_error>) at eval.c:1356
#51 0x00000000004fe1bc in command_loop_2 (ignore=ignore <at> entry=0x0) at
keyboard.c:1091
#52 0x0000000000574ded in internal_catch (tag=tag <at> entry=0xd5c0,
func=func <at> entry=0x4fe1a0 <command_loop_2>, arg=arg <at> entry=0x0) at eval.c:1117
#53 0x00000000004fe164 in command_loop () at keyboard.c:1070
#54 0x00000000005033b6 in recursive_edit_1 () at keyboard.c:714
#55 0x00000000005036c4 in Frecursive_edit () at keyboard.c:786
#56 0x0000000000422984 in main (argc=1, argv=0x7ffd8df1d148) at emacs.c:2066




-----
Maikol Solís
Universidad de Costa Rica
Escuela de Matemática
Centro de Investigación en Matemática Pura y Aplicada
Tel: (506) 2511-6607 / (506) 2511-6606



On Mon, Dec 28, 2020 at 11:17 AM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
> > Date: Mon, 28 Dec 2020 09:32:17 -0600
> >
> > Everything is fine except that after a couple of times using it, emacs
> crashes completely.  I think that is
> > caused by this function because this has never happened before.
> >
> > I used `gdb` to follow the crash and this is the output:
> >
> >      Thread 1 "emacs-gtk" received signal SIGSEGV, Segmentation fault.
>
> Is this a normal build of Emacs, or did you build some branch of the
> Git repository?  (I'm puzzled why the thread is called "emacs-gtk".)
>
> >      gui_produce_glyphs (it=0x7fff82fc3650) at xdisp.c:29925
> >      29925         struct font *font = face->font;
> >      (gdb) next
>
> At this point, please say
>
>    (gdb) source /path/to/emacs/src/.gdbinit
>    (gdb) bt
>
> (replacing "/path/to/emacs" with the real location of the Emacs
> sources on your system) and post the result.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45511; Package emacs. (Mon, 28 Dec 2020 19:30:02 GMT) Full text and rfc822 format available.

Message #14 received at 45511 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Maikol Solís <maikol.solis <at> ucr.ac.cr>
Cc: 45511 <at> debbugs.gnu.org
Subject: Re: bug#45511: 27.1; Emacs crashes in gui_produce_glyphs when using a
 custom function for org-roam-insert
Date: Mon, 28 Dec 2020 21:28:55 +0200
> From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
> Date: Mon, 28 Dec 2020 12:42:08 -0600
> Cc: Maikol Solís <maikol.solis <at> ucr.ac.cr>, 
> 	45511 <at> debbugs.gnu.org
> 
> (gdb) bt
> #0  0x00000000004693ed in gui_produce_glyphs (it=0x7ffd8df127a0) at xdisp.c:29925
> #1  0x000000000044d632 in maybe_produce_line_number (it=it <at> entry=0x7ffd8df16260) at xdisp.c:22909
> #2  0x000000000045a0ee in display_line (it=it <at> entry=0x7ffd8df16260, cursor_vpos=cursor_vpos <at> entry=1)
> at xdisp.c:23161
> #3  0x000000000045e00d in try_window (window=0x234d765, pos=..., flags=<optimized out>) at
> xdisp.c:19182

Thanks.  This is a duplicate of bug#44111, which is already fixed for
the upcoming Emacs 27.2.  If you can find a binary of the pretest
Emacs 27.1.90, you should see this problem gone there.




bug Marked as fixed in versions 27.2. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 28 Dec 2020 20:14:02 GMT) Full text and rfc822 format available.

Forcibly Merged 44111 45511. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 28 Dec 2020 20:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45511; Package emacs. (Mon, 28 Dec 2020 21:32:01 GMT) Full text and rfc822 format available.

Message #21 received at 45511 <at> debbugs.gnu.org (full text, mbox):

From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Maikol Solís <maikol.solis <at> ucr.ac.cr>,
 45511 <at> debbugs.gnu.org
Subject: Re: bug#45511: 27.1; Emacs crashes in gui_produce_glyphs when using a
 custom function for org-roam-insert
Date: Mon, 28 Dec 2020 15:30:59 -0600
[Message part 1 (text/plain, inline)]
Thanks Eli. I will install this version until 27.2 lands into the oficial
repo.

Your help is much appreciated.

Best.


On Mon, Dec 28, 2020, 13:29 Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Maikol Solís <maikol.solis <at> ucr.ac.cr>
> > Date: Mon, 28 Dec 2020 12:42:08 -0600
> > Cc: Maikol Solís <maikol.solis <at> ucr.ac.cr>,
> >       45511 <at> debbugs.gnu.org
> >
> > (gdb) bt
> > #0  0x00000000004693ed in gui_produce_glyphs (it=0x7ffd8df127a0) at
> xdisp.c:29925
> > #1  0x000000000044d632 in maybe_produce_line_number (it=it <at> entry=0x7ffd8df16260)
> at xdisp.c:22909
> > #2  0x000000000045a0ee in display_line (it=it <at> entry=0x7ffd8df16260,
> cursor_vpos=cursor_vpos <at> entry=1)
> > at xdisp.c:23161
> > #3  0x000000000045e00d in try_window (window=0x234d765, pos=...,
> flags=<optimized out>) at
> > xdisp.c:19182
>
> Thanks.  This is a duplicate of bug#44111, which is already fixed for
> the upcoming Emacs 27.2.  If you can find a binary of the pretest
> Emacs 27.1.90, you should see this problem gone there.
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 26 Jan 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.