Subject: 23.0.60; make-frame-on-display segfaults

From: "Oscar Fuentes" <[email-masked]>
Date: Thu, 04 Dec 2008 19:05:23 +0100

Just after executing `make-frame-on-display', emacs segfaults. This is the gdb session:

Starting program: /home/oscar/dev/other/emacs/src/emacs -Q                        
[Thread debugging using libthread_db enabled]                                     
[New Thread 0x7fea5045b770 (LWP 19420)]                                           
Xlib:  extension "RANDR" missing on display "k7:0.0".                             
Locking assertion failure.  Backtrace:                                            
#0 /usr/lib/libxcb-xlib.so.0 [0x7fea49b1e9fc]                                     
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x17) [0x7fea49b1eb77]                 
#2 /usr/lib/libX11.so.6 [0x7fea4c6158c0]                                          
#3 /usr/lib/libX11.so.6(XFlush+0x12) [0x7fea4c5ee092]                             
#4 /usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0xd0) [0x7fea4fa1eb20]                                                                               
#5 /home/oscar/dev/other/emacs/src/emacs [0x4a1063]                               
#6 /home/oscar/dev/other/emacs/src/emacs [0x4a114e]                               
#7 /home/oscar/dev/other/emacs/src/emacs [0x4a1830]                               
#8 /home/oscar/dev/other/emacs/src/emacs [0x4a189d]                               
#9 /usr/lib/libX11.so.6(_XError+0xf4) [0x7fea4c60e784]                            
#10 /usr/lib/libX11.so.6(_XReply+0x243) [0x7fea4c616673]                          
#11 /usr/lib/libX11.so.6(XGetGeometry+0x8f) [0x7fea4c5f1cff]                      
#12 /usr/lib/libgdk-x11-2.0.so.0(gdk_pixmap_foreign_new_for_display+0xa0) [0x7fea4fa3eb60]                                                                          
#13 /usr/lib/gtk-2.0/2.10.0/engines/libqt4engine.so [0x7fea48cc979e]              
#14 /usr/lib/gtk-2.0/2.10.0/engines/libqt4engine.so [0x7fea48cc3021]              
#15 /usr/lib/libgtk-x11-2.0.so.0 [0x7fea4fd7b2fd]                                 
#16 /usr/lib/libgtk-x11-2.0.so.0 [0x7fea4fdb8908]                                 
#17 /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d) [0x7fea4dea825d]         
#18 /usr/lib/libgobject-2.0.so.0 [0x7fea4debdc3b]                                 
#19 /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x63a) [0x7fea4debf48a]     

(emacs:19420): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed                                                                    

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fea5045b770 (LWP 19420)]
0x000000000044753e in redisplay_internal (
    preserve_echo_area=<value optimized out>) at xdisp.c:11799
11799                 if (FRAME_TERMINAL (f)->judge_scroll_bars_hook)
(gdb) bt
#0  0x000000000044753e in redisplay_internal (
    preserve_echo_area=<value optimized out>) at xdisp.c:11799
#1  0x00000000004dfe98 in read_char (commandflag=1, nmaps=2,
    maps=0x7fff58488d60, prev_event=10919649, used_mouse_menu=0x7fff58488e74,
    end_time=0x0) at keyboard.c:3058
#2  0x00000000004e24cd in read_key_sequence (keybuf=0x7fff58488f00, bufsize=30,
    prompt=10919649, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:9340
#3  0x00000000004e4338 in command_loop_1 () at keyboard.c:1621
#4  0x0000000000545c9f in internal_condition_case (
    bfun=0x4e4120 <command_loop_1>, handlers=11006817, hfun=0x4dbf30 <cmd_error>)
    at eval.c:1511
#5  0x00000000004db38e in command_loop_2 () at keyboard.c:1338
#6  0x0000000000545db7 in internal_catch (tag=<value optimized out>,
    func=0x4db370 <command_loop_2>, arg=10919649) at eval.c:1247
#7  0x00000000004dbd68 in command_loop () at keyboard.c:1317
#8  0x00000000004dc17a in recursive_edit_1 () at keyboard.c:942
#9  0x00000000004dc2f4 in Frecursive_edit () at keyboard.c:1004
#10 0x00000000004d2037 in main (argc=2, argv=0x7fff58489718) at emacs.c:1777

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/oscar/dev/other/emacs/etc/DEBUG for instructions.

In GNU Emacs 23.0.60.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.14.4)
 of 2008-12-03 on qcore
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.