all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problems with Emacs (Cygwin)
@ 2008-04-09 21:37 Angelo Graziosi
  2008-04-10  1:32 ` Stefan Monnier
  0 siblings, 1 reply; 6+ 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] 6+ messages in thread

* Re: Problems with Emacs (Cygwin)
  2008-04-09 21:37 Problems with Emacs (Cygwin) Angelo Graziosi
@ 2008-04-10  1:32 ` Stefan Monnier
  2008-04-10  8:10   ` Angelo Graziosi
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Monnier @ 2008-04-10  1:32 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: emacs-devel

> The Cygwin build of Emacs-CVS-23.0.60 (a few hours ago) fails when started
> $ 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]?

Could be.  But we need more info to figure it out.
E.g. a backtrace?


        Stefan




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

* Recent Emacs crashes when started in console
@ 2008-04-10  7:33 Ari Roponen
  0 siblings, 0 replies; 6+ 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] 6+ messages in thread

* Re: Problems with Emacs (Cygwin)
  2008-04-10  1:32 ` Stefan Monnier
@ 2008-04-10  8:10   ` Angelo Graziosi
  2008-04-10  8:33   ` Angelo Graziosi
  2008-04-10 23:46   ` Recent Emacs crashes when started in console Angelo Graziosi
  2 siblings, 0 replies; 6+ messages in thread
From: Angelo Graziosi @ 2008-04-10  8:10 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier ha scritto:
>> The Cygwin build of Emacs-CVS-23.0.60 (a few hours ago) fails when started
>> $ 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]?
> 
> Could be.  But we need more info to figure it out.
> E.g. a backtrace?
> 
> 
>         Stefan
> 

(You should consider I am not an expert of GDB...)

At [1] bt.

Cheers,
    Angelo.

---
[1] (Trying)Using GDB:
(gdb) emacs

(gdb) r -nw
Starting program: /usr/local/bin/emacs -nw
[New thread 2536.0x98c]
[New thread 2536.0x990]

Program received signal SIGSEGV, Segmentation fault.
set_tty_color_mode (tty=0x7d8600, f=0x736800)
     at /tmp.builds/emacs-23.0.60/src/term.c:2175
2175      tem = assq_no_quit (Qtty_color_mode, XFRAME (val)->param_alist);
(gdb)

(gdb) bt
#0  set_tty_color_mode (tty=0x7d8600, f=0x736800)
     at /tmp.builds/emacs-23.0.60/src/term.c:2175
#1  0x004340a1 in redisplay_internal (
     preserve_echo_area=<value optimized out>)
     at /tmp.builds/emacs-23.0.60/src/xdisp.c:11192
#2  0x00434e3d in echo_area_display (update_frame_p=1)
     at /tmp.builds/emacs-23.0.60/src/xdisp.c:9007
#3  0x004350f0 in message3_nolog (m=18390563, nbytes=111, multibyte=0)
     at /tmp.builds/emacs-23.0.60/src/xdisp.c:7871
#4  0x004352f0 in message3 (m=18390563, nbytes=111, multibyte=0)
     at /tmp.builds/emacs-23.0.60/src/xdisp.c:7806
#5  0x00519fef in Fmessage (nargs=2, args=0x22c2a4)
     at /tmp.builds/emacs-23.0.60/src/editfns.c:3381
#6  0x0052acb9 in Fy_or_n_p (prompt=18390707)
     at /tmp.builds/emacs-23.0.60/src/fns.c:2640
#7  0x0051e43c in Ffuncall (nargs=2, args=0x22c340)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3025
#8  0x00549108 in Fbyte_code (bytestr=8328531, vector=11433988,
     maxdepth=<value optimized out>)
     at /tmp.builds/emacs-23.0.60/src/bytecode.c:679
#9  0x00520163 in funcall_lambda (fun=10073028, nargs=0, 
arg_vector=0x22c494)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3212
#10 0x0051e150 in Ffuncall (nargs=1, args=0x22c490)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3082
---Type <return> to continue, or q <return> to quit---
#11 0x00549108 in Fbyte_code (bytestr=18373971, vector=8482436,
     maxdepth=<value optimized out>)
     at /tmp.builds/emacs-23.0.60/src/bytecode.c:679
#12 0x00520163 in funcall_lambda (fun=10201092, nargs=0, 
arg_vector=0x22c5fc)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3212
#13 0x0051e150 in Ffuncall (nargs=1, args=0x22c5f8)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3082
#14 0x0051f421 in run_hook_with_args (nargs=1, args=0x22c5f8,
     cond=to_completion) at /tmp.builds/emacs-23.0.60/src/eval.c:2684
#15 0x0051f5cf in Frun_hooks (nargs=1, args=0x22c694)
     at /tmp.builds/emacs-23.0.60/src/eval.c:2547
#16 0x0051e2c6 in Ffuncall (nargs=2, args=0x22c690)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3006
#17 0x00549108 in Fbyte_code (bytestr=6022755, vector=6022772,
     maxdepth=<value optimized out>)
     at /tmp.builds/emacs-23.0.60/src/bytecode.c:679
#18 0x00520163 in funcall_lambda (fun=6022732, nargs=0, arg_vector=0x22c7d4)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3212
#19 0x0051e150 in Ffuncall (nargs=1, args=0x22c7d0)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3082
#20 0x00549108 in Fbyte_code (bytestr=6019467, vector=6019484,
     maxdepth=<value optimized out>)
     at /tmp.builds/emacs-23.0.60/src/bytecode.c:679
#21 0x00520163 in funcall_lambda (fun=6019444, nargs=0, arg_vector=0x22c8a0)
---Type <return> to continue, or q <return> to quit---
     at /tmp.builds/emacs-23.0.60/src/eval.c:3212
#22 0x00520364 in apply_lambda (fun=6019444, args=7407617, eval_flag=1)
     at /tmp.builds/emacs-23.0.60/src/eval.c:3136
#23 0x0051fa24 in Feval (form=8272445)
     at /tmp.builds/emacs-23.0.60/src/eval.c:2416
#24 0x004bac73 in top_level_2 ()
     at /tmp.builds/emacs-23.0.60/src/keyboard.c:1383
#25 0x0051d790 in internal_condition_case (bfun=0x4bac60 <top_level_2>,
     handlers=7491753, hfun=0x4be4b0 <cmd_error>)
     at /tmp.builds/emacs-23.0.60/src/eval.c:1494
#26 0x004bd91d in top_level_1 ()
     at /tmp.builds/emacs-23.0.60/src/keyboard.c:1391
#27 0x0051d86a in internal_catch (tag=7487825, func=0x4bd8d0 <top_level_1>,
     arg=7407617) at /tmp.builds/emacs-23.0.60/src/eval.c:1230
#28 0x004be2f0 in command_loop ()
     at /tmp.builds/emacs-23.0.60/src/keyboard.c:1346
#29 0x004be67b in recursive_edit_1 ()
     at /tmp.builds/emacs-23.0.60/src/keyboard.c:962
#30 0x004be7b1 in Frecursive_edit ()
     at /tmp.builds/emacs-23.0.60/src/keyboard.c:1024
#31 0x004b43a5 in main (argc=2, argv=0x737300)
     at /tmp.builds/emacs-23.0.60/src/emacs.c:1784
(gdb)





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

* Re: Problems with Emacs (Cygwin)
  2008-04-10  1:32 ` Stefan Monnier
  2008-04-10  8:10   ` Angelo Graziosi
@ 2008-04-10  8:33   ` Angelo Graziosi
  2008-04-10 23:46   ` Recent Emacs crashes when started in console Angelo Graziosi
  2 siblings, 0 replies; 6+ messages in thread
From: Angelo Graziosi @ 2008-04-10  8:33 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier ha scritto:
>> The Cygwin build of Emacs-CVS-23.0.60 (a few hours ago) fails when started
>> $ 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]?
> 
> Could be.  But we need more info to figure it out.
> E.g. a backtrace?
> 
> 
>         Stefan
> 

I think that the problem I described here [1] and here [2] is related to 
what I read here [3] and so on.

Cheers,
    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
[3] http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg00745.html




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

* Re: Recent Emacs crashes when started in console
  2008-04-10  1:32 ` Stefan Monnier
  2008-04-10  8:10   ` Angelo Graziosi
  2008-04-10  8:33   ` Angelo Graziosi
@ 2008-04-10 23:46   ` Angelo Graziosi
  2 siblings, 0 replies; 6+ 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] 6+ messages in thread

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

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

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.