unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [alex@emacswiki.org: edebug can hang Emacs]
@ 2006-09-26 22:10 Richard Stallman
  2006-09-29 18:31 ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2006-09-26 22:10 UTC (permalink / raw)


Would someone please fix this and ack?

------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Alex Schroeder <alex@emacswiki.org>
Date: Thu, 02 Jan 2003 00:22:48 +0100
Subject: edebug can hang Emacs
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers 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.

In GNU Emacs 21.2.92.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-11-22 on confusibombus
Important settings:
  value of $LC_ALL: nil
  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: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

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



In emacs -q, edebug the following defun using C-u M-C-x:

(defun test ()
  (let ((l (make-list 100000 1)))
    (dolist (i l)
      (1+ i))))

Now call it:

(test)

When you get to the dolist, Emacs hangs.  I cannot awaken it using C-g
multiple times, ESC multiple times, C-z multiple times, having the
window manager send a kill, switching to the xterm running GDB and
hitting C-c or C-z multiple times also does not change anything --
neither Emacs nor GDB is killed or interrupted.

This should be handler more gracefully.  I don't even know what causes
the problem -- is Emacs trying to print the list l in a message, and
trying to determine which parts not to show?  If so, perhaps Emacs
needs a way to estimate the size of something, before starting to
print it.

Alex.



Recent input:
<escape> <escape> <escape> C-c n <down> <down> <down> 
<down> <down> <return> <down> <down> <down> d d d d 
<down> <down> <down> <return> ! s <up> <up> <up> d 
<down> <return> SPC ! s q <return> <return> s q <down> 
<down> <down> <down> <return> d <return> ! s <return> 
! ! s q <return> <return> SPC SPC s c y <escape> x 
r e p o r t - e m <tab> <return>

Recent messages:
 [3 times]
Expiring articles...
Deleting article 7694 in mail.emacs.devel
Deleting article 7695 in mail.emacs.devel
Deleting article 7696 in mail.emacs.devel
Deleting article 7697 in mail.emacs.devel
Deleting article 7698 in mail.emacs.devel
Expiry...done
Expiring articles...done
Loading emacsbug...done


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* Re: [alex@emacswiki.org: edebug can hang Emacs]
  2006-09-26 22:10 [alex@emacswiki.org: edebug can hang Emacs] Richard Stallman
@ 2006-09-29 18:31 ` Chong Yidong
  2006-09-29 21:20   ` Stefan Monnier
  2006-09-30 17:04   ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Chong Yidong @ 2006-09-29 18:31 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> In emacs -q, edebug the following defun using C-u M-C-x:
>
> (defun test ()
>   (let ((l (make-list 100000 1)))
>     (dolist (i l)
>       (1+ i))))
>
> Now call it:
>
> (test)
>
> When you get to the dolist, Emacs hangs.

It is merely thinking.  Wait long enough, and it comes back to life
(I've checked this).

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

* Re: [alex@emacswiki.org: edebug can hang Emacs]
  2006-09-29 18:31 ` Chong Yidong
@ 2006-09-29 21:20   ` Stefan Monnier
  2006-09-30 17:04   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2006-09-29 21:20 UTC (permalink / raw)
  Cc: rms, emacs-devel

>> In emacs -q, edebug the following defun using C-u M-C-x:
>> 
>> (defun test ()
>> (let ((l (make-list 100000 1)))
>> (dolist (i l)
>> (1+ i))))
>> 
>> Now call it:
>> 
>> (test)
>> 
>> When you get to the dolist, Emacs hangs.

> It is merely thinking.  Wait long enough, and it comes back to life
> (I've checked this).

Still: C-g should stop it.


        Stefan

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

* Re: [alex@emacswiki.org: edebug can hang Emacs]
  2006-09-29 18:31 ` Chong Yidong
  2006-09-29 21:20   ` Stefan Monnier
@ 2006-09-30 17:04   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-09-30 17:04 UTC (permalink / raw)
  Cc: emacs-devel

    > When you get to the dolist, Emacs hangs.

    It is merely thinking.  Wait long enough, and it comes back to life
    (I've checked this).

Perhaps the question is whether C-g can quit from this.

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

end of thread, other threads:[~2006-09-30 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 22:10 [alex@emacswiki.org: edebug can hang Emacs] Richard Stallman
2006-09-29 18:31 ` Chong Yidong
2006-09-29 21:20   ` Stefan Monnier
2006-09-30 17:04   ` Richard Stallman

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