unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* seg fault on x-close-connection
@ 2006-09-08  5:20 Micheal Fria
  2006-09-08 15:12 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Micheal Fria @ 2006-09-08  5:20 UTC (permalink / raw)


I am running the CVS version

(emacs-version)
"GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.2)
of 2006-09-07 on mifrai"

When I open a frame on another display and I want to sever the x connection 
(eg. when I want to sever connections with an ssh connection) and I execute 
the comman x-close-connection -- emacs will seg fault.

Steps to reproduce:
1. Start emacs
2. ssh localhost -Y  (assuming you have X11Forwarding on and an ssh server 
running)
3. In emacs run: M-x make-frame-on-display <return> :10.0 <return>
4. Close the newly created frame
5. In emacs lisp run: (x-close-connection ":10.0")

This will result in a segmentation fault and has happened to me on a 
consistent basis.

I run ArchLinux with Xorg 7:

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.16-ARCH i686
Current Operating System: Linux mifrai 2.6.17-ARCH #1 SMP PREEMPT Thu Aug 24 
17:07:48 CEST 2006 i686
Build Date: 21 June 2006
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present


If any other necessary information is needed, let me know. Thanks.
- Micheal Frai

_________________________________________________________________
Got something to buy, sell or swap? Try Windows Live Expo  
ttp://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: seg fault on x-close-connection
  2006-09-08  5:20 seg fault on x-close-connection Micheal Fria
@ 2006-09-08 15:12 ` Richard Stallman
  2006-09-09  3:07   ` Micheal Fria
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2006-09-08 15:12 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    This will result in a segmentation fault and has happened to me on a 
    consistent basis.

Can you please debug the crash?  I can't try that test case myself.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: seg fault on x-close-connection
  2006-09-08 15:12 ` Richard Stallman
@ 2006-09-09  3:07   ` Micheal Fria
  0 siblings, 0 replies; 3+ messages in thread
From: Micheal Fria @ 2006-09-09  3:07 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Hey,

Sure thing. I should've done that in the first place. :) Let me know if you 
need anything else.

Thanks,
- Mike


gdb:
------

Using host libthread_db library "/lib/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib/libatk-1.0.so.0...done.
Loaded symbols for /usr/lib/libatk-1.0.so.0
Reading symbols from /usr/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/lib/libpango-1.0.so.0
Reading symbols from /usr/lib/libcairo.so.2...done.
Loaded symbols for /usr/lib/libcairo.so.2
Reading symbols from /usr/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /usr/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libungif.so.4...done.
Loaded symbols for /usr/lib/libungif.so.4
Reading symbols from /usr/lib/libXpm.so.4...done.
Loaded symbols for /usr/lib/libXpm.so.4
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXinerama.so.1...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXi.so.6...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from 
/usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
Reading symbols from 
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
Reading symbols from /usr/lib/pango/1.5.0/modules/pango-basic-fc.so...done.
Loaded symbols for /usr/lib/pango/1.5.0/modules/pango-basic-fc.so
Core was generated by `/usr/bin/emacs'.
Program terminated with signal 11, Segmentation fault.
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) backtrace
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb761b8b6 in kill () from /lib/libc.so.6
#2  0x080f3eed in fatal_error_signal (sig=11) at emacs.c:430
#3  <signal handler called>
#4  0x54415453 in ?? ()
#5  0xb7850f98 in _X11TransBytesReadable () from /usr/lib/libX11.so.6
#6  0xb78577c8 in _XEventsQueued () from /usr/lib/libX11.so.6
#7  0xb7843583 in XPending () from /usr/lib/libX11.so.6
#8  0xb7c0825d in gdk_check_xpending () from /usr/lib/libgdk-x11-2.0.so.0
#9  0xb7c08351 in gdk_event_prepare () from /usr/lib/libgdk-x11-2.0.so.0
#10 0xb7a2cd6d in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#11 0xb7a2d535 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#12 0xb7a2def3 in g_main_context_pending () from /usr/lib/libglib-2.0.so.0
#13 0xb7d75e21 in gtk_events_pending () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x080c7565 in XTread_socket (sd=0, expected=1, hold_quit=0xbfa4ecec) at 
xterm.c:7070
#15 0x080f9b9d in read_avail_input (expected=145413968) at keyboard.c:6788
#16 0x080f9d5a in handle_async_input () at keyboard.c:6934
#17 0x080d1e39 in Fx_close_connection (display=145707643) at xfns.c:4077
#18 0x08158443 in Feval (form=146229101) at eval.c:2324
#19 0x08158f27 in Ffuncall (nargs=2, args=0xbfa4ee50) at eval.c:2993
#20 0x081832b6 in Fbyte_code (bytestr=136603923, vector=136603940, 
maxdepth=64) at bytecode.c:679
#21 0x081589c4 in funcall_lambda (fun=136603884, nargs=1, 
arg_vector=0xbfa4ef84) at eval.c:3180
#22 0x08158ddb in Ffuncall (nargs=2, args=0xbfa4ef80) at eval.c:3050
#23 0x081832b6 in Fbyte_code (bytestr=136604419, vector=136604436, 
maxdepth=32) at bytecode.c:679
#24 0x081589c4 in funcall_lambda (fun=136604380, nargs=1, 
arg_vector=0xbfa4f0a4) at eval.c:3180
#25 0x08158ddb in Ffuncall (nargs=2, args=0xbfa4f0a0) at eval.c:3050
#26 0x081832b6 in Fbyte_code (bytestr=136602667, vector=136602684, 
maxdepth=16) at bytecode.c:679
#27 0x081589c4 in funcall_lambda (fun=136602636, nargs=0, 
arg_vector=0xbfa4f1c4) at eval.c:3180
#28 0x08158ddb in Ffuncall (nargs=1, args=0xbfa4f1c0) at eval.c:3050
#29 0x0815a7b9 in apply1 (fn=138125897, arg=137451721) at eval.c:2734
#30 0x08155f62 in Fcall_interactively (function=138125897, 
record_flag=137451721, keys=137492236) at callint.c:408
#31 0x080f7193 in Fcommand_execute (cmd=138125897, record_flag=137451721, 
keys=137451721, special=137451721) at keyboard.c:9842
#32 0x0810263a in command_loop_1 () at keyboard.c:1856
#33 0x081579fb in internal_condition_case (bfun=0x81022c0 <command_loop_1>, 
handlers=137496425, hfun=0x80fce00 <cmd_error>) at eval.c:1477
#34 0x080fc21e in command_loop_2 () at keyboard.c:1326
#35 0x08157abc in internal_catch (tag=137492633, func=0x80fc1f0 
<command_loop_2>, arg=137451721) at eval.c:1218
#36 0x080fcc4e in command_loop () at keyboard.c:1305
#37 0x080fcfd7 in recursive_edit_1 () at keyboard.c:1003
#38 0x080fd0cb in Frecursive_edit () at keyboard.c:1064
#39 0x080f3282 in main (argc=7, argv=0xbfa4fa94) at emacs.c:1794


>From: Richard Stallman <rms@gnu.org>
>Reply-To: rms@gnu.org
>To: "Micheal Fria" <mifrai@hotmail.com>
>CC: bug-gnu-emacs@gnu.org
>Subject: Re: seg fault on x-close-connection
>Date: Fri, 08 Sep 2006 11:12:11 -0400
>
>     This will result in a segmentation fault and has happened to me on a
>     consistent basis.
>
>Can you please debug the crash?  I can't try that test case myself.

_________________________________________________________________
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-09  3:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-08  5:20 seg fault on x-close-connection Micheal Fria
2006-09-08 15:12 ` Richard Stallman
2006-09-09  3:07   ` Micheal Fria

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).