unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69287: 30.0.50; Pasting text from KDE clipboard sometimes crashes Emacs
@ 2024-02-20 14:59 David Ponce
  2024-02-20 16:22 ` David Ponce
  2024-02-21  1:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 8+ messages in thread
From: David Ponce @ 2024-02-20 14:59 UTC (permalink / raw)
  To: 69287

[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]

Hello,

While working in Emacs, I often paste text from the 'KDE clipboard popup
menu at mouse position' into the *scratch* buffer, and sometimes this
crashes Emacs, but not systematically.

Since a few days I run Emacs under GDB, and I managed to get the
attached backtrace.

Please, eventually let me know how I can help to get more useful details
when another crash will happen.

Thanks.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
  3.24.41, cairo version 1.18.0) of 2024-02-20
Repository revision: a1cbc4d810bc1b525fa46b23249b414c1ad6b031
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: Fedora Linux 39 (KDE Plasma)

Configured using:
  'configure --with-x-toolkit=gtk3 --with-cairo-xcb
  --with-native-compilation=no
  PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig'

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

Important settings:
   value of $LC_TIME: fr_FR.utf8
   value of $LANG: fr_FR.UTF-8
   locale-coding-system: utf-8-unix

[-- Attachment #2: emacs-crash-bt.txt --]
[-- Type: text/plain, Size: 4323 bytes --]

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
mark_interval_tree (i=0x60) at alloc.c:1537
1537      if (i && !interval_marked_p (i))
(gdb) bt
#0  mark_interval_tree (i=0x60) at alloc.c:1537
#1  0x00000000005b2589 in process_mark_stack (base_sp=0) at alloc.c:7246
#2  0x00000000005b2c4b in mark_object (obj=<optimized out>) at alloc.c:7476
#3  0x0000000000560dc8 in mark_kboards () at keyboard.c:14003
#4  0x00000000005b3490 in garbage_collect () at alloc.c:6594
#5  0x00000000005b4091 in maybe_garbage_collect () at alloc.c:6497
#6  0x00000000005d4f65 in maybe_gc () at ~/installs/emacs/src/lisp.h:5723
#7  Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fffffff7170) at eval.c:3017
#8  0x000000000044689a in funcall_with_backtraces (nargs=nargs@entry=3, args=args@entry=0x7fffffff7170) at xdisp.c:3081
#9  0x00000000005d3879 in internal_condition_case_n
    (bfun=bfun@entry=0x446870 <funcall_with_backtraces>, nargs=nargs@entry=3, args=args@entry=0x7fffffff7170, handlers=handlers@entry=XIL(0x30), hfun=hfun@entry=0x45a090 <dsafe_eval_handler>) at eval.c:1617
#10 0x0000000000447c53 in dsafe__call
    (inhibit_quit=inhibit_quit@entry=true, f=0x446870 <funcall_with_backtraces>, nargs=nargs@entry=3, args=args@entry=0x7fffffff7170)
    at xdisp.c:3067
#11 0x0000000000475650 in dsafe__call (args=0x7fffffff7170, nargs=3, f=<optimized out>, inhibit_quit=true) at xdisp.c:3056
#12 dsafe_eval (sexpr=<optimized out>) at xdisp.c:3103
#13 display_mode_element (it=it@entry=0x7fffffff7300, depth=2,
    depth@entry=1, field_width=0, precision=precision@entry=-10, elt=<optimized out>, props=props@entry=XIL(0), risky=false)
    at xdisp.c:27875
#14 0x0000000000475735 in display_mode_element (it=it@entry=0x7fffffff7300, depth=1,
    depth@entry=0, field_width=field_width@entry=-1, precision=precision@entry=-1, elt=<optimized out>,
    elt@entry=XIL(0x7ffff4ec06b3), props=props@entry=XIL(0), risky=false) at xdisp.c:27961
#15 0x0000000000476522 in gui_consider_frame_title (frame=XIL(0xfaabf5)) at xdisp.c:13826
#16 0x000000000048ddf3 in redisplay_window (window=<optimized out>, just_this_one_p=just_this_one_p@entry=false) at xdisp.c:21015
#17 0x000000000049165b in redisplay_window_0 (window=window@entry=XIL(0xedc1f5)) at xdisp.c:18011
#18 0x00000000005d3734 in internal_condition_case_1
    (bfun=bfun@entry=0x491630 <redisplay_window_0>, arg=arg@entry=XIL(0xedc1f5), handlers=<optimized out>, hfun=hfun@entry=0x44aec0 <redisplay_window_error>) at eval.c:1561
--Type <RET> for more, q to quit, c to continue without paging--
#19 0x0000000000447a15 in redisplay_windows (window=XIL(0xedc1f5)) at xdisp.c:17980
#20 0x000000000047a276 in redisplay_internal () at xdisp.c:17380
#21 0x000000000047b6a5 in redisplay () at xdisp.c:16561
#22 0x00000000005597db in read_char
    (commandflag=1, map=map@entry=XIL(0x1fa9803), prev_event=XIL(0), used_mouse_menu=used_mouse_menu@entry=0x7fffffffdbfb, end_time=end_time@entry=0x0) at keyboard.c:2685
#23 0x000000000055c028 in read_key_sequence
    (keybuf=keybuf@entry=0x7fffffffdd30, prompt=prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, disable_text_conversion_p=false) at keyboard.c:10706
#24 0x000000000055e196 in command_loop_1 () at keyboard.c:1427
#25 0x00000000005d36a7 in internal_condition_case
    (bfun=bfun@entry=0x55dfe0 <command_loop_1>, handlers=handlers@entry=XIL(0x90), hfun=hfun@entry=0x551700 <cmd_error>)
    at eval.c:1537
#26 0x0000000000549d7a in command_loop_2 (handlers=handlers@entry=XIL(0x90)) at keyboard.c:1166
#27 0x00000000005d3601 in internal_catch
    (tag=tag@entry=XIL(0x10830), func=func@entry=0x549d60 <command_loop_2>, arg=arg@entry=XIL(0x90)) at eval.c:1217
#28 0x0000000000549d1f in command_loop () at keyboard.c:1144
#29 0x00000000005512c3 in recursive_edit_1 () at keyboard.c:753
#30 0x000000000055162e in Frecursive_edit () at keyboard.c:836
#31 0x000000000042c70b in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:2624

Lisp Backtrace:
"Automatic GC" (0x0)
"eval" (0xffff7178)
"redisplay_internal (C function)" (0x0)
(gdb) xbacktrace
"Automatic GC" (0x0)
"eval" (0xffff7178)
"redisplay_internal (C function)" (0x0)
(gdb)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-22  9:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 14:59 bug#69287: 30.0.50; Pasting text from KDE clipboard sometimes crashes Emacs David Ponce
2024-02-20 16:22 ` David Ponce
2024-02-21  1:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-21  9:58   ` David Ponce
2024-02-21 11:34     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-21 15:31     ` Eli Zaretskii
2024-02-22  9:14       ` David Ponce
2024-02-21 12:34   ` Eli Zaretskii

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).