Andy,
Here it is. Just got around today to try a few times to make it
happen, sorry for taking so long.
Thanks for looking into this.
Tony
(gdb) b x_error_handler
Breakpoint 1 at 0x21952c
(gdb) run -sync
Starting program: /home/tonyl/loc/bin/xemacs-21.2-b46-2 -sync
Breakpoint 1, 0x21952c in x_error_handler ()
(gdb) where
#0 0x21952c in x_error_handler ()
#1 0xfefbc998 in _XError () from /usr/openwin/lib/libX11.so.4
#2 0xfef9c8c4 in _XReply () from /usr/openwin/lib/libX11.so.4
#3 0xfefa3a6c in XSync () from /usr/openwin/lib/libX11.so.4
#4 0xfefcdf5c in _XSyncFunction () from /usr/openwin/lib/libX11.so.4
#5 0x235e0c in x_clear_frame ()
#6 0x1cf3e8 in Fredisplay_echo_area ()
#7 0xb77fc in Ffuncall ()
#8 0x6a2c8 in execute_optimized_program ()
#9 0x69c14 in funcall_compiled_function ()
#10 0xb7cb8 in Ffuncall ()
#11 0x6a2c8 in execute_optimized_program ()
#12 0x69c14 in funcall_compiled_function ()
#13 0xb7cb8 in Ffuncall ()
#14 0xbc374 in call4 ()
#15 0x1af1d0 in echo_area_append ()
#16 0x5b6f4 in garbage_collect_1 ()
#17 0xb7238 in Ffuncall ()
#18 0xbc374 in call4 ()
#19 0x156814 in Fset_frame_properties ()
#20 0x151d20 in Fmake_frame ()
#21 0xb7828 in Ffuncall ()
#22 0x6a2c8 in execute_optimized_program ()
---Type <return> to continue, or q <return> to quit---
#23 0x69c14 in funcall_compiled_function ()
#24 0xb7cb8 in Ffuncall ()
#25 0x6a2c8 in execute_optimized_program ()
#26 0x69c14 in funcall_compiled_function ()
#27 0xb7cb8 in Ffuncall ()
#28 0x6a2c8 in execute_optimized_program ()
#29 0x6e738 in Fbyte_code ()
#30 0xb64b0 in Feval ()
#31 0x1a31e4 in readevalloop ()
#32 0x1a13ec in Fload_internal ()
#33 0xb78b0 in Ffuncall ()
#34 0x6a2c8 in execute_optimized_program ()
#35 0x69c14 in funcall_compiled_function ()
#36 0xb7cb8 in Ffuncall ()
#37 0x6a2c8 in execute_optimized_program ()
#38 0x69c14 in funcall_compiled_function ()
#39 0xb7cb8 in Ffuncall ()
#40 0x6a2c8 in execute_optimized_program ()
#41 0x6e738 in Fbyte_code ()
#42 0xb64b0 in Feval ()
#43 0x1a31e4 in readevalloop ()
#44 0x1a13ec in Fload_internal ()
#45 0xb78b0 in Ffuncall ()
---Type <return> to continue, or q <return> to quit---
#46 0x6a2c8 in execute_optimized_program ()
#47 0x69c14 in funcall_compiled_function ()
#48 0xb7cb8 in Ffuncall ()
#49 0x6a2c8 in execute_optimized_program ()
#50 0x69c14 in funcall_compiled_function ()
#51 0xb7cb8 in Ffuncall ()
#52 0x6a2c8 in execute_optimized_program ()
#53 0x6e738 in Fbyte_code ()
#54 0xb64b0 in Feval ()
#55 0xa25ac in condition_case_1 ()
#56 0xa4688 in condition_case_3 ()
#57 0x6b844 in execute_rare_opcode ()
#58 0x6a0d0 in execute_optimized_program ()
#59 0x69c14 in funcall_compiled_function ()
#60 0xb7cb8 in Ffuncall ()
#61 0x6a2c8 in execute_optimized_program ()
#62 0x69c14 in funcall_compiled_function ()
#63 0xb7cb8 in Ffuncall ()
#64 0x6a2c8 in execute_optimized_program ()
#65 0x69c14 in funcall_compiled_function ()
#66 0xb6a98 in Feval ()
#67 0xa25ac in condition_case_1 ()
#68 0x76ad0 in top_level_1 ()
---Type <return> to continue, or q <return> to quit---
#69 0xa1788 in internal_catch ()
#70 0x76c24 in initial_command_loop ()
#71 0x97b04 in xemacs_21_2_b46_sparc_sun_solaris2_6 ()
#72 0x98548 in main ()
(gdb)
=> On Apr 3, 2001, Andy Piper(A) wrote:
A> If we could fix this this migt fix the other X hangs we are seeing.
A> Could you try running XEmacs in gdb, putting a breakpoint in
A> x_error_handler and setting x-debug-mode to t in lisp and then
A> sending the resulting C backtrace when it fails.
A> Thanks
A> andy
A> At 09:34 AM 4/3/01 -0700, Tony Lam wrote:
> This bug report will be sent to the XEmacs Development Team,
> not to your local site managers!!
> Please write in English, because the XEmacs maintainers do not have
> translators to read other languages for them.
>
> In XEmacs 21.2 (beta46) "Urania" [Lucid] (sparc-sun-solaris2.8) of
> Mon Apr 2 2001 on philly
> configured using `configure --prefix=/home/tonyl/loc
> --with-prefix=no --with-gcc=no '--cflags=-v -xO4' --with-x
> --with-xpm
>
--x-includes=/net/pkg/export/pkg.sparc.sunos5/X11R6.4/include:/import/dream/tools/include
> '--site-includes=/import/dream/tools/include /usr/dt/include
> /net/pkg/export/pkg.sparc.sunos5/local/include/db'
> --x-libraries=/net/pkg/export/pkg.sparc.sunos5/X11R6.4/lib
> '--site-libraries=/usr/lib /usr/lib /import/dream/tools/lib
> /import/dream/tools/lib/X11 /usr/dt/lib
> /net/pkg/export/pkg.sparc.sunos5/local/lib'
> --with-database=berkdb,dbm --with-png --with-jpeg --with-tooltalk
> --with-workshop --with-cde --with-sparcworks=yes --with-xface
> --with-socks=no --with-mule=no --with-xfs=no
>
--site-runtime-libraries=/usr/ccs/lib:/import/dream/tools/lib:/import/dream/tools/lib/X11:/usr/dt/lib
> --error-checking=no --debug=yes --with-gtk=no'
>
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
>
> This has occurred quite frequently in v21.2-b4[56], with both CDE and
> GNome, XEmacs comes up and hangs immediately on creating a new frame.
>
> tonyl@philly> xemacs-21.2-b46
> xemacs-21.2-b46: X Error of failed request: BadWindow (invalid
> Window parameter)
> Major opcode of failed request: 61 (X_ClearArea)
> Resource id in failed request: 0x0
> Serial number of failed request: 1743
> Current serial number in output stream: 1743
>
> xemacs-21.2-b46: X Error of failed request: BadDrawable (invalid
> Pixmap or Window parameter)
> Major opcode of failed request: 70 (X_PolyFillRectangle)
> Resource id in failed request: 0x0
> Serial number of failed request: 1744
> Current serial number in output stream: 1816
>
> xemacs-21.2-b46: X Error of failed request: BadDrawable (invalid
> Pixmap or Window parameter)
> Major opcode of failed request: 70 (X_PolyFillRectangle)
> Resource id in failed request: 0x0
> Serial number of failed request: 1817
> Current serial number in output stream: 1841
>
>
> (gdb) where
> #0 0xfec98224 in _poll () from /usr/lib/libc.so.1
> #1 0xfec4b808 in select () from /usr/lib/libc.so.1
> #2 0xfee9b6cc in _XWaitForReadable () from /usr/lib/libX11.so.4
> #3 0xfee9b4e4 in _XRead () from /usr/lib/libX11.so.4
> #4 0xfee9c53c in _XReply () from /usr/lib/libX11.so.4
> #5 0xfeea782c in XGetWindowProperty () from /usr/lib/libX11.so.4
> #6 0x2275c4 in x_wm_hack_wm_protocols ()
> #7 0x22a0d0 in x_popup_frame ()
> #8 0x154204 in Fmake_frame ()
> #9 0xb73c8 in Ffuncall ()
> #10 0x69ea8 in execute_optimized_program ()
> #11 0x697f4 in funcall_compiled_function ()
> #12 0xb7858 in Ffuncall ()
> #13 0x69ea8 in execute_optimized_program ()
> #14 0x697f4 in funcall_compiled_function ()
> #15 0xb7858 in Ffuncall ()
> #16 0x69ea8 in execute_optimized_program ()
> #17 0x6e318 in Fbyte_code ()
> #18 0xb6050 in Feval ()
> #19 0x1a56ac in readevalloop ()
> #20 0x1a38b4 in Fload_internal ()
> #21 0xb7450 in Ffuncall ()
> #22 0x69ea8 in execute_optimized_program ()
> ---Type <return> to continue, or q <return> to quit---
> #23 0x697f4 in funcall_compiled_function ()
> #24 0xb7858 in Ffuncall ()
> #25 0x69ea8 in execute_optimized_program ()
> #26 0x697f4 in funcall_compiled_function ()
> #27 0xb7858 in Ffuncall ()
> #28 0x69ea8 in execute_optimized_program ()
> #29 0x6e318 in Fbyte_code ()
> #30 0xb6050 in Feval ()
> #31 0x1a56ac in readevalloop ()
> #32 0x1a38b4 in Fload_internal ()
> #33 0xb7450 in Ffuncall ()
> #34 0x69ea8 in execute_optimized_program ()
> #35 0x697f4 in funcall_compiled_function ()
> #36 0xb7858 in Ffuncall ()
> #37 0x69ea8 in execute_optimized_program ()
> #38 0x697f4 in funcall_compiled_function ()
> #39 0xb7858 in Ffuncall ()
> #40 0x69ea8 in execute_optimized_program ()
> #41 0x6e318 in Fbyte_code ()
> #42 0xb6050 in Feval ()
> #43 0xa214c in condition_case_1 ()
> #44 0xa4228 in condition_case_3 ()
> #45 0x6b424 in execute_rare_opcode ()
> ---Type <return> to continue, or q <return> to quit---
> #46 0x69cb0 in execute_optimized_program ()
> #47 0x697f4 in funcall_compiled_function ()
> #48 0xb7858 in Ffuncall ()
> #49 0x69ea8 in execute_optimized_program ()
> #50 0x697f4 in funcall_compiled_function ()
> #51 0xb7858 in Ffuncall ()
> #52 0x69ea8 in execute_optimized_program ()
> #53 0x697f4 in funcall_compiled_function ()
> #54 0xb6638 in Feval ()
> #55 0xa214c in condition_case_1 ()
> #56 0x766b4 in top_level_1 ()
> #57 0xa1328 in internal_catch ()
> #58 0x76808 in initial_command_loop ()
> #59 0x976a4 in xemacs_21_2_b46_sparc_sun_solaris2_8 ()
> #60 0x980e8 in main ()
> (gdb)
A> --
/tonyl