public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Doug Henderson <djndnbvg@gmail.com>
To: cygwin <cygwin@cygwin.com>
Subject: Re: Odd hang of cc1.exe *now isolated to /tmp weirdness* cpp/gcc
Date: Wed, 6 May 2020 19:19:58 -0600	[thread overview]
Message-ID: <CAJ1FpuO0UGYh3fhFtOda+NXkK58hU5+vUh+s0cA-pUXmqjviyA@mail.gmail.com> (raw)
In-Reply-To: <7e298112-c64f-4251-ac7f-ccb6cdc2088d@shaddybaddah.name>

On Wed, 6 May 2020 at 08:34, Shaddy Baddah <> wrote:

> On 29/4/20 10:38 pm, Shaddy Baddah wrote:
>


> <snip>
>
> … And only when run out of my /tmp (which is custom mapped btw).
>
> <snip>
>


> | /tmp$ ls -li /usr/bin/as.exe /usr/x86_64-pc-cygwin/bin/as.exe
> | 1688849860843563 -rwxr-xr-x 2 AUD-ELIDED+portapps AUD-ELIDED+None
> 5981696 Mar 15 15:16 /usr/bin/as.exe
> | 1688849860843563 -rwxr-xr-x 2 AUD-ELIDED+portapps AUD-ELIDED+None
> 5981696 Mar 15 15:16 /usr/x86_64-pc-cygwin/bin/as.exe
>


> <snip>
>

I think this is the essence of your problem. It looks like you are mapping
you temporary directory outside the cygwin directory tree, Not sure how you
are doing it. For me, I have TMP=/tmp and TEMP=/tmp in my cygwin
environment. In my windows environment, i.e, when running cmd.exe, TEMP and
TMP point to C:\Users\Doug\AppData\Local\Temp.

I expect you will find that the windows permissions for your temp directory
is different from the default /tmp.

Check this using lsacl (A bash script found somewhere in this mailing
list.) Or the file properties from windows explorer.

In my case:

$ ls -ld /tmp
drwxrwxrwt+ 1 Admin None 0 May  6 18:51 /tmp/

$ ls -ld $(cygpath -u 'C:\Users\Doug\AppData\Local\Temp' )
drwxrwx---+ 1 Doug SYSTEM 0 May  6 18:50
/cygdrive/c/Users/Doug/AppData/Local/Temp/

$ lsacl /tmp
[u::rwx,g::rwx,o::rwx/u::rwx,g::r-x,o::r-x] /tmp

$ lsacl $(cygpath -u 'C:\Users\Doug\AppData\Local\Temp' )
[u::rwx,g::rwx,g:Administrators:rwx,m::rwx,o::---/u::rwx,g::rwx,g:SYSTEM:rwx,g:Administrators:rwx,m::rwx,o::---]
/cygdrive/c/Users/Doug/AppData/Local/Temp

I suggest you change your temporary directory to ./tmp, or align the
permissions.

HTH,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

  reply	other threads:[~2020-05-07  1:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-27  6:54 Odd hang of cc1.exe, when invoking cpp/gcc Shaddy Baddah
2020-04-28  5:23 ` Odd hang of cc1.exe *now isolated somewhat* cpp/gcc Shaddy Baddah
2020-04-28 12:46   ` Eliot Moss
2020-04-29  4:06     ` Odd hang of cc1.exe *now further isolated, potential console issues* cpp/gcc Shaddy Baddah
2020-04-29  4:55       ` Marco Atzeri
2020-04-29 12:38       ` Odd hang of cc1.exe *now further isolated, back to a fork issue* cpp/gcc Shaddy Baddah
2020-05-06 14:29         ` Odd hang of cc1.exe *now isolated to /tmp weirdness* cpp/gcc Shaddy Baddah
2020-05-07  1:19           ` Doug Henderson [this message]
2020-05-07  3:44             ` Shaddy Baddah
2020-05-07  9:34               ` Odd hang of cc1.exe *resolved. /tmp/cygwin1.dll. Apologies * cpp/gcc Shaddy Baddah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ1FpuO0UGYh3fhFtOda+NXkK58hU5+vUh+s0cA-pUXmqjviyA@mail.gmail.com \
    --to=djndnbvg@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).