public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2
@ 2016-02-13 20:35 John Hood
  2016-02-13 20:46 ` John Hood
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: John Hood @ 2016-02-13 20:35 UTC (permalink / raw)
  To: cygwin

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

Hi all,

I installed wine-staging (i386) 1.9.3 and Cygwin (i386) on my Ubuntu 
15.10 laptop in hopes of being able to maintain Cygwin compatibility of 
some software without having to actually use Windows.  I've seen several 
difficulties, but the most serious one was that gcc would fail with 
various errors relating to temporary files.  I was able to reduce it to 
a very simple test case:

echo hi > $(mktemp)

On a fresh Cygwin 2.3.1-1 install, this works, on a separate fresh 
Cygwin 2.5.0-0.2 install, this fails with

bash: $(mktemp): Permission denied

Permissions and ACLs on /tmp and the created temp files look OK on 2.3.1 
but broken on 2.5.0.  See the attached typescripts.

The other problems I've had (but not fully debugged) include null 
dereferences from setup_x86.exe near completion of the install (this may 
relate to mixed usage of 2.3.0 and 2.5.1 on the same Cygwin install and 
messed-up permissions/ACLs), and (on both 2.3.0 and 2.5.1) postinstall 
scripts being unable to remove and/or write to the their temporary 
setup.log file and popping up console windows instead.

All this works fine on a real Windows install, of course.  So any of 
this could easily be Wine issues, but the first issue does suggest a 
Cygwin problem.  The obvious suspect is the POSIX ACL improvements, but 
that's just a guess.  I can help with further debug if needed.

I'd have included cygcheck output for both these installs but it hangs 
on both of them.  The installs are from the same recent download from a 
mirror, with the only difference being the cygwin package version.  The 
inlined typescripts are a mess because of escape sequences so I've 
attached them as well.

regards,

   --jh
-------------
Cygwin 2.3.1
-------------
Script started on Sat, Feb 13, 2016  2:21:06 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ uname -a
CYGWIN_NT-5.2-WOW minibit 2.3.1(0.291/5/3) 2015-11-14 12:42 i686 Cygwin
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ echo hi > $(mktemp)
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -l /tmp
total 8
-rw------- 1 cgull None 3 Feb 13 14:21 tmp.5ZU8NzX5yV
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp/tmp.5ZU8NzX5yV
# file: /tmp/tmp.5ZU8NzX5yV
# owner: cgull
# group: None
user::rw-
group::---
other:---

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:21:43 PM
Script started on Sat, Feb 13, 2016  2:23:40 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -l /\b^[[K\b^[[Ka /tmp
total 8
drwxrwxrwt+ 1 cgull None 0 Feb 13 14:21 .
drwxr-xr-x+ 1 cgull None 0 Feb 13 13:58 ..
-rw-------  1 cgull None 3 Feb 13 14:21 tmp.5ZU8NzX5yV
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp
# file: /tmp
# owner: cgull
# group: None
# flags: --t
user::rwx
group::---
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /
# file: /
# owner: cgull
# group: None
user::rwx
group::---
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:24:05 PM
-------------
Cygwin 2.5.0
-------------
Script started on Sat, Feb 13, 2016  2:22:06 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ uname -a
CYGWIN_NT-5.2-WOW minibit 2.5.0(0.294/5/3) 2016-01-28 22:13 i686 Cygwin
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ echo hi > $(mktemp)
bash: $(mktemp): Permission denied
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -la /tmp
total 0
drwx---rwt+ 1 cgull None 0 Feb 13 14:22 .
drwx---r-x+ 1 cgull None 0 Feb 13 14:11 ..
-r-x---r-x+ 1 cgull None 0 Feb 13 14:22 tmp.Vqq2SdFykx
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp/tmp.Vqq2SdFykx
# file: /tmp/tmp.Vqq2SdFykx
# owner: cgull
# group: None
user::r-x
group::---
group:SYSTEM:rwx
mask:r-x
other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp
# file: /tmp
# owner: cgull
# group: None
# flags: --t
user::rwx
group::---
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /
# file: /
# owner: cgull
# group: None
user::rwx
group::---
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:24:14 PM


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cygwin23.log --]
[-- Type: text/x-log; name="cygwin23.log", Size: 1382 bytes --]

Script started on Sat, Feb 13, 2016  2:21:06 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ uname -a
CYGWIN_NT-5.2-WOW minibit 2.3.1(0.291/5/3) 2015-11-14 12:42 i686 Cygwin
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ echo hi > $(mktemp)
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -l /tmp
total 8
-rw------- 1 cgull None 3 Feb 13 14:21 tmp.5ZU8NzX5yV
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp/tmp.5ZU8NzX5yV 
# file: /tmp/tmp.5ZU8NzX5yV
# owner: cgull
# group: None
user::rw-
group::---
other:---

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:21:43 PM
Script started on Sat, Feb 13, 2016  2:23:40 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -l /\b^[[K\b^[[Ka /tmp
total 8
drwxrwxrwt+ 1 cgull None 0 Feb 13 14:21 .
drwxr-xr-x+ 1 cgull None 0 Feb 13 13:58 ..
-rw-------  1 cgull None 3 Feb 13 14:21 tmp.5ZU8NzX5yV
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp
# file: /tmp
# owner: cgull
# group: None
# flags: --t
user::rwx
group::---
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /
# file: /
# owner: cgull
# group: None
user::rwx
group::---
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:24:05 PM

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: cygwin25.log --]
[-- Type: text/x-log; name="cygwin25.log", Size: 1174 bytes --]

Script started on Sat, Feb 13, 2016  2:22:06 PM
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ uname -a
CYGWIN_NT-5.2-WOW minibit 2.5.0(0.294/5/3) 2016-01-28 22:13 i686 Cygwin
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ echo hi > $(mktemp)
bash: $(mktemp): Permission denied
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ ls -la /tmp
total 0
drwx---rwt+ 1 cgull None 0 Feb 13 14:22 .
drwx---r-x+ 1 cgull None 0 Feb 13 14:11 ..
-r-x---r-x+ 1 cgull None 0 Feb 13 14:22 tmp.Vqq2SdFykx
^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp/tmp.Vqq2SdFykx 
# file: /tmp/tmp.Vqq2SdFykx
# owner: cgull
# group: None
user::r-x
group::---
group:SYSTEM:rwx
mask:r-x
other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /tmp
# file: /tmp
# owner: cgull
# group: None
# flags: --t
user::rwx
group::---
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ getfacl /
# file: /
# owner: cgull
# group: None
user::rwx
group::---
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

^[]0;~\a
^[[32mcgull@minibit ^[[33m~^[[0m
$ exit

Script done on Sat, Feb 13, 2016  2:24:14 PM

[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2016-02-19  9:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-13 20:35 mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2 John Hood
2016-02-13 20:46 ` John Hood
2016-02-13 21:11 ` Qian Hong
2016-02-13 21:39   ` Qian Hong
2016-02-14 16:35   ` Andrey Repin
2016-02-15 11:46   ` Corinna Vinschen
2016-02-16  9:36 ` Qian Hong
2016-02-19  2:48 ` Qian Hong
2016-02-19  9:39   ` Qian Hong

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