GNU bug report logs - #21402
race condition with compile mode line number parser

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 2 Sep 2015 18:07:02 UTC

Severity: minor

Tags: moreinfo, unreproducible

Done: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21402 in the body.
You can then email your comments to 21402 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21402; Package emacs. (Wed, 02 Sep 2015 18:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 02 Sep 2015 18:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: race condition with compile mode line number parser
Date: Wed, 02 Sep 2015 08:54:18 +0800
There is a race condition, whereas for me of
(compile "seq 99|perl -nwle 'print \"XX:$.:$_\"'" nil)
(compile "seq 999|perl -nwle 'print \"XX:$.:$_\"'" nil)
(compile "seq 9999|perl -nwle 'print \"XX:$.:$_\"'" nil)
the first and third ones complete with no problems,
whereas the middle one always stops at

XX:392:392
XX:393
Compilation finished at Wed Sep  2 08:46:23

(compile "perl -wle 'for(1..999){print \"XX:$_:$_\"}'" nil)
however finishes fine, as does plain
(compile "seq 999" nil) and
(compile "seq 999|perl -nwle 'print \"XX:$.:$_\"'; sleep 1" nil)

When I try it as root all finish fine.

Further notes: I was able to reproduce this on another machine via
doing C-x ESC ESC and pasting
(compile "seq 999|perl -nwle 'print \"XX:$.:$_\"'" nil)
at the Redo: prompt.

If one just puts the cursor at the end of that line in this message
and hits C-x C-e that will not reproduce the problem. Nor if one does
ESC : and pastes it in there either.

Note also there is two messages piling themselves on top of each
other, Compilation finished, and Find this error in (default XX): ...

My .emacs is in http://jidanni.org/comp/configuration/

emacs-version "24.5.1", Debian emacs24 24.5+1-1.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21402; Package emacs. (Mon, 14 Oct 2019 19:33:01 GMT) Full text and rfc822 format available.

Message #8 received at 21402 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 21402 <at> debbugs.gnu.org
Subject: Re: bug#21402: race condition with compile mode line number parser
Date: Mon, 14 Oct 2019 21:32:42 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> There is a race condition, whereas for me of
> (compile "seq 99|perl -nwle 'print \"XX:$.:$_\"'" nil)
> (compile "seq 999|perl -nwle 'print \"XX:$.:$_\"'" nil)
> (compile "seq 9999|perl -nwle 'print \"XX:$.:$_\"'" nil)
> the first and third ones complete with no problems,
> whereas the middle one always stops at
>
> XX:392:392
> XX:393
> Compilation finished at Wed Sep  2 08:46:23

I'm unable to reproduce this bug in Emacs 27.  Are you still seeing this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Oct 2019 19:33:02 GMT) Full text and rfc822 format available.

Added tag(s) unreproducible. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Oct 2019 19:34:01 GMT) Full text and rfc822 format available.

Reply sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
You have taken responsibility. (Fri, 18 Oct 2019 08:12:01 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Fri, 18 Oct 2019 08:12:02 GMT) Full text and rfc822 format available.

Message #17 received at 21402-done <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 21402-done <at> debbugs.gnu.org
Subject: Re: bug#21402: race condition with compile mode line number parser
Date: Fri, 18 Oct 2019 16:11:27 +0800
Seems OK now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 15 Nov 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.