unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* file-coding-system-alist and shell endless loop problem
@ 2007-05-16  6:39 William Xu
  0 siblings, 0 replies; 10+ messages in thread
From: William Xu @ 2007-05-16  6:39 UTC (permalink / raw)
  To: emacs-devel

Hi all,

I find that `M-x shell' would end in some endless loop when
`file-coding-system-alist' has been set to something like

,----
| (setq file-coding-system-alist
|       '(("\\.dz\\'" no-conversion . no-conversion)
| 	("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . no-conversion)
| 	;; [...]
| 	("" utf-8 . utf-8)))
`----

namely, set the default coding system for file I/O operation to
utf-8.

If i replace it with some other values, like undecided(the default
value), gb2312, etc. It has no such problem.

Emacs is built from cvs 20070515.


        William

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

* file-coding-system-alist and shell endless loop problem
@ 2007-05-16  6:44 William Xu
  2007-05-16  6:54 ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: William Xu @ 2007-05-16  6:44 UTC (permalink / raw)
  To: emacs-devel

Hi all,

I find that `M-x shell' would end in some endless loop when
`file-coding-system-alist' has been set to something like

,----
| (setq file-coding-system-alist
|       '(("\\.dz\\'" no-conversion . no-conversion)
| 	("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . no-conversion)
| 	;; [...]
| 	("" utf-8 . utf-8)))
`----

namely, set the default coding system for file I/O operation to
utf-8.

If i replace it with some other values, like undecided(the default
value), gb2312, etc. It has no such problem.

Emacs is built from cvs 20070515.


        William

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  6:44 file-coding-system-alist and shell endless loop problem William Xu
@ 2007-05-16  6:54 ` Kenichi Handa
  2007-05-16  7:13   ` William Xu
  0 siblings, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2007-05-16  6:54 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

In article <87sl9x469j.fsf@www.williamxu.com>, William Xu <william.xwl@gmail.com> writes:

> I find that `M-x shell' would end in some endless loop when
> `file-coding-system-alist' has been set to something like

> ,----
> | (setq file-coding-system-alist
> |       '(("\\.dz\\'" no-conversion . no-conversion)
> | 	("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . no-conversion)
> | 	;; [...]
> | 	("" utf-8 . utf-8)))
> `----

> namely, set the default coding system for file I/O operation to
> utf-8.

I can't reproduced that problem.  Could you please use M-x
report-emacs-bug RET to report the bug?  That command
inserts many useful information in *mail* buffer.  It may be
ok to change the To: address to emacs-devel@gnu.org by hand.

---
Kenichi Handa
handa@m17n.org

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  6:54 ` Kenichi Handa
@ 2007-05-16  7:13   ` William Xu
  2007-05-16  8:00     ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: William Xu @ 2007-05-16  7:13 UTC (permalink / raw)
  To: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

   I can't reproduced that problem.  Could you please use M-x
   report-emacs-bug RET to report the bug?  That command
   inserts many useful information in *mail* buffer.  

I'd rather post via newsgroup. Or i'll have to subscribe to
report-emacs-bug first? 

Below is the buffer info when invoking report-emacs-bug. Emacs is
started by `emacs -Q'.

---------------------------------8<------------------------------------- 
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/william/share/emacs/22.1.50/etc/DEBUG for instructions.


In GNU Emacs 22.1.50.6 (powerpc-unknown-linux-gnu)
 of 2007-05-15 on think-different
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--prefix=/home/william''

Important settings:
  value of $LC_ALL: zh_CN.utf-8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: zh_CN.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
M-x s h e l <return> C-x b <return> C-y M-< C-n C-n 
C-n C-k C-n C-p C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-n C-n C-n C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k 
C-k C-k C-k C-k C-k C-k C-e C-n C-p C-e C-a M-m C-d 
C-d C-d C-e C-n C-x C-e M-x s h e l l <return> C-x 
C-k <C-return> C-x k <return> M-x s h e l l <return> 
C-g C-g C-x k <return> M-x e C-a C-k e m a c s - r 
e p o <tab> C-a C-k r e p o r t - e m a <tab> <ret
urn>

Recent messages:
Loading subst-gb2312...done
For information about the GNU Project and its goals, type C-h C-p.
Loading shell...done
Mark set [2 times]
(("\\.dz\\'" no-conversion . no-conversion) ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" no-conversion . no-conversion) ("\\.utf\\(-8\\)?\\'" . utf-8) ("\\(\\`\\|/\\)loaddefs.el\\'" raw-text . raw-text-unix) ("\\.tar\\'" no-conversion . no-conversion) ("" utf-8 . utf-8))
Loading kmacro...done
Quit [3 times]
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
---------------------------------8<------------------------------------- 

        William

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  7:13   ` William Xu
@ 2007-05-16  8:00     ` Kenichi Handa
  2007-05-16  8:23       ` William Xu
  2007-05-16  8:23       ` William Xu
  0 siblings, 2 replies; 10+ messages in thread
From: Kenichi Handa @ 2007-05-16  8:00 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

In article <87abw544wy.fsf@www.williamxu.com>, William Xu <william.xwl@gmail.com> writes:

> In GNU Emacs 22.1.50.6 (powerpc-unknown-linux-gnu)
>  of 2007-05-15 on think-different
> Windowing system distributor `The X.Org Foundation', version 11.0.10300000
> configured using `configure  '--prefix=/home/william''

> Important settings:
>   value of $LC_ALL: zh_CN.utf-8
>   value of $LC_COLLATE: nil
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: zh_CN.UTF-8
>   locale-coding-system: utf-8
>   default-enable-multibyte-characters: t

I tried with that same locale, but still couldn't reproduce
the problem.  It may be a powerpc-specific problem.  Can
someone else using Emacs on that platform reproduced it?

By the way, you wrote:

> I find that `M-x shell' would end in some endless loop when
> `file-coding-system-alist' has been set to something like

Please do M-x toggle-debug-on-quit RET, and the M-x shell.
Does Emacs react on C-g when it seems to be in endless loop?
If so, what is shown in *Backtrace* buffer?

---
Kenichi Handa
handa@m17n.org

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  8:00     ` Kenichi Handa
@ 2007-05-16  8:23       ` William Xu
  2007-05-16  8:23       ` William Xu
  1 sibling, 0 replies; 10+ messages in thread
From: William Xu @ 2007-05-16  8:23 UTC (permalink / raw)
  To: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

   By the way, you wrote:

   > I find that `M-x shell' would end in some endless loop when
   > `file-coding-system-alist' has been set to something like

   Please do M-x toggle-debug-on-quit RET, and the M-x shell.
   Does Emacs react on C-g when it seems to be in endless loop?

Yes.

   If so, what is shown in *Backtrace* buffer?

Nothing ! It doesn't even create a *Backtrace* buffer. Just display
"Quit" in the minibuffer. But *shell* buffer itself gets created
successfully at the same time.


        William

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  8:00     ` Kenichi Handa
  2007-05-16  8:23       ` William Xu
@ 2007-05-16  8:23       ` William Xu
  2007-05-16 17:44         ` Eli Zaretskii
  2007-05-17  1:08         ` Kenichi Handa
  1 sibling, 2 replies; 10+ messages in thread
From: William Xu @ 2007-05-16  8:23 UTC (permalink / raw)
  To: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

   By the way, you wrote:

   > I find that `M-x shell' would end in some endless loop when
   > `file-coding-system-alist' has been set to something like

   Please do M-x toggle-debug-on-quit RET, and the M-x shell.
   Does Emacs react on C-g when it seems to be in endless loop?

Yes.

   If so, what is shown in *Backtrace* buffer?

Nothing ! It doesn't even create a *Backtrace* buffer. Just display
"Quit" in the minibuffer. But *shell* buffer itself gets created
successfully at the same time.


        William

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  8:23       ` William Xu
@ 2007-05-16 17:44         ` Eli Zaretskii
  2007-05-17  1:08         ` Kenichi Handa
  1 sibling, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2007-05-16 17:44 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

> From: William Xu <william.xwl@gmail.com>
> Date: Wed, 16 May 2007 16:23:32 +0800
> 
>    Does Emacs react on C-g when it seems to be in endless loop?
> 
> Yes.
> 
>    If so, what is shown in *Backtrace* buffer?
> 
> Nothing ! It doesn't even create a *Backtrace* buffer. Just display
> "Quit" in the minibuffer.

Setting debug-on-quit to non-nil might help you produce a backtrace.

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-16  8:23       ` William Xu
  2007-05-16 17:44         ` Eli Zaretskii
@ 2007-05-17  1:08         ` Kenichi Handa
  2007-05-17  3:36           ` William Xu
  1 sibling, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2007-05-17  1:08 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

In article <87veet2n3v.fsf@www.williamxu.com>, William Xu <william.xwl@gmail.com> writes:

>    Please do M-x toggle-debug-on-quit RET, and the M-x shell.
>    Does Emacs react on C-g when it seems to be in endless loop?

> Yes.

>    If so, what is shown in *Backtrace* buffer?

> Nothing ! It doesn't even create a *Backtrace* buffer. Just display
> "Quit" in the minibuffer. But *shell* buffer itself gets created
> successfully at the same time.

Ummmm.  Then please run Emacs under gdb and type C-z in gdb
session when Emacs is in endless loop.  Then,
(gdb) bt
will tell you where you are.

The detail is in the file etc/DEBUG (please search for
"infinite loop").

---
Kenichi Handa
handa@m17n.org

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

* Re: file-coding-system-alist and shell endless loop problem
  2007-05-17  1:08         ` Kenichi Handa
@ 2007-05-17  3:36           ` William Xu
  0 siblings, 0 replies; 10+ messages in thread
From: William Xu @ 2007-05-17  3:36 UTC (permalink / raw)
  To: emacs-devel

Kenichi Handa <handa@m17n.org> writes:

   Ummmm.  Then please run Emacs under gdb and type C-z in gdb
   session when Emacs is in endless loop.  Then,
   (gdb) bt
   will tell you where you are.

   The detail is in the file etc/DEBUG (please search for
   "infinite loop").

I'm sorry. After a rebooting, i'm unable to reproduce it myself. I'll
report again if i catch this problem again.


        William

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

end of thread, other threads:[~2007-05-17  3:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-16  6:44 file-coding-system-alist and shell endless loop problem William Xu
2007-05-16  6:54 ` Kenichi Handa
2007-05-16  7:13   ` William Xu
2007-05-16  8:00     ` Kenichi Handa
2007-05-16  8:23       ` William Xu
2007-05-16  8:23       ` William Xu
2007-05-16 17:44         ` Eli Zaretskii
2007-05-17  1:08         ` Kenichi Handa
2007-05-17  3:36           ` William Xu
  -- strict thread matches above, loose matches on Subject: below --
2007-05-16  6:39 William Xu

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