* Emacs on Windows crashes when hitting many keys
@ 2010-12-21 20:48 Deniz Dogan
2010-12-21 21:14 ` Drew Adams
2010-12-21 21:41 ` Lennart Borgman
0 siblings, 2 replies; 8+ messages in thread
From: Deniz Dogan @ 2010-12-21 20:48 UTC (permalink / raw)
To: Emacs-Devel devel
I like to frequent an IRC channel which is pretty crazy. Flooding is
common and instead of writing "lol" we like to bash the keys on our
keyboards and sending the results, along the lines of
"ALRDCOEINOEHTINOEHTNIHOENTIHOENTETHIONE".
Weird as that may sound, sometimes when I do this I accidentally hit
Ctrl instead of Shift, resulting in all kinds of crazy key
combinations. This often simply hangs Emacs. Its CPU usage is at 0
percent and memory usage is negligible.
How can I debug this?
--
Deniz Dogan
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Emacs on Windows crashes when hitting many keys
2010-12-21 20:48 Emacs on Windows crashes when hitting many keys Deniz Dogan
@ 2010-12-21 21:14 ` Drew Adams
2010-12-21 21:33 ` Chad Brown
2010-12-21 21:41 ` Lennart Borgman
1 sibling, 1 reply; 8+ messages in thread
From: Drew Adams @ 2010-12-21 21:14 UTC (permalink / raw)
To: 'Deniz Dogan', 'Emacs-Devel devel'
> How can I debug this?
LOL :-D
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows crashes when hitting many keys
2010-12-21 21:14 ` Drew Adams
@ 2010-12-21 21:33 ` Chad Brown
2010-12-21 23:01 ` Deniz Dogan
0 siblings, 1 reply; 8+ messages in thread
From: Chad Brown @ 2010-12-21 21:33 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
Have you tried connecting to the running process with gdb?
*Chad
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows crashes when hitting many keys
2010-12-21 20:48 Emacs on Windows crashes when hitting many keys Deniz Dogan
2010-12-21 21:14 ` Drew Adams
@ 2010-12-21 21:41 ` Lennart Borgman
2010-12-21 22:48 ` Deniz Dogan
1 sibling, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2010-12-21 21:41 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
On Tue, Dec 21, 2010 at 9:48 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> I like to frequent an IRC channel which is pretty crazy. Flooding is
> common and instead of writing "lol" we like to bash the keys on our
> keyboards and sending the results, along the lines of
> "ALRDCOEINOEHTINOEHTNIHOENTIHOENTETHIONE".
>
> Weird as that may sound, sometimes when I do this I accidentally hit
> Ctrl instead of Shift, resulting in all kinds of crazy key
> combinations. This often simply hangs Emacs. Its CPU usage is at 0
> percent and memory usage is negligible.
>
> How can I debug this?
Are you using the standard Emacs for w32? Or are you perhaps using my
patched Emacs+EmacsW32?
I am asking because I had done some changes in this area. I
experienced quite a lot of hangs before I did this, but I am not at
all sure my changes are the correct once. I still get hangs and they
looks like race conditions.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows crashes when hitting many keys
2010-12-21 21:41 ` Lennart Borgman
@ 2010-12-21 22:48 ` Deniz Dogan
0 siblings, 0 replies; 8+ messages in thread
From: Deniz Dogan @ 2010-12-21 22:48 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
2010/12/21 Lennart Borgman <lennart.borgman@gmail.com>:
> On Tue, Dec 21, 2010 at 9:48 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
>> I like to frequent an IRC channel which is pretty crazy. Flooding is
>> common and instead of writing "lol" we like to bash the keys on our
>> keyboards and sending the results, along the lines of
>> "ALRDCOEINOEHTINOEHTNIHOENTIHOENTETHIONE".
>>
>> Weird as that may sound, sometimes when I do this I accidentally hit
>> Ctrl instead of Shift, resulting in all kinds of crazy key
>> combinations. This often simply hangs Emacs. Its CPU usage is at 0
>> percent and memory usage is negligible.
>>
>> How can I debug this?
>
> Are you using the standard Emacs for w32? Or are you perhaps using my
> patched Emacs+EmacsW32?
>
> I am asking because I had done some changes in this area. I
> experienced quite a lot of hangs before I did this, but I am not at
> all sure my changes are the correct once. I still get hangs and they
> looks like race conditions.
>
I am using standard Emacs.
--
Deniz Dogan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows crashes when hitting many keys
2010-12-21 21:33 ` Chad Brown
@ 2010-12-21 23:01 ` Deniz Dogan
2010-12-21 23:06 ` Drew Adams
2010-12-21 23:38 ` Chad Brown
0 siblings, 2 replies; 8+ messages in thread
From: Deniz Dogan @ 2010-12-21 23:01 UTC (permalink / raw)
To: Chad Brown; +Cc: Emacs-Devel devel
2010/12/21 Chad Brown <yandros@mit.edu>:
> Have you tried connecting to the running process with gdb?
>
I tried it and honestly it would take me some time to get even
remotely acquainted with gdb.
Is it possible to store all key presses in a file somewhere? I'm
thinking something along the lines of "C-h l" but which writes to
disk.
--
Deniz Dogan
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Emacs on Windows crashes when hitting many keys
2010-12-21 23:01 ` Deniz Dogan
@ 2010-12-21 23:06 ` Drew Adams
2010-12-21 23:38 ` Chad Brown
1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2010-12-21 23:06 UTC (permalink / raw)
To: 'Deniz Dogan', 'Chad Brown'; +Cc: 'Emacs-Devel devel'
> Is it possible to store all key presses in a file somewhere? I'm
> thinking something along the lines of "C-h l" but which writes to
> disk.
C-h f open-dribble-file
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Emacs on Windows crashes when hitting many keys
2010-12-21 23:01 ` Deniz Dogan
2010-12-21 23:06 ` Drew Adams
@ 2010-12-21 23:38 ` Chad Brown
1 sibling, 0 replies; 8+ messages in thread
From: Chad Brown @ 2010-12-21 23:38 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
On Dec 21, 2010, at 3:01 PM, Deniz Dogan wrote:
> I tried it and honestly it would take me some time to get even
> remotely acquainted with gdb.
A good first cut:
1.) get the pid of emacs, with something like ``ps waux | grep -i emacs'' at a shell. We'll call it PID
2.) run gdb
3.) at the gdb prompt '(gdb)', type:
attach PID
and then wait for gdb to load emacs.
4.) if you get a gdb prompt back, type:
where
and send us the results.
It's entirely possible that Drew's suggestion re: dribble-file is more helpful.
Hope this helps,
*Chad
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-12-21 23:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 20:48 Emacs on Windows crashes when hitting many keys Deniz Dogan
2010-12-21 21:14 ` Drew Adams
2010-12-21 21:33 ` Chad Brown
2010-12-21 23:01 ` Deniz Dogan
2010-12-21 23:06 ` Drew Adams
2010-12-21 23:38 ` Chad Brown
2010-12-21 21:41 ` Lennart Borgman
2010-12-21 22:48 ` Deniz Dogan
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).