GNU bug report logs -
#23331
25.0.92; Cannot create temporary file ending in a period on OS X
Previous Next
Reported by: John Wiegley <jwiegley <at> gmail.com>
Date: Thu, 21 Apr 2016 16:32:02 UTC
Severity: normal
Tags: moreinfo, unreproducible
Found in version 25.0.92
Done: Glenn Morris <rgm <at> gnu.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 23331 in the body.
You can then email your comments to 23331 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Thu, 21 Apr 2016 16:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
John Wiegley <jwiegley <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 21 Apr 2016 16:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I'm not sure if this is a Mac problem, or an Emacs 25 problem, but it occurs
with the latest emacs-25 on OS X 10.10:
M-: (make-temp-name "index.magit.") RET
Will report the error:
Cannot create temporary name for prefix: Bad file descriptor, index.magit.
I discovered this because Magit 2.6 uses temporary files with such a name.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Thu, 21 Apr 2016 16:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
> From: John Wiegley <jwiegley <at> gmail.com>
> Date: Thu, 21 Apr 2016 09:30:40 -0700
>
> I'm not sure if this is a Mac problem, or an Emacs 25 problem, but it occurs
> with the latest emacs-25 on OS X 10.10:
>
> M-: (make-temp-name "index.magit.") RET
>
> Will report the error:
>
> Cannot create temporary name for prefix: Bad file descriptor, index.magit.
Works like a charm on MS-Windows and GNU/Linux, FWIW.
Can you step with a debugger through the relevant C code?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Thu, 26 May 2016 20:26:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
John Wiegley <jwiegley <at> gmail.com> writes:
> I'm not sure if this is a Mac problem, or an Emacs 25 problem, but it occurs
> with the latest emacs-25 on OS X 10.10:
>
> M-: (make-temp-name "index.magit.") RET
>
> Will report the error:
>
> Cannot create temporary name for prefix: Bad file descriptor, index.magit.
>
> I discovered this because Magit 2.6 uses temporary files with such a name.
Hi John, I've just tried this out on my own Mac (10.11) and it's working fine.
Are you still getting the error?
--
Alan Third
Added tag(s) unreproducible.
Request was from
Alan Third <alan <at> idiocy.org>
to
control <at> debbugs.gnu.org
.
(Thu, 26 May 2016 20:26:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Tue, 19 Jul 2016 19:42:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 23331 <at> debbugs.gnu.org (full text, mbox):
Alan Third <alan <at> idiocy.org> writes:
> John Wiegley <jwiegley <at> gmail.com> writes:
>
>> I'm not sure if this is a Mac problem, or an Emacs 25 problem, but it occurs
>> with the latest emacs-25 on OS X 10.10:
>>
>> M-: (make-temp-name "index.magit.") RET
>>
>> Will report the error:
>>
>> Cannot create temporary name for prefix: Bad file descriptor, index.magit.
>>
>> I discovered this because Magit 2.6 uses temporary files with such a name.
>
> Hi John, I've just tried this out on my own Mac (10.11) and it's working fine.
> Are you still getting the error?
I feel a bit weird about this, but I still can't reproduce it and it's
been over seven weeks with no response, so I'm inclined to close the
bug.
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Tue, 19 Jul 2016 20:05:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 23331 <at> debbugs.gnu.org (full text, mbox):
>>>>> Alan Third <alan <at> idiocy.org> writes:
> I feel a bit weird about this, but I still can't reproduce it and it's been
> over seven weeks with no response, so I'm inclined to close the bug.
Still happens reliably here, and based on bug reports on GitHub, others are
experiencing it as well. It doesn't happen in 24.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23331
; Package
emacs
.
(Tue, 19 Jul 2016 21:48:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 23331 <at> debbugs.gnu.org (full text, mbox):
On Tue, Jul 19, 2016 at 01:03:59PM -0700, John Wiegley wrote:
> >>>>> Alan Third <alan <at> idiocy.org> writes:
>
> > I feel a bit weird about this, but I still can't reproduce it and it's been
> > over seven weeks with no response, so I'm inclined to close the bug.
>
> Still happens reliably here, and based on bug reports on GitHub, others are
> experiencing it as well. It doesn't happen in 24.
Is there anything else involved? I’m only doing:
Emacs -Q
M-: (make-temp-name "index.magit.") RET
Can you try either running in a debugger and finding out what the
‘data’ variable contains at line 716 of fileio.c (just before
‘if (!check_existing (data))’), or putting something like:
printf("filename: %s\n", data);
on that same line?
The make_temp_name function generates a name and then tests to see if
it already exists and it’s this test that’s throwing up the error. My
first thought is that it’s possible that it’s generating an invalid
file name, so it would be good to see exactly what that name is.
Also, what’s the PWD?
Thanks!
--
Alan Third
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 07 Dec 2016 20:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
John Wiegley <jwiegley <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 07 Dec 2016 20:39:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 23331-done <at> debbugs.gnu.org (full text, mbox):
Alan Third wrote:
> Can you try either running in a debugger and finding out what the
> ‘data’ variable contains at line 716 of fileio.c (just before
> ‘if (!check_existing (data))’), or putting something like:
>
> printf("filename: %s\n", data);
>
> on that same line?
>
> The make_temp_name function generates a name and then tests to see if
> it already exists and it’s this test that’s throwing up the error. My
> first thought is that it’s possible that it’s generating an invalid
> file name, so it would be good to see exactly what that name is.
>
> Also, what’s the PWD?
No response in several months, closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 05 Jan 2017 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.