From: Ari Roponen <ari.roponen@gmail.com>
To: emacs-devel@gnu.org
Subject: Recent Emacs crashes when started in console
Date: Thu, 10 Apr 2008 10:33:15 +0300 [thread overview]
Message-ID: <m3wsn6uptw.fsf@gmail.com> (raw)
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
next reply other threads:[~2008-04-10 7:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-10 7:33 Ari Roponen [this message]
-- 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3wsn6uptw.fsf@gmail.com \
--to=ari.roponen@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.