unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
@ 2016-04-21 16:30 John Wiegley
  2016-04-21 16:47 ` Eli Zaretskii
  2016-05-26 20:25 ` Alan Third
  0 siblings, 2 replies; 7+ messages in thread
From: John Wiegley @ 2016-04-21 16:30 UTC (permalink / raw)
  To: 23331

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 629 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-04-21 16:30 bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X John Wiegley
@ 2016-04-21 16:47 ` Eli Zaretskii
  2016-05-26 20:25 ` Alan Third
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2016-04-21 16:47 UTC (permalink / raw)
  To: John Wiegley; +Cc: 23331

> From: John Wiegley <jwiegley@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?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-04-21 16:30 bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X John Wiegley
  2016-04-21 16:47 ` Eli Zaretskii
@ 2016-05-26 20:25 ` Alan Third
  2016-07-19 19:41   ` Alan Third
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Third @ 2016-05-26 20:25 UTC (permalink / raw)
  To: 23331

John Wiegley <jwiegley@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-05-26 20:25 ` Alan Third
@ 2016-07-19 19:41   ` Alan Third
  2016-07-19 20:03     ` John Wiegley
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Third @ 2016-07-19 19:41 UTC (permalink / raw)
  To: 23331; +Cc: John Wiegley

Alan Third <alan@idiocy.org> writes:

> John Wiegley <jwiegley@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-07-19 19:41   ` Alan Third
@ 2016-07-19 20:03     ` John Wiegley
  2016-07-19 21:47       ` Alan Third
  0 siblings, 1 reply; 7+ messages in thread
From: John Wiegley @ 2016-07-19 20:03 UTC (permalink / raw)
  To: Alan Third; +Cc: 23331

>>>>> Alan Third <alan@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-07-19 20:03     ` John Wiegley
@ 2016-07-19 21:47       ` Alan Third
  2016-12-07 20:38         ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Third @ 2016-07-19 21:47 UTC (permalink / raw)
  To: John Wiegley; +Cc: 23331

On Tue, Jul 19, 2016 at 01:03:59PM -0700, John Wiegley wrote:
> >>>>> Alan Third <alan@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X
  2016-07-19 21:47       ` Alan Third
@ 2016-12-07 20:38         ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2016-12-07 20:38 UTC (permalink / raw)
  To: 23331-done

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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-12-07 20:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 16:30 bug#23331: 25.0.92; Cannot create temporary file ending in a period on OS X John Wiegley
2016-04-21 16:47 ` Eli Zaretskii
2016-05-26 20:25 ` Alan Third
2016-07-19 19:41   ` Alan Third
2016-07-19 20:03     ` John Wiegley
2016-07-19 21:47       ` Alan Third
2016-12-07 20:38         ` Glenn Morris

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).