unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Recent Emacs crashes when started in console
@ 2008-04-10  7:33 Ari Roponen
  0 siblings, 0 replies; 2+ messages in thread
From: Ari Roponen @ 2008-04-10  7:33 UTC (permalink / raw)
  To: emacs-devel

Hi,

recent Emacs crashes when started in GNU/Linux console:

Program received signal SIGSEGV, Segmentation fault.
set_tty_color_mode (tty=0x8b7f1d8, f=0x8392c98) at term.c:2175
2175      tem = assq_no_quit (Qtty_color_mode, XFRAME (val)->param_alist);
(gdb) list
2170      int mode;
2171      extern Lisp_Object Qtty_color_mode;
2172      Lisp_Object tty_color_mode_alist
2173        = Fintern_soft (build_string ("tty-color-mode-alist"), Qnil);
2174    
2175      tem = assq_no_quit (Qtty_color_mode, XFRAME (val)->param_alist);
2176      val = CONSP (tem) ? XCDR (tem) : Qnil;
2177    
2178      if (INTEGERP (val))
2179        color_mode = val;
(gdb) quit


This patch seems to fix the problem:


diff --git a/src/term.c b/src/term.c
index f76d0a5..4e63568 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2172,7 +2172,7 @@ set_tty_color_mode (tty, f)
   Lisp_Object tty_color_mode_alist
     = Fintern_soft (build_string ("tty-color-mode-alist"), Qnil);
 
-  tem = assq_no_quit (Qtty_color_mode, XFRAME (val)->param_alist);
+  tem = assq_no_quit (Qtty_color_mode, f->param_alist);
   val = CONSP (tem) ? XCDR (tem) : Qnil;
 
   if (INTEGERP (val))


-- 
Ari Roponen




^ permalink raw reply related	[flat|nested] 2+ messages in thread
* Problems with Emacs (Cygwin)
@ 2008-04-09 21:37 Angelo Graziosi
  2008-04-10  1:32 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Graziosi @ 2008-04-09 21:37 UTC (permalink / raw)
  To: emacs-devel

The Cygwin build of Emacs-CVS-23.0.60 (a few hours ago) fails when 
started as

$ emacs -nw
Fatal error (11)Segmentation fault

Instead, it works if started as

$ emacs &

With CVS of less than 24 hours ago all works fine.


Could the cause be [1]?



Cheers,
    Angelo.
---
[1]
[...]
2008-04-09  Stefan Monnier  <...>
[...]

	* xdisp.c (redisplay_internal): Reset tty's color_mode when switching
	to another frame.
	* frame.c (do_switch_frame): Refine the top_frame/async_visible code.
	Don't call set_tty_color_mode.
	(store_frame_param): Reset previous_frame rather than call
	set_tty_color_mode.
	* term.c (set_tty_color_mode): Rewrite.
	* dispextern.h (set_tty_color_mode): New type.
	* termchar.h (struct tty_display_info): Add `previous_color_mode'.
[...]
---------------------------




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

end of thread, other threads:[~2008-04-10 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-10  7:33 Recent Emacs crashes when started in console Ari Roponen
  -- strict thread matches above, loose matches on Subject: below --
2008-04-09 21:37 Problems with Emacs (Cygwin) Angelo Graziosi
2008-04-10  1:32 ` Stefan Monnier
2008-04-10 23:46   ` Recent Emacs crashes when started in console Angelo Graziosi

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