bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34256: 27.0.50; Crash on draw_glyphs()


From: Kaushal Modi
Subject: bug#34256: 27.0.50; Crash on draw_glyphs()
Date: Wed, 30 Jan 2019 13:22:01 -0500

On Wed, Jan 30, 2019 at 11:51 AM Eli Zaretskii <address@hidden> wrote:

I recommend always using these options when building the master
branch.

OK. Will do so.

> I'll work on getting a recipe.

Thanks.

Unfortunately, I couldn't create a recipe even with my whole emacs config.
I can recreate the issue only when I load the desktop session.

Here is the snippet of the .desktop file related to the buffer in which I can reproduce the crash consistently.

=====

(setq desktop-saved-frameset
      [frameset 1
                (23633 59565 276710 128000)
                (desktop . "208")
                "address@hidden" nil nil
                ((((minibuffer . t)
                   (undecorated)
                   (override-redirect)
                   (font-backend xft x)
                   (font . "-unknown-PragmataPro-normal-normal-normal-*-18-*-*-*-*-0-iso10646-1")
                   (font-parameter . "-unknown-PragmataPro-normal-normal-normal-*-18-*-*-*-*-0-iso10646-1")
                   (border-width . 0)
                   (internal-border-width . 0)
                   (right-divider-width . 1)
                   (bottom-divider-width . 0)
                   (vertical-scroll-bars)
                   (horizontal-scroll-bars)
                   (foreground-color . "#f7f7f7")
                   (background-color . "#282828")
                   (mouse-color . "black")
                   (border-color . "black")
                   (screen-gamma)
                   (line-spacing)
                   (left-fringe . 8)
                   (right-fringe . 8)
                   (no-special-glyphs)
                   (scroll-bar-foreground)
                   (scroll-bar-background)
                   (menu-bar-lines . 0)
                   (tool-bar-lines . 0)
                   (title)
                   (wait-for-wm . t)
                   (tool-bar-position . top)
                   (inhibit-double-buffering)
                   (icon-type . t)
                   (auto-raise)
                   (auto-lower)
                   (cursor-type . box)
                   (scroll-bar-width . 0)
                   (scroll-bar-height . 0)
                   (alpha)
                   (no-focus-on-map)
                   (no-accept-focus)
                   (fullscreen)
                   (visibility . t)
                   (skip-taskbar)
                   (z-group)
                   (display-type . color)
                   (background-mode . dark)
                   (cursor-color . "white")
                   (sticky)
                   (last-focus-update)
                   (frameset--id . "BE37-83AB-0DA7-C565")
                   (frameset--mini t . t)
                   (modeline . t)
                   (unsplittable)
                   (icon-name)
                   (display . ":1.0")
                   (explicit-name)
                   (fullscreen-restore)
                   (frameset--text-pixel-width . 2030)
                   (frameset--text-pixel-height . 1089)
                   (height . 54)
                   (width . 225)
                   (left . 0)
                   (top . 0))
                  ((min-height . 4)
                   (min-width . 10)
                   (min-height-ignore . 2)
                   (min-width-ignore . 4)
                   (min-height-safe . 1)
                   (min-width-safe . 2)
                   (min-pixel-height . 80)
                   (min-pixel-width . 90)
                   (min-pixel-height-ignore . 40)
                   (min-pixel-width-ignore . 36)
                   (min-pixel-height-safe . 20)
                   (min-pixel-width-safe . 18))
                  leaf
                  (pixel-width . 2046)
                  (pixel-height . 1069)
                  (total-width . 227)
                  (total-height . 53)
                  (normal-height . 1.0)
                  (normal-width . 1.0)
                  (buffer "emacs_27_0.desktop"
                          (selected . t)
                          (hscroll . 0)
                          (fringes 8 8 nil)
                          (margins nil)
                          (scroll-bars nil 0 t nil 0 t)
                          (vscroll . 0)
                          (dedicated)
                          (point . 45706)
                          (start . 42427))
                  (prev-buffers
                   ("emacs_27_0.desktop" 42647 45125)
                   ("init.el" 9884 10328)
                   ("rxdp_simple_test.sv" 1 1089))))])

...

(desktop-create-buffer 208
  "/home/kmodi/hugo/work_blog/content-org/work-posts.org"
  "work-posts.org"
  'org-mode
  '(auto-fill-mode abbrev-mode visual-line-mode eldoc-mode override-global-mode modi-mode beacon-mode hi-lock-mode volatile-highlights-mode hungry-delete-mode page-break-lines-mode undo-tree-mode wrap-region-mode writegood-mode diff-hl-mode org-indent-mode org-hugo-auto-export-mode projectile-mode hardcore-mode which-key-mode ivy-mode anzu-mode mode-line-space-mode)
  50848
  '(nil nil)
  nil
  nil
  '((indent-tabs-mode) (buffer-display-time 23633 59378 650447 18000) (buffer-file-coding-system . utf-8-unix) (fill-column . 70) (truncate-lines))
  '((mark-ring nil)))

=====

- I cannot reproduce the crash in an emacs -Q session using the same Org file, or even using my full unaltered config (except for commenting out desktop loading).

But now I have this detailed backtrace; hopefully it helps you spot the problem:

xdisp.c:26154: Emacs fatal error: assertion failed: s->img

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (address@hidden,
    address@hidden) at emacs.c:370
370     {
(gdb) bt
#0  terminate_due_to_signal (address@hidden, address@hidden) at emacs.c:370
#1  0x00000000005a1622 in die (address@hidden "s->img", address@hidden "xdisp.c", address@hidden) at alloc.c:7453
#2  0x00000000004378fe in fill_image_glyph_string (address@hidden) at xdisp.c:26154
#3  0x00000000004708cf in draw_glyphs (address@hidden, x=44, row=0x234ba50, address@hidden, start=<optimized out>, address@hidden, address@hidden, hl=DRAW_NORMAL_TEXT, overlaps=0)
    at xdisp.c:26841
#4  0x0000000000474bd2 in x_write_glyphs (w=0x13fa4e0, updated_row=<optimized out>, start=<optimized out>, updated_area=TEXT_AREA, len=6) at xdisp.c:29042
#5  0x000000000042244d in update_text_area (address@hidden, address@hidden, address@hidden) at dispnew.c:3613
#6  0x0000000000422fea in update_window_line (address@hidden, address@hidden, address@hidden) at dispnew.c:3856
#7  0x000000000042366e in update_window (address@hidden, address@hidden) at dispnew.c:3478
#8  0x00000000004238ab in update_window_tree (w=0x13fa4e0, address@hidden) at dispnew.c:3220
#9  0x000000000042389b in update_window_tree (address@hidden, address@hidden) at dispnew.c:3218
#10 0x00000000004259db in update_frame (address@hidden, force_p=true, address@hidden, address@hidden) at dispnew.c:3109
#11 0x000000000046cf22 in redisplay_internal () at xdisp.c:14521
#12 0x000000000046e493 in redisplay () at xdisp.c:13664
#13 0x000000000054451e in read_char (commandflag=0, map=..., address@hidden(0x418b203), prev_event=XIL(0x418b203), address@hidden, address@hidden)
    at keyboard.c:2462
#14 0x0000000000545f05 in read_key_sequence (address@hidden, prompt=..., address@hidden(0x2fd53a4), dont_downcase_last=<optimized out>,
    address@hidden, address@hidden, address@hidden) at keyboard.c:9082
#15 0x00000000005489be in read_key_sequence_vs (prompt=..., continue_echo=XIL(0), dont_downcase_last=..., can_return_switch_frame=XIL(0), cmd_loop=..., address@hidden)
    at keyboard.c:9777
#16 0x0000000000548a97 in Fread_key_sequence_vector (prompt=..., continue_echo=..., dont_downcase_last=..., can_return_switch_frame=..., cmd_loop=...) at keyboard.c:9858
#17 0x00000000005cf89c in funcall_subr (subr=0xcdd780 <Sread_key_sequence_vector>, address@hidden, address@hidden) at eval.c:2947
#18 0x00000000005cdc27 in Ffuncall (nargs=4, address@hidden) at eval.c:2860
#19 0x000000000060f0bb in exec_byte_code (bytestr=..., vector=..., address@hidden(0x7ffff31fe77d), maxdepth=..., address@hidden(14), args_template=...,
    address@hidden(256), address@hidden, args=<optimized out>, address@hidden) at bytecode.c:633
#20 0x00000000005d0e5b in funcall_lambda (address@hidden(0x7ffff31fe74d), address@hidden, address@hidden) at eval.c:3058
#21 0x00000000005cdd80 in Ffuncall (nargs=2, address@hidden) at eval.c:2862
#22 0x000000000060f0bb in exec_byte_code (bytestr=..., vector=..., address@hidden(0x7ffff319f95d), maxdepth=..., address@hidden(9), args_template=..., address@hidden(257),
    address@hidden, args=<optimized out>, address@hidden) at bytecode.c:633
#23 0x00000000005d0e5b in funcall_lambda (address@hidden(0x7ffff319f92d), address@hidden, address@hidden) at eval.c:3058
#24 0x00000000005cdd80 in Ffuncall (nargs=2, address@hidden) at eval.c:2862
#25 0x000000000060f0bb in exec_byte_code (bytestr=..., vector=..., address@hidden(0x604bd85), maxdepth=..., address@hidden(14), args_template=..., address@hidden(0),
    address@hidden, args=<optimized out>, address@hidden) at bytecode.c:633
#26 0x00000000005d0e5b in funcall_lambda (address@hidden(0x604bec5), address@hidden, address@hidden) at eval.c:3058
#27 0x00000000005cdd80 in Ffuncall (address@hidden, address@hidden) at eval.c:2862
#28 0x00000000005c91cb in Ffuncall_interactively (nargs=1, args=0x7fffffffa618) at callint.c:253
#29 0x00000000005cf71c in funcall_subr (subr=0xce4780 <Sfuncall_interactively>, address@hidden, address@hidden) at eval.c:2915
#30 0x00000000005cdc27 in Ffuncall (address@hidden, address@hidden) at eval.c:2860
#31 0x00000000005ce16c in Fapply (address@hidden, address@hidden) at eval.c:2433
#32 0x00000000005c9a0a in Fcall_interactively (function=..., record_flag=..., keys=...) at callint.c:340
#33 0x00000000005cf86a in funcall_subr (subr=0xce4740 <Scall_interactively>, address@hidden, address@hidden) at eval.c:2940#34 0x00000000005cdc27 in Ffuncall (nargs=4, address@hidden) at eval.c:2860
#35 0x000000000060f0bb in exec_byte_code (bytestr=..., vector=..., address@hidden(0x7ffff32a25a5), maxdepth=..., address@hidden(13), args_template=...,
    address@hidden(1025), address@hidden, args=<optimized out>, address@hidden) at bytecode.c:633
#36 0x00000000005d0e5b in funcall_lambda (address@hidden(0x7ffff32a2575), address@hidden, address@hidden) at eval.c:3058
#37 0x00000000005cdd80 in Ffuncall (address@hidden, address@hidden) at eval.c:2862
#38 0x00000000005ce041 in call1 (fn=..., address@hidden(0x4020), arg1=...) at eval.c:2711
#39 0x0000000000547999 in command_loop_1 () at keyboard.c:1462
#40 0x00000000005ccded in internal_condition_case (address@hidden <command_loop_1>, handlers=..., address@hidden(0x5490), address@hidden <cmd_error>) at eval.c:1376
#41 0x0000000000537c9a in command_loop_2 (ignore=..., address@hidden(0)) at keyboard.c:1090
#42 0x00000000005ccd35 in internal_catch (tag=..., address@hidden <command_loop_2>, arg=..., address@hidden(0)) at eval.c:1139
---Type <return> to continue, or q <return> to quit---
#43 0x000000000053addd in command_loop () at keyboard.c:1069
#44 0x000000000053bcff in recursive_edit_1 () at keyboard.c:714
#45 0x000000000053c061 in Frecursive_edit () at keyboard.c:785
#46 0x0000000000534efa in main (argc=1, argv=<optimized out>) at emacs.c:1949

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)
"read-key-sequence-vector" (0xffff9970)
"read-key" (0xffff9ca0)
"yes-or-no-p" (0xffffa0a0)
"vc-revert" (0xffffa620)
"funcall-interactively" (0xffffa618)
"call-interactively" (0xffffa750)
"command-execute" (0xffffaa78)
(gdb)

More Info:

- The Org file/buffer seen when this crash happens displays inline images.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]