> From: Lennart Borgman <lennart.borg...@gmail.com>
> Date: Wed, 14 Nov 2012 17:48:41 +0100
> Cc: Eli Zaretskii <e...@gnu.org>, f...@missioncriticalit.com, 12...@debbugs.gnu.org
> I have no time to build Emacs now and have not had it for a very long
> time. However I have seen Emacs freeze a lot of times when it is idle.
> This started to get more common when I moved to a 64-bit windows 7
> (from windows xp, 32-bit).
Those incidents are most probably unrelated to the issue discussed in
this bug, because the timer thread was introduced into Emacs only very
recently, it does not exist in Emacs 24.2 and earlier.
> Reading here I wonder if data are accessed somewhere in a system time
> thread without critical section handling.
That is so vague I cannot even begin thinking about what you have in
mind.
In any case, what Andrew reported looks like some thread is suspended
_while_ it holds a critical section. So, if anything, this is not
about lack of critical sections usage.
On Wed, Nov 14, 2012 at 6:41 PM, Eli Zaretskii <e...@gnu.org> wrote:
>> From: Lennart Borgman <lennart.borg...@gmail.com>
>> Date: Wed, 14 Nov 2012 17:48:41 +0100
>> Cc: Eli Zaretskii <e...@gnu.org>, f...@missioncriticalit.com, 12...@debbugs.gnu.org
>> I have no time to build Emacs now and have not had it for a very long
>> time. However I have seen Emacs freeze a lot of times when it is idle.
>> This started to get more common when I moved to a 64-bit windows 7
>> (from windows xp, 32-bit).
> Those incidents are most probably unrelated to the issue discussed in
> this bug, because the timer thread was introduced into Emacs only very
> recently, it does not exist in Emacs 24.2 and earlier.
Thanks, I see.
>> Reading here I wonder if data are accessed somewhere in a system time
>> thread without critical section handling.
> That is so vague I cannot even begin thinking about what you have in
> mind.
> In any case, what Andrew reported looks like some thread is suspended
> _while_ it holds a critical section. So, if anything, this is not
> about lack of critical sections usage.
I am not sure of that ;-)
What is suspending the thread? Should it be able to do that?
> I found a few problems in the code and fixed them in revision 110867
> on the emacs-24 branch. Please try the latest branch (without the
> patch) and see if the problem persists.
I've been running an (unpatched) emacs-24 r110867 build for a few hours, and so far it seems to be behaving well. I'll report back after a longer run to see if the lockup can be still be reproduced.
> On 14/11/2012 16:51, Eli Zaretskii wrote:
>> I found a few problems in the code and fixed them in revision 110867
>> on the emacs-24 branch. Please try the latest branch (without the
>> patch) and see if the problem persists.
> I've been running an (unpatched) emacs-24 r110867 build for a few hours, and
> so far it seems to be behaving well. I'll report back after a longer run to
> see if the lockup can be still be reproduced.
I rebuilt emacs-24 at r110874 this morning, and have not seen any freezes or lockups all day. I think this bug can now be closed.
> Date: Thu, 15 Nov 2012 19:26:54 +0000
> From: Andy Moreton <andrewjmore...@gmail.com>
> CC: dmonc...@gmail.com, f...@missioncriticalit.com, 12...@debbugs.gnu.org
> On 14/11/2012 20:17, Andy Moreton wrote:
> > On 14/11/2012 16:51, Eli Zaretskii wrote:
> >> I found a few problems in the code and fixed them in revision 110867
> >> on the emacs-24 branch. Please try the latest branch (without the
> >> patch) and see if the problem persists.
> > I've been running an (unpatched) emacs-24 r110867 build for a few hours, and
> > so far it seems to be behaving well. I'll report back after a longer run to
> > see if the lockup can be still be reproduced.
> I rebuilt emacs-24 at r110874 this morning, and have not seen any freezes or > lockups all day. I think this bug can now be closed.