* 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
* Re: Recent Emacs crashes when started in console
2008-04-10 1:32 ` Stefan Monnier
@ 2008-04-10 23:46 ` Angelo Graziosi
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Graziosi @ 2008-04-10 23:46 UTC (permalink / raw)
To: emacs-devel; +Cc: ari.roponen
Ari Roponen wrote:
> 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);
This is exactly the same problem (seen on Cygwin) I flagged here [1,2].
The patch proposed
> diff --git a/src/term.c b/src/term.c
> [...]
solves the things also on Cygwin (though I was constrained to use
CVS-trunk of about 36 hours ago: the current fails bootstrapping, as
several posts, on this list, confirm).
Thanks,
Angelo
---
[1] http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg00727.html
[2] http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg00764.html
^ 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).