Article View: gnu.emacs.bug
Article #961core dump in x_io_error_handler
From: Eirik Fuller
Date: Tue, 26 Jan 1993 01:22
Date: Tue, 26 Jan 1993 01:22
35 lines
1627 bytes
1627 bytes
The enclosed patch cures a core dump in x_io_error_handler, in emacs
18.59 under SunOS 4.1.3. The core dump occurs with the command line
"emacs <&-" (assuming a suitable choice of shell, i.e. bash or sh).
This core dump occurs only when emacs is running as an X client.
*** x11term.c~ Sat Oct 24 00:31:56 1992
--- x11term.c Sat Jan 23 21:52:27 1993
***************
*** 2100,2121 ****
--- 2100,2123 ----
x_init_1 ()
{
#ifdef F_SETOWN
extern int old_fcntl_owner;
#endif
+ if (ConnectionNumber(XXdisplay) != 0) {
dup2 (ConnectionNumber(XXdisplay), 0);
#ifndef SYSV_STREAMS
/* Streams somehow keeps track of which descriptor number
is being used to talk to X. So it is not safe to substitute
descriptor 0. But it is safe to make descriptor 0 a copy of it. */
close (ConnectionNumber(XXdisplay));
ConnectionNumber(XXdisplay) = 0; /* Looks a little strange?
* check the def of the macro;
* it is a genuine lvalue */
#endif
+ }
#ifdef USG
setpgrp (); /* No arguments but equivalent in this case */
#else
setpgrp (0, getpid ());
#endif /* USG */
Technical Details
Message-ID:
<199301240304.AA02067@EARACHE.TC.CORNELL.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!elf.tn.cornell.edu!eirikShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!elf.tn.cornell.edu!eirik From: eirik@elf.tn.cornell.edu (Eirik Fuller) Newsgroups: gnu.emacs.bug Subject: core dump in x_io_error_handler Date: 25 Jan 1993 20:22:12 -0500 Organization: GNUs Not Usenet Lines: 36 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <199301240304.AA02067@EARACHE.TC.CORNELL.EDU>