GNU bug report logs - #40046
28.0.50; infinite recursion futimens -> fdutimens -> futimens -> ...

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattiase <at> acm.org>

Date: Thu, 12 Mar 2020 22:04:02 UTC

Severity: normal

Found in version 28.0.50

Done: Mattias Engdegård <mattiase <at> acm.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 40046 in the body.
You can then email your comments to 40046 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#40046; Package emacs. (Thu, 12 Mar 2020 22:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mattias Engdegård <mattiase <at> acm.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 12 Mar 2020 22:04:02 GMT) Full text and rfc822 format available.

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

From: Mattias Engdegård <mattiase <at> acm.org>
To: bug-gnu-emacs <at> gnu.org
Cc: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: 28.0.50; infinite recursion futimens -> fdutimens -> futimens -> ...
Date: Thu, 12 Mar 2020 23:03:28 +0100
On macOS 10.14, futimens in lib/futimens.c calls fdutimens in lib/utimens.c which calls futimens again, recursing until the stack is full. This cause Fcopy_file to crash, for instance.

No doubt I've made a silly configuration error, but I've wiped the (out-of-tree) build directory, regenerated configure and all. As expedience I commented out the futimens definition. Not sure how this is supposed to work really -- what am I missing? HAVE_FUTIMENS is set in config.h.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40046; Package emacs. (Thu, 12 Mar 2020 23:49:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 28.0.50; infinite recursion futimens -> fdutimens -> futimens ->
 ...
Date: Thu, 12 Mar 2020 16:47:54 -0700
On 3/12/20 3:03 PM, Mattias Engdegård wrote:
> On macOS 10.14, futimens in lib/futimens.c calls fdutimens in lib/utimens.c which calls futimens again, recursing until the stack is full. This cause Fcopy_file to crash, for instance.
> 
> No doubt I've made a silly configuration error, but I've wiped the (out-of-tree) build directory, regenerated configure and all. As expedience I commented out the futimens definition. Not sure how this is supposed to work really -- what am I missing? HAVE_FUTIMENS is set in config.h.

This feels like Bug#39948. I suggest cloning the source directory from 
git master, and starting afresh. Merely wiping out the build directory 
does not always suffice (I don't know why).




Reply sent to Mattias Engdegård <mattiase <at> acm.org>:
You have taken responsibility. (Fri, 13 Mar 2020 10:22:01 GMT) Full text and rfc822 format available.

Notification sent to Mattias Engdegård <mattiase <at> acm.org>:
bug acknowledged by developer. (Fri, 13 Mar 2020 10:22:01 GMT) Full text and rfc822 format available.

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

From: Mattias Engdegård <mattiase <at> acm.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 40046-done <at> debbugs.gnu.org
Subject: Re: 28.0.50; infinite recursion futimens -> fdutimens -> futimens ->
 ...
Date: Fri, 13 Mar 2020 11:21:18 +0100
13 mars 2020 kl. 00.47 skrev Paul Eggert <eggert <at> cs.ucla.edu>:

> This feels like Bug#39948. I suggest cloning the source directory from git master, and starting afresh. Merely wiping out the build directory does not always suffice (I don't know why).

Thanks, and you were right. After carefully removing all non-versioned files from the source directory, the problems went away.
Closed.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Apr 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 129 days ago.

Previous Next


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