unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1052: segfault when resuming emacsclient -t in an xterm
@ 2008-09-30 17:06 Chong Yidong
  2008-09-30 18:18 ` Dan Nicolaescu
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2008-09-30 17:06 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 1052

> The problem is that after the cited change
> `xterm-remove-modify-other-keys' calls `terminal-live-p' (it was
> previously using `frame-live-p') before calling
> `send-string-to-terminal'.
>
> `terminal-live-p' does not return false when tty->output is NULL --->
> KABOOM.

Looks like it's just a matter of checking tty->output, then.  WDYT?

*** trunk/src/dispnew.c.~1.419.~	2008-09-28 16:09:43.000000000 -0400
--- trunk/src/dispnew.c	2008-09-30 13:02:21.000000000 -0400
***************
*** 6470,6477 ****
        fwrite (SDATA (string), 1, SBYTES (string), tty->termscript);
        fflush (tty->termscript);
      }
!   fwrite (SDATA (string), 1, SBYTES (string), tty->output);
!   fflush (tty->output);
    UNBLOCK_INPUT;
    return Qnil;
  }
--- 6470,6480 ----
        fwrite (SDATA (string), 1, SBYTES (string), tty->termscript);
        fflush (tty->termscript);
      }
!   if (tty->output)
!     {
!       fwrite (SDATA (string), 1, SBYTES (string), tty->output);
!       fflush (tty->output);
!     }
    UNBLOCK_INPUT;
    return Qnil;
  }






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

end of thread, other threads:[~2008-10-01  0:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200810010036.m910aM6C018539@mothra.ics.uci.edu>
2008-09-29 17:46 ` bug#1052: segfault when resuming emacsclient -t in an xterm Dan Nicolaescu
2008-10-01  0:45   ` bug#1052: marked as done (segfault when resuming emacsclient -t in an xterm) Emacs bug Tracking System
2008-09-30 17:06 bug#1052: segfault when resuming emacsclient -t in an xterm Chong Yidong
2008-09-30 18:18 ` Dan Nicolaescu
2008-09-30 22:06   ` Stefan Monnier

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).