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

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

bug#34096: 27.0.50; X protocol error: BadMatch (invalid parameter attrib


From: Toon Claes
Subject: bug#34096: 27.0.50; X protocol error: BadMatch (invalid parameter attributes) on protocol request 139
Date: Wed, 16 Jan 2019 08:42:29 +0100

Hi,

I have a problem similar to the known problem "Emacs compiled with GTK
crashes at startup due to X protocol error.". But mine is slightly
different:

- It does not happen on start, it seems to be happening when I open
  large buffer, but I'm not sure on that. Although it fairly
  reproducable, so I'm happy to help debug deeper.
- The workaround with XLIB_SKIP_ARGB_VISUALS=1 does not help.

I tried using x-toolkit GTK3 & Lucid. But it happens with both.

I could not generate a normal bug report, because emacs also crashes on
M-x report-emacs-bug.

I do have a few backtraces, see below.

It must be related to an upgrade of some dependency, cause I recently
did a `apt dist-upgrade` on my Debian Sid.

emacs -Q does crash as easy as when I load my config. But M-x
report-emacs-bug is one way to make emacs -Q crash, but in that case
getting a backtrace from GDB does not work.


-- Toon

***********
* Backtrace
***********

X protocol error: BadMatch (invalid parameter attributes) on protocol request 
139
Fatal error 6: Aborted
Thread 1 "emacs" received signal SIGABRT, Aborted.
0x00007ffff48ec50b in raise () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) bt
#0  0x00007ffff48ec50b in raise () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000004f2cc1 in terminate_due_to_signal (address@hidden, 
address@hidden) at ../../git/src/emacs.c:403
#2  0x000000000050cfb9 in emacs_abort () at ../../git/src/sysdep.c:2450
#3  0x0000000000456a2d in redisplay_internal () at ../../git/src/lisp.h:1278
#4  0x00000000004591ed in redisplay_preserve_echo_area (address@hidden) at 
../../git/src/xdisp.c:14790
#5  0x00000000005ae9e8 in Fdelete_process (process=0x4d369e5) at 
../../git/src/process.c:1090
#6  0x00000000005b6a15 in kill_buffer_processes (address@hidden) at 
../../git/src/process.c:7867
#7  0x00000000004f2b5b in shut_down_emacs (address@hidden, address@hidden) at 
../../git/src/lisp.h:948
#8  0x00000000004f2ced in terminate_due_to_signal (address@hidden, 
address@hidden) at ../../git/src/lisp.h:948
#9  0x000000000050cfb9 in emacs_abort () at ../../git/src/sysdep.c:2450
#10 0x00000000004f5fad in Fcommand_error_default_function (data=0x52d5f03, 
context=0x678484 <pure+36>, signal=0xaf280) at ../../git/src/lisp.h:948
#11 0x000000000056b041 in Ffuncall (address@hidden, address@hidden) at 
../../git/src/lisp.h:1988
#12 0x000000000056e35c in call3 (fn=<optimized out>, address@hidden, 
arg2=<optimized out>, address@hidden) at ../../git/src/eval.c:2723
#13 0x00000000004f87e4 in cmd_error_internal (address@hidden, address@hidden 
"") at ../../git/src/lisp.h:3665
#14 0x00000000004f8923 in cmd_error (data=0x52d5f03) at 
../../git/src/keyboard.c:950
#15 0x000000000056a14a in internal_condition_case (address@hidden 
<command_loop_1>, address@hidden, address@hidden <cmd_error>)
    at ../../git/src/eval.c:1368
#16 0x00000000004f3124 in command_loop_2 (address@hidden) at 
../../git/src/lisp.h:948
#17 0x000000000056a0a1 in internal_catch (address@hidden, address@hidden 
<command_loop_2>, address@hidden) at ../../git/src/eval.c:1135
#18 0x00000000004f30ab in command_loop () at ../../git/src/lisp.h:948
#19 0x00000000004f83a4 in recursive_edit_1 () at ../../git/src/keyboard.c:712
#20 0x00000000004f8720 in Frecursive_edit () at ../../git/src/keyboard.c:783
#21 0x0000000000416b01 in main (argc=<optimized out>,
argv=0x7fffffffe428) at ../../git/src/emacs.c:1722


***********
* Another backtrace
***********

X protocol error: BadMatch (invalid parameter attributes) on protocol request 
139


Thread 1 "emacs" received signal SIGINT, Interrupt.
0x00007ffff4656f50 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff4656f50 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff4657a14 in mcount () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x000000000056ce1a in maybe_quit () at ../../git/src/eval.c:1581
#3  0x000000000053fe41 in re_match_2_internal (bufp=0xa0df98 <searchbufs+1112>, 
string1=0x0, size1=0, string2=0x2a91278 
"~/devel/emacs/9fc02ff5ea95c31a8d81eabb5634aa135fcd8786/", size2=55, 
    pos=0, regs=0x0, stop=<optimized out>) at ../../git/src/regex-emacs.c:4654
#4  0x0000000000545ee1 in rpl_re_search_2 (bufp=<optimized out>, 
address@hidden, address@hidden, str2=<optimized out>, size2=<optimized out>, 
address@hidden, range=0, 
    regs=<optimized out>, stop=<optimized out>) at 
../../git/src/regex-emacs.c:3365
#5  0x0000000000546b55 in rpl_re_search (bufp=<optimized out>, 
string=<optimized out>, size=<optimized out>, address@hidden, range=<optimized 
out>, address@hidden)
    at ../../git/src/regex-emacs.c:3155
#6  0x000000000053ccc4 in fast_string_match_internal (regexp=<optimized out>, 
address@hidden, address@hidden) at ../../git/src/lisp.h:1507
#7  0x0000000000523754 in fast_string_match (string=0x2a9fe04, 
regexp=<optimized out>) at ../../git/src/lisp.h:4074
#8  Ffind_file_name_handler (address@hidden, address@hidden) at 
../../git/src/fileio.c:317
#9  0x0000000000525321 in Fexpand_file_name (address@hidden, 
default_directory=0x2a9fe04, address@hidden) at ../../git/src/lisp.h:948
#10 0x000000000052533e in Fexpand_file_name (name=0x91dd384, 
default_directory=0x2a9fe04, address@hidden) at ../../git/src/lisp.h:948
#11 0x00000000005266ad in Ffile_exists_p (filename=<optimized out>) at 
../../git/src/lisp.h:948
#12 0x000000000056b041 in Ffuncall (nargs=2, address@hidden) at 
../../git/src/lisp.h:1988
#13 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#14 0x000000000056daf4 in funcall_lambda (fun=0x4763bc8, address@hidden, 
arg_vector=0x7fffffff2b90, address@hidden) at ../../git/src/lisp.h:1731
#15 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#16 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#17 0x000000000056daf4 in funcall_lambda (fun=0x84b3e08, address@hidden, 
arg_vector=0x7fffffff2e30, address@hidden) at ../../git/src/lisp.h:1731
#18 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#19 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#20 0x000000000056daf4 in funcall_lambda (fun=0x3887d98, address@hidden, 
arg_vector=0x7fffffff3030, address@hidden) at ../../git/src/lisp.h:1731
#21 0x000000000056afbd in Ffuncall (nargs=6, address@hidden) at 
../../git/src/eval.c:2870
#22 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#23 0x000000000056daf4 in funcall_lambda (fun=0x3887ce8, address@hidden, 
arg_vector=0x7fffffff3368, address@hidden) at ../../git/src/lisp.h:1731
#24 0x000000000056afbd in Ffuncall (address@hidden, address@hidden) at 
../../git/src/eval.c:2870
#25 0x000000000056b310 in Fapply (nargs=4, args=0x7fffffff36c8) at 
../../git/src/eval.c:2476
#26 0x000000000056b041 in Ffuncall (nargs=5, address@hidden) at 
../../git/src/lisp.h:1988
#27 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#28 0x000000000056daf4 in funcall_lambda (fun=0x3887cc8, address@hidden, 
arg_vector=0x7fffffff36c0, address@hidden) at ../../git/src/lisp.h:1731
#29 0x000000000056afbd in Ffuncall (address@hidden, address@hidden) at 
../../git/src/eval.c:2870
#30 0x000000000056b39c in Fapply (nargs=6, args=0x7fffffff3978) at 
../../git/src/eval.c:2429
#31 0x000000000056b041 in Ffuncall (nargs=7, address@hidden) at 
../../git/src/lisp.h:1988
#32 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#33 0x000000000056daf4 in funcall_lambda (fun=0x3887c98, address@hidden, 
arg_vector=0x7fffffff3970, address@hidden) at ../../git/src/lisp.h:1731
#34 0x000000000056afbd in Ffuncall (nargs=3, address@hidden) at 
../../git/src/eval.c:2870
#35 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#36 0x000000000056daf4 in funcall_lambda (fun=0x84abe08, address@hidden, 
arg_vector=0x7fffffff3b60, address@hidden) at ../../git/src/lisp.h:1731
#37 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#38 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
--Type <RET> for more, q to quit, c to continue without paging--  
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#39 0x000000000056daf4 in funcall_lambda (fun=0x4ce8d18, address@hidden, 
arg_vector=0x7fffffff3d78, address@hidden) at ../../git/src/lisp.h:1731
#40 0x000000000056afbd in Ffuncall (nargs=3, address@hidden) at 
../../git/src/eval.c:2870
#41 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#42 0x000000000056daf4 in funcall_lambda (fun=0x4ce8e58, address@hidden, 
arg_vector=0x7fffffff3fa8, address@hidden) at ../../git/src/lisp.h:1731
#43 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#44 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#45 0x000000000056daf4 in funcall_lambda (fun=0x848bdf8, address@hidden, 
arg_vector=0x7fffffff41c0, address@hidden) at ../../git/src/lisp.h:1731
#46 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#47 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#48 0x000000000056daf4 in funcall_lambda (fun=0x33a3368, address@hidden, 
arg_vector=0x7fffffff43d8, address@hidden) at ../../git/src/lisp.h:1731
#49 0x000000000056afbd in Ffuncall (nargs=3, address@hidden) at 
../../git/src/eval.c:2870
#50 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#51 0x000000000056daf4 in funcall_lambda (fun=0x4ce90c8, address@hidden, 
arg_vector=0x7fffffff4630, address@hidden) at ../../git/src/lisp.h:1731
#52 0x000000000056afbd in Ffuncall (nargs=1, address@hidden) at 
../../git/src/eval.c:2870
#53 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#54 0x000000000056daf4 in funcall_lambda (fun=0x4ce8c48, address@hidden, 
arg_vector=0x7fffffff4858, address@hidden) at ../../git/src/lisp.h:1731
#55 0x000000000056afbd in Ffuncall (address@hidden, address@hidden) at 
../../git/src/eval.c:2870
#56 0x000000000056b3e2 in Fapply (nargs=2, args=0x7fffffff4b28) at 
../../git/src/eval.c:2433
#57 0x000000000056b041 in Ffuncall (nargs=3, address@hidden) at 
../../git/src/lisp.h:1988
#58 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, args_template=<optimized 
out>, address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#59 0x000000000056daf4 in funcall_lambda (fun=0x6899cb8, address@hidden, 
arg_vector=0x7fffffff4b20, address@hidden) at ../../git/src/lisp.h:1731
#60 0x000000000056afbd in Ffuncall (nargs=2, address@hidden) at 
../../git/src/eval.c:2870
#61 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, address@hidden, 
address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#62 0x000000000056db88 in funcall_lambda (fun=0x6c7e505, address@hidden, 
address@hidden) at ../../git/src/lisp.h:1731
#63 0x000000000056afbd in Ffuncall (nargs=1, address@hidden) at 
../../git/src/eval.c:2870
#64 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, address@hidden, 
address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#65 0x000000000056db88 in funcall_lambda (fun=0x639a115, address@hidden, 
address@hidden) at ../../git/src/lisp.h:1731
#66 0x000000000056afbd in Ffuncall (nargs=3, address@hidden) at 
../../git/src/eval.c:2870
#67 0x00000000005a86c0 in exec_byte_code (bytestr=<optimized out>, 
vector=<optimized out>, maxdepth=<optimized out>, address@hidden, 
address@hidden, 
    args=<optimized out>, address@hidden) at ../../git/src/bytecode.c:633
#68 0x000000000056db88 in funcall_lambda (fun=0x6729325, address@hidden, 
address@hidden) at ../../git/src/lisp.h:1731
#69 0x000000000056afbd in Ffuncall (nargs=1, args=0x7fffffff5488) at 
../../git/src/eval.c:2870
#70 0x000000000056b06f in funcall_nil (nargs=<optimized out>, args=<optimized 
out>) at ../../git/src/eval.c:2487
#71 0x000000000056a5cd in run_hook_with_args (nargs=1, args=0x7fffffff5488, 
funcall=0x56b060 <funcall_nil>) at ../../git/src/eval.c:2664
#72 0x000000000056a6f7 in Frun_hook_with_args (args=0x7fffffff5488, nargs=1) at 
../../git/src/eval.c:2677
#73 run_hook (hook=<optimized out>) at ../../git/src/eval.c:2677
#74 0x00000000004f2c45 in Fkill_emacs (address@hidden) at 
../../git/src/lisp.h:948
#75 0x00000000004c564e in x_connection_closed (address@hidden, 
error_message=<optimized out>, 
    address@hidden "X protocol error: BadMatch (invalid parameter attributes) 
on protocol request 139", address@hidden) at ../../git/src/lisp.h:1045
#76 0x00000000004c8163 in x_error_quitter (display=0x2ac1290, event=<optimized 
out>, event=<optimized out>) at ../../git/src/xterm.c:9962
--Type <RET> for more, q to quit, c to continue without paging--
#77 0x00000000004c81d9 in x_error_handler (event=0x7fffffff5820, 
display=<optimized out>) at ../../git/src/xterm.c:9932
#78 x_error_handler (display=0x2ac1290, event=0x7fffffff5820) at 
../../git/src/xterm.c:9919
#79 0x00007ffff681811a in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#80 0x00007ffff6815077 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#81 0x00007ffff681511d in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#82 0x00007ffff6816050 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#83 0x00007ffff681199d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#84 0x00000000004cdce1 in x_catch_errors_with_handler (address@hidden, 
address@hidden, address@hidden) at ../../git/src/xterm.c:9679
#85 0x00000000004cdd34 in x_catch_errors (address@hidden) at 
../../git/src/xterm.c:9692
#86 0x00000000005d7f65 in xfont_list_pattern (address@hidden, address@hidden 
"-CTDB-FuraCode Nerd Font Mono-*-*-*-*-*-*-*-*-*-*-iso10646-1", 
    address@hidden, address@hidden) at ../../git/src/xfont.c:328
#87 0x00000000005d8869 in xfont_list (f=<optimized out>, spec=0xaecf05 
<bss_sbrk_buffer+678533>) at ../../git/src/xfont.c:490
#88 0x0000000000583eb3 in font_list_entities (address@hidden 
<bss_sbrk_buffer+8251312>, address@hidden) at ../../git/src/font.c:2783
#89 0x00000000005847c8 in font_find_for_lface (address@hidden 
<bss_sbrk_buffer+8251312>, address@hidden, spec=<optimized out>, 
address@hidden) at ../../git/src/font.c:3274
#90 0x00000000005de978 in fontset_find_font (address@hidden, address@hidden, 
address@hidden, address@hidden, address@hidden)
    at ../../git/src/lisp.h:1731
#91 0x00000000005df18d in fontset_font (address@hidden, address@hidden, 
address@hidden, id=-1) at ../../git/src/fontset.c:756
#92 0x00000000005df588 in face_for_char (f=0x1225c30 <bss_sbrk_buffer+8251312>, 
address@hidden, c=233, pos=<optimized out>, object=<optimized out>) at 
../../git/src/fontset.c:986
#93 0x0000000000446443 in FACE_FOR_CHAR (object=<optimized out>, pos=<optimized 
out>, character=<optimized out>, face=0x56e1850, f=<optimized out>) at 
../../git/src/dispextern.h:1824
#94 get_next_display_element (address@hidden) at ../../git/src/xdisp.c:7338
#95 0x000000000044e04f in display_line (address@hidden, address@hidden) at 
../../git/src/xdisp.c:21615
#96 0x0000000000453649 in try_window (address@hidden <bss_sbrk_buffer+8255413>, 
pos=..., address@hidden) at ../../git/src/xdisp.c:17818
#97 0x0000000000467d75 in redisplay_window (window=0x1226c35 
<bss_sbrk_buffer+8255413>, address@hidden) at ../../git/src/xdisp.c:17265
#98 0x000000000046ab37 in redisplay_window_0 (address@hidden 
<bss_sbrk_buffer+8255413>) at ../../git/src/xdisp.c:14993
#99 0x000000000056a1ea in internal_condition_case_1 (address@hidden 
<redisplay_window_0>, address@hidden <bss_sbrk_buffer+8255413>, 
handlers=<optimized out>, 
    address@hidden <redisplay_window_error>) at ../../git/src/eval.c:1396
#100 0x00000000004313c4 in redisplay_windows (window=0x1226c35 
<bss_sbrk_buffer+8255413>) at ../../git/src/xdisp.c:14973
#101 0x00000000004570af in redisplay_internal () at ../../git/src/xdisp.c:14443
#102 0x0000000000459100 in redisplay () at ../../git/src/xdisp.c:13664
#103 0x00000000004fd26f in read_char (address@hidden, address@hidden, 
prev_event=0x0, address@hidden, 
    address@hidden) at ../../git/src/keyboard.c:2460
#104 0x00000000004ffe4d in read_key_sequence (address@hidden, address@hidden, 
address@hidden, 
    address@hidden, address@hidden, address@hidden)
    at ../../git/src/keyboard.c:9078
#105 0x000000000050170c in command_loop_1 () at ../../git/src/lisp.h:948
#106 0x000000000056a156 in internal_condition_case (address@hidden 
<command_loop_1>, address@hidden, address@hidden <cmd_error>)
    at ../../git/src/eval.c:1372
#107 0x00000000004f3124 in command_loop_2 (address@hidden) at 
../../git/src/lisp.h:948
#108 0x000000000056a0a1 in internal_catch (address@hidden, address@hidden 
<command_loop_2>, address@hidden) at ../../git/src/eval.c:1135
#109 0x00000000004f30ab in command_loop () at ../../git/src/lisp.h:948
#110 0x00000000004f83a4 in recursive_edit_1 () at ../../git/src/keyboard.c:712
#111 0x00000000004f8720 in Frecursive_edit () at ../../git/src/keyboard.c:783
#112 0x0000000000416b01 in main (argc=<optimized out>, argv=0x7fffffffe428) at 
../../git/src/emacs.c:1722





reply via email to

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