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

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

bug#27816: 26.0.50; X protocol error: BadPixmap (invalid Pixmap paramete


From: martin rudalics
Subject: bug#27816: 26.0.50; X protocol error: BadPixmap (invalid Pixmap parameter) on protocol request 55
Date: Sun, 06 Aug 2017 11:13:39 +0200

> I don't get the Xaw3dComputeTopShadowRGB in my backtrace like Martin does:
>
> Thread 1 "emacs" hit Breakpoint 3, x_error_quitter (display=0x2ea8ff0, 
event=0x7fffffff8df0)
>      at ../../emacs-master/src/xterm.c:9849
> 9849         if (event->error_code == BadName)
> (gdb) bt
> #0  0x000000000054b168 in x_error_quitter (display=0x2ea8ff0, 
event=0x7fffffff8df0)
>      at ../../emacs-master/src/xterm.c:9849
> #1  0x000000000054b148 in x_error_handler (display=0x2ea8ff0, 
event=0x7fffffff8df0)
>      at ../../emacs-master/src/xterm.c:9828
> #2  0x00007ffff66e36fd in _XError () at /usr/lib/libX11.so.6
> #3  0x00007ffff66e0627 in  () at /usr/lib/libX11.so.6
> #4  0x00007ffff66e06e5 in  () at /usr/lib/libX11.so.6
> #5  0x00007ffff66e15f8 in _XReply () at /usr/lib/libX11.so.6
> #6  0x00007ffff66dcfed in XSync () at /usr/lib/libX11.so.6
> #7  0x00007ffff66dd08b in  () at /usr/lib/libX11.so.6
> #8  0x00007ffff66c01da in XCreateGC () at /usr/lib/libX11.so.6
> #9  0x00007ffff7039d2c in XtAllocateGC () at /usr/lib/libXt.so.6
> #10 0x00007ffff74ce84a in  () at /usr/lib/libXaw.so.7
> #11 0x00007ffff74cecfc in  () at /usr/lib/libXaw.so.7
> #12 0x00007ffff703192c in  () at /usr/lib/libXt.so.6
> #13 0x00007ffff70322c8 in  () at /usr/lib/libXt.so.6
> #14 0x00007ffff7032718 in _XtCreateWidget () at /usr/lib/libXt.so.6
> #15 0x00007ffff70329fd in XtCreateWidget () at /usr/lib/libXt.so.6
> #16 0x0000000000542d6f in x_create_toolkit_scroll_bar (f=0x15c7c30 
<bss_sbrk_buffer+8094096>, bar=0x1351fa8 <bss_sbrk_buffer+5514504>) at 
../../emacs-master/src/xterm.c:6005
> #17 0x00000000005438e6 in x_scroll_bar_create (w=0x1676c30 
<bss_sbrk_buffer+8810896>, top=37, left=1, width=16, height=768, horizontal=false) 
at ../../emacs-master/src/xterm.c:6492

Maybe you should try calling ‘x-synchronize’ first.  Without that I can
get all sorts of things like, for example,

#0  x_error_quitter (display=0xe6dd60, event=0x7fffebd72bc0) at 
../../src/xterm.c:9855
#1  0x000000000054763f in x_error_handler (display=0xe6dd60, 
event=0x7fffebd72bc0) at ../../src/xterm.c:9828
#2  0x00007ffa6360729a in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007ffa636045c1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007ffa63604605 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffa63604e95 in _XEventsQueued () from 
/usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffa635f65ad in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x0000000000545aa4 in XTread_socket (terminal=0x1e23a38, 
hold_quit=0x7fffebd72e20) at ../../src/xterm.c:9055
#8  0x0000000000585ce8 in gobble_input () at ../../src/keyboard.c:6913
#9  0x00000000005861ff in handle_async_input () at ../../src/keyboard.c:7150
#10 0x000000000058621b in process_pending_signals () at 
../../src/keyboard.c:7164
#11 0x000000000058625a in unblock_input_to (level=0) at 
../../src/keyboard.c:7179
#12 0x000000000058627d in unblock_input () at ../../src/keyboard.c:7198
#13 0x000000000053fdc6 in x_scroll_bar_create (w=0x156c7d0, top=37, left=1, 
width=16, height=612, horizontal=false) at ../../src/xterm.c:6575
#14 0x00000000005405f4 in XTset_vertical_scroll_bar (w=0x156c7d0, portion=145, 
whole=145, position=0) at ../../src/xterm.c:6746
#15 0x000000000046b431 in set_vertical_scroll_bar (w=0x156c7d0) at 
../../src/xdisp.c:16352
#16 0x000000000046fabc in redisplay_window (window=..., just_this_one_p=false) 
at ../../src/xdisp.c:17506
#17 0x0000000000465a20 in redisplay_window_0 (window=...) at 
../../src/xdisp.c:14778
#18 0x000000000062e5f7 in internal_condition_case_1 (bfun=0x4659de 
<redisplay_window_0>, arg=..., handlers=..., hfun=0x4659a6 
<redisplay_window_error>) at ../../src/eval.c:1343
#19 0x000000000046597c in redisplay_windows (window=...) at 
../../src/xdisp.c:14758
#20 0x0000000000464373 in redisplay_internal () at ../../src/xdisp.c:14247
#21 0x000000000046505a in redisplay_preserve_echo_area (from_where=12) at 
../../src/xdisp.c:14577
#22 0x0000000000693238 in wait_reading_process_output (time_limit=30, nsecs=0, 
read_kbd=-1, do_display=true, wait_for_cell=..., wait_proc=0x0, 
just_wait_proc=0) at ../../src/process.c:5620
#23 0x000000000041e817 in sit_for (timeout=..., reading=true, display_option=1) 
at ../../src/dispnew.c:5763
#24 0x000000000057bcfc in read_char (commandflag=1, map=..., prev_event=..., 
used_mouse_menu=0x7fffebd778af, end_time=0x0) at ../../src/keyboard.c:2724
#25 0x000000000058b988 in read_key_sequence (keybuf=0x7fffebd77a50, bufsize=30, 
prompt=..., dont_downcase_last=false, can_return_switch_frame=true, 
fix_current_buffer=true, prevent_redisplay=false) at ../../src/keyboard.c:9151
#26 0x0000000000577dea in command_loop_1 () at ../../src/keyboard.c:1372
#27 0x000000000062e51d in internal_condition_case (bfun=0x5779ad <command_loop_1>, 
handlers=..., hfun=0x576fe0 <cmd_error>) at ../../src/eval.c:1319
#28 0x000000000057759e in command_loop_2 (ignore=...) at 
../../src/keyboard.c:1114
#29 0x000000000062da19 in internal_catch (tag=..., func=0x577575 
<command_loop_2>, arg=...) at ../../src/eval.c:1084
#30 0x0000000000577540 in command_loop () at ../../src/keyboard.c:1093
#31 0x0000000000576ae7 in recursive_edit_1 () at ../../src/keyboard.c:699
#32 0x0000000000576cce in Frecursive_edit () at ../../src/keyboard.c:770
#33 0x00000000005749d6 in main (argc=3, argv=0x7fffebd77f38) at 
../../src/emacs.c:1706

Lisp Backtrace:
"redisplay_internal (C function)" (0x0)

But with ‘x-synchronize’ I reliably get the Xaw3dComputeTopShadowRGB
bug.

BTW could you try this with a motif build?  Here this gets me the backtrace

#0  x_error_quitter (display=0x101b690, event=0x7fffaa9f2a60) at 
../../src/xterm.c:9855
#1  0x0000000000547477 in x_error_handler (display=0x101b690, 
event=0x7fffaa9f2a60) at ../../src/xterm.c:9828
#2  0x00007f502555429a in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007f50255515c1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007f5025551605 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007f50255521f8 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007f5025536e79 in XGetGeometry () from 
/usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007f502638cd41 in size_cascade (cascadebtn=cascadebtn@entry=0x1058230) 
at CascadeB.c:1851
#8  0x00007f502638d713 in Initialize (w_req=0x7fffaa9f2ee0, w_new=0x1058230, 
args=<optimized out>, num_args=<optimized out>) at CascadeB.c:2448
#9  0x00007f5025e99490 in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#10 0x00007f5025e99e5f in ?? () from /usr/lib/x86_64-linux-gnu/libXt.so.6
#11 0x00007f5025e9a2ab in _XtCreateWidget () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
#12 0x00007f5025e9a5ce in XtCreateWidget () from 
/usr/lib/x86_64-linux-gnu/libXt.so.6
#13 0x00000000006fd413 in make_menu_in_widget (instance=0xf3d6f0, 
widget=0x116cf10, val=0x114d2f0, keep_first_children=0) at 
../../lwlib/lwlib-Xm.c:599
#14 0x00000000006fd3ba in make_menu_in_widget (instance=0xf3d6f0, 
widget=0x110e890, val=0x1795990, keep_first_children=0) at 
../../lwlib/lwlib-Xm.c:597
#15 0x00000000006fdc33 in xm_update_menu (instance=0xf3d6f0, widget=0x110e890, 
val=0x1d1c5d0, deep_p=1 '\001') at ../../lwlib/lwlib-Xm.c:793
#16 0x00000000006fdf50 in xm_update_one_widget (instance=0xf3d6f0, 
widget=0x110e890, val=0x1d1c5d0, deep_p=1 '\001') at ../../lwlib/lwlib-Xm.c:879
#17 0x00000000006fb140 in set_one_value (instance=0xf3d6f0, val=0x1d1c5d0, 
deep_p=1 '\001') at ../../lwlib/lwlib.c:534
#18 0x00000000006fb193 in update_one_widget_instance (instance=0xf3d6f0, 
deep_p=1 '\001') at ../../lwlib/lwlib.c:554
#19 0x00000000006fb450 in initialize_widget_instance (instance=0xf3d6f0) at 
../../lwlib/lwlib.c:633
#20 0x00000000006fb804 in lw_make_widget (id=5, parent=0x7f5018032840, 
pop_up_p=0 '\000') at ../../lwlib/lwlib.c:771
#21 0x00000000006fb887 in lw_create_widget (type=0x70cb31 "menubar", name=0x70cb31 "menubar", id=5, 
val=0xf3f990, parent=0x7f5018032840, pop_up_p=0 '\000', pre_activate_cb=0x4aaf1f <popup_activate_callback>, 
selection_cb=0x4ab096 <menubar_selection_callback>, post_activate_cb=0x4aaf43 <popup_deactivate_callback>, 
highlight_cb=0x4ab031 <menu_highlight_callback>) at ../../lwlib/lwlib.c:786
#22 0x00000000004abe1d in set_frame_menubar (f=0x15ffe70, first_time=true, 
deep_p=true) at ../../src/xmenu.c:962
#23 0x00000000004abf56 in initialize_frame_menubar (f=0x15ffe70) at 
../../src/xmenu.c:1035
#24 0x000000000055846f in Fx_create_frame (parms=...) at ../../src/xfns.c:3969
#25 0x0000000000633056 in funcall_subr (subr=0x9b1838, numargs=1, 
args=0x7fffaa9f5b78) at ../../src/eval.c:2815
#26 0x0000000000632bb6 in Ffuncall (nargs=2, args=0x7fffaa9f5b70) at 
../../src/eval.c:2740
#27 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=1, args=0x7fffaa9f6320) at 
../../src/bytecode.c:629
#28 0x00000000006337da in funcall_lambda (fun=..., nargs=1, 
arg_vector=0x7fffaa9f6318) at ../../src/eval.c:2941
#29 0x0000000000632bfa in Ffuncall (nargs=2, args=0x7fffaa9f6310) at 
../../src/eval.c:2742
#30 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=1, args=0x7fffaa9f6c30) at 
../../src/bytecode.c:629
#31 0x00000000006337da in funcall_lambda (fun=..., nargs=1, 
arg_vector=0x7fffaa9f6c28) at ../../src/eval.c:2941
#32 0x0000000000632bfa in Ffuncall (nargs=2, args=0x7fffaa9f6c20) at 
../../src/eval.c:2742
#33 0x000000000063192b in Fapply (nargs=2, args=0x7fffaa9f6c20) at 
../../src/eval.c:2328
#34 0x0000000000632f61 in funcall_subr (subr=0xd5c0e8, numargs=2, 
args=0x7fffaa9f6c20) at ../../src/eval.c:2795
#35 0x0000000000632bb6 in Ffuncall (nargs=3, args=0x7fffaa9f6c18) at 
../../src/eval.c:2740
#36 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=1, args=0x7fffaa9f73d0) at 
../../src/bytecode.c:629
#37 0x00000000006337da in funcall_lambda (fun=..., nargs=1, 
arg_vector=0x7fffaa9f73d0) at ../../src/eval.c:2941
#38 0x0000000000632bfa in Ffuncall (nargs=2, args=0x7fffaa9f73c8) at 
../../src/eval.c:2742
#39 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=1, args=0x7fffaa9f7bf8) at 
../../src/bytecode.c:629
#40 0x00000000006337da in funcall_lambda (fun=..., nargs=1, 
arg_vector=0x7fffaa9f7bf0) at ../../src/eval.c:2941
#41 0x0000000000632bfa in Ffuncall (nargs=2, args=0x7fffaa9f7be8) at 
../../src/eval.c:2742
#42 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=2, args=0x7fffaa9f8358) at 
../../src/bytecode.c:629
#43 0x00000000006337da in funcall_lambda (fun=..., nargs=2, 
arg_vector=0x7fffaa9f8348) at ../../src/eval.c:2941
#44 0x0000000000632bfa in Ffuncall (nargs=3, args=0x7fffaa9f8340) at 
../../src/eval.c:2742
#45 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=5, args=0x7fffaa9f8ba0) at 
../../src/bytecode.c:629
#46 0x00000000006337da in funcall_lambda (fun=..., nargs=5, 
arg_vector=0x7fffaa9f8b78) at ../../src/eval.c:2941
#47 0x0000000000632bfa in Ffuncall (nargs=6, args=0x7fffaa9f8b70) at 
../../src/eval.c:2742
#48 0x0000000000683abe in exec_byte_code (bytestr=..., vector=..., 
maxdepth=..., args_template=..., nargs=2, args=0x7fffaa9f96c8) at 
../../src/bytecode.c:629
#49 0x00000000006337da in funcall_lambda (fun=..., nargs=2, 
arg_vector=0x7fffaa9f96b8) at ../../src/eval.c:2941
#50 0x0000000000632bfa in Ffuncall (nargs=3, args=0x7fffaa9f96b0) at 
../../src/eval.c:2742
#51 0x0000000000631e5d in Fapply (nargs=2, args=0x7fffaa9f97c0) at 
../../src/eval.c:2371
#52 0x00000000006324e3 in apply1 (fn=..., arg=...) at ../../src/eval.c:2587
#53 0x0000000000694106 in read_process_output_call (fun_and_args=...) at 
../../src/process.c:5786
#54 0x000000000062edb3 in internal_condition_case_1 (bfun=0x69407c 
<read_process_output_call>, arg=..., handlers=..., hfun=0x694108 
<read_process_output_error_handler>) at ../../src/eval.c:1343
#55 0x000000000069483f in read_and_dispose_of_process_output (p=0x15b98a0, 
chars=0x7fffaa9f9900 "-env SSH_AGENT_PID=3503 -env GLADE_PIXMAP_PATH=: -env 
TERM=xterm -env SHELL=/bin/bash -env XDG_MENU_PREFIX=xfce- -env 
XDG_SESSION_COOKIE=360407d161edb80c94a79fe552372b03-1502005113.99060-990150677 
-en"..., nbytes=2644, coding=0x1c09c50) at ../../src/process.c:5994
#56 0x0000000000694499 in read_process_output (proc=..., channel=8) at 
../../src/process.c:5905
#57 0x000000000069394c in wait_reading_process_output (time_limit=30, nsecs=0, 
read_kbd=-1, do_display=true, wait_for_cell=..., wait_proc=0x0, 
just_wait_proc=0) at ../../src/process.c:5604
#58 0x000000000041ee77 in sit_for (timeout=..., reading=true, display_option=1) 
at ../../src/dispnew.c:5763
#59 0x000000000057c3a8 in read_char (commandflag=1, map=..., prev_event=..., 
used_mouse_menu=0x7fffaa9fb38f, end_time=0x0) at ../../src/keyboard.c:2724
#60 0x000000000058c034 in read_key_sequence (keybuf=0x7fffaa9fb530, bufsize=30, 
prompt=..., dont_downcase_last=false, can_return_switch_frame=true, 
fix_current_buffer=true, prevent_redisplay=false) at ../../src/keyboard.c:9151
#61 0x0000000000578496 in command_loop_1 () at ../../src/keyboard.c:1372
#62 0x000000000062ecd9 in internal_condition_case (bfun=0x578059 <command_loop_1>, 
handlers=..., hfun=0x57768c <cmd_error>) at ../../src/eval.c:1319
#63 0x0000000000577c4a in command_loop_2 (ignore=...) at 
../../src/keyboard.c:1114
#64 0x000000000062e1d5 in internal_catch (tag=..., func=0x577c21 
<command_loop_2>, arg=...) at ../../src/eval.c:1084
#65 0x0000000000577bec in command_loop () at ../../src/keyboard.c:1093
#66 0x0000000000577193 in recursive_edit_1 () at ../../src/keyboard.c:699
#67 0x000000000057737a in Frecursive_edit () at ../../src/keyboard.c:770
#68 0x0000000000575082 in main (argc=3, argv=0x7fffaa9fba18) at 
../../src/emacs.c:1706

Lisp Backtrace:
"x-create-frame" (0xaa9f5b78)
"x-create-frame-with-faces" (0xaa9f6318)
0x1453a50 PVEC_COMPILED
"apply" (0xaa9f6c20)
"frame-creation-function" (0xaa9f73d0)
"make-frame" (0xaa9f7bf0)
"make-frame-on-display" (0xaa9f8348)
"server-create-window-system-frame" (0xaa9f8b78)
"server-process-filter" (0xaa9f96b8)
(gdb)

and the usual BadPixmap error.  So the bug behind all this is probably
neither scroll bar nor menu related after all.  I conjecture that
deleting the last GUI frame from a TTY started server messes up
something we do not initialize properly when invoking another GUI client
from it.  This conjecture is supported by the fact that when I leave a
client frame open and fire up a new terminal, I can invoke the client
from the new terminal as often as I want without any problems ...

martin






reply via email to

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