Subject: bug#95: 23.0.60; Fatal error (11) using emacsclient

From: M G Berberich <[email-masked]>
Date: Sat, 29 Mar 2008 12:36:58 +0100

Hello,
If DISPLAY is set to “:0” emacs crashes with SIGSEGV (Segmentation
fault) when a “emacsclient -c“ session is finished.

This does not occur when “DISPLAY=:0.0” or emacsclient is called
without the “-c” Option.

sorry for not having debuging-information :(

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46949829168528 (LWP 15977)]
0x00002ab358bd8aba in XFreeGC () from /usr/lib/libX11.so.6
(gdb) where
#0  0x00002ab358bd8aba in XFreeGC () from /usr/lib/libX11.so.6
#1  0x00002ab358696978 in _gdk_x11_gc_new () from /usr/lib/libgdk-x11-2.0.so.0
#2  0x00002ab358dc5307 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#3  0x00002ab35867ea11 in _gdk_screen_close ()
   from /usr/lib/libgdk-x11-2.0.so.0
#4  0x00002ab358dc55f0 in g_object_run_dispose ()
   from /usr/lib/libgobject-2.0.so.0
#5  0x00002ab358688e77 in gdk_display_open () from /usr/lib/libgdk-x11-2.0.so.0
#6  0x00002ab358dc55f0 in g_object_run_dispose ()
   from /usr/lib/libgobject-2.0.so.0
#7  0x0000000000494d09 in ?? ()
#8  0x00000000004893ed in ?? ()
#9  0x0000000000420a83 in ?? ()
#10 0x0000000000545cba in re_compile_pattern ()
#11 0x000000000057055d in matherr ()
#12 0x00000000005457a7 in re_compile_pattern ()
#13 0x0000000000545b55 in re_compile_pattern ()
#14 0x000000000057055d in matherr ()
#15 0x00000000005457a7 in re_compile_pattern ()
#16 0x0000000000545b55 in re_compile_pattern ()
#17 0x000000000057055d in matherr ()
#18 0x00000000005457a7 in re_compile_pattern ()
#19 0x0000000000545b55 in re_compile_pattern ()
#20 0x000000000057055d in matherr ()
#21 0x00000000005457a7 in re_compile_pattern ()
#22 0x0000000000545b55 in re_compile_pattern ()
#23 0x0000000000542e32 in re_compile_pattern ()
#24 0x0000000000545cd3 in re_compile_pattern ()
#25 0x0000000000545f04 in re_compile_pattern ()
#26 0x00000000004e9224 in abort ()
#27 0x00000000005445d4 in re_compile_pattern ()
#28 0x00000000004e2c1a in abort ()
#29 0x00000000005446d7 in re_compile_pattern ()
#30 0x00000000004e3683 in abort ()
#31 0x00000000004e3a1c in abort ()
#32 0x00000000004e3b7e in abort ()
#33 0x00000000004d8593 in abort ()
#34 0x00002ab35a0584ca in __libc_start_main () from /lib/libc.so.6
#35 0x0000000000411eea in ?? ()
#36 0x00007fff5299d088 in ?? ()
#37 0x0000000000000000 in ?? ()

In GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2008-03-13 on luthien, modified by Debian
 (emacs-snapshot package, version 1:20080228-1)
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.60/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--enable-font-backend' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

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: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Apropos

Minor modes in effect:
  msb-mode: t
  tooltip-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-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> C-h a b u g <return> <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> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> 
<down-mouse-5> <mouse-5> <help-echo> <down-mouse-1> 
<mouse-1> <double-down-mouse-1> <mouse-movement> <mouse-movement> 
<double-drag-mouse-1> <down-mouse-1> <mouse-1> <double-down-mouse-1> 
<mouse-movement> <mouse-movement> <double-drag-mouse-1> 
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-1> 
<mouse-2> <help-echo> <help-echo> <help-echo> M-x e 
m <tab> a <tab> b u g <tab> <return> <help-echo> <help-echo> 
<help-echo> <down-mouse-1> <mouse-1> <return> <help-echo> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <right> r e p o r t - <return>

Recent messages:
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50festival.el (source)...done
Loading /etc/emacs/site-start.d/50post-el.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading calendar...done
Loading msb...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to remove help window.  
Type C-x 4 C-o RET to restore the other window.
Making completion list...