public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Andrey Repin <cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: dos2unix: Failed to change the permissions of temporary output file …: Permission denied
Date: Sat, 1 Jan 2022 14:32:36 +0300	[thread overview]
Message-ID: <1818333499.20220101143236@yandex.ru> (raw)
In-Reply-To: <31808206.20211229183014@yandex.ru>

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

Greetings, Andrey Repin!

> I've got a problem with recent Cygwin and some old scripts of mine.
> Particularly, the script at one point trying to normalize EOL's in a file so
> that following operations run smooth.

> But the step fails with message about permission changes.
> The problem is,
> 1. the file is located on a network share and
> 2. it is a noacl share.

> The scripts were running fine several months ago and nothing has сhanged on
> host and remore except Cygwin itself.

Even weirder, patch exhibits the same behavior, and trying to strace it
produces a segfault.
What remained of the strace output is attached.


-- 
With best regards,
Andrey Repin
Saturday, January 1, 2022 14:30:20

Sorry for my terrible english...

[-- Attachment #2: trace.txt --]
[-- Type: text/plain, Size: 4035 bytes --]

--- Process 34896 created
--- Process 34896 loaded C:\Windows\System32\ntdll.dll at 0000000077970000
--- Process 34896 loaded C:\Windows\System32\kernel32.dll at 0000000077850000
--- Process 34896 loaded C:\Windows\System32\KernelBase.dll at 000007fefd5c0000
--- Process 34896 loaded C:\Programs\Cygwin_64\bin\cygattr-1.dll at 00000003f0590000
--- Process 34896 loaded C:\Programs\Cygwin_64\bin\cygwin1.dll at 0000000180040000
--- Process 34896 loaded C:\Programs\Cygwin_64\bin\cygintl-8.dll at 00000003e4d20000
--- Process 34896 loaded C:\Programs\Cygwin_64\bin\cygiconv-2.dll at 00000003eac60000
--- Process 34896 loaded C:\Windows\System32\apphelp.dll at 000007fefd2c0000
--- Process 34896 loaded C:\Windows\AppPatch\AppPatch64\AcGenral.dll at 000007fef0530000
--- Process 34896 loaded C:\Windows\System32\sspicli.dll at 000007fefd290000
--- Process 34896 loaded C:\Windows\System32\msvcrt.dll at 000007feff980000
--- Process 34896 loaded C:\Windows\System32\rpcrt4.dll at 000007fefee40000
--- Process 34896 loaded C:\Windows\System32\shlwapi.dll at 000007feffa20000
--- Process 34896 loaded C:\Windows\System32\gdi32.dll at 000007feff150000
--- Process 34896 loaded C:\Windows\System32\user32.dll at 0000000077750000
--- Process 34896 loaded C:\Windows\System32\lpk.dll at 000007fefe8e0000
--- Process 34896 loaded C:\Windows\System32\usp10.dll at 000007fefeaf0000
--- Process 34896 loaded C:\Windows\System32\ole32.dll at 000007fefe8f0000
--- Process 34896 loaded C:\Windows\System32\shell32.dll at 000007fefdb50000
--- Process 34896 loaded C:\Windows\System32\sfc.dll at 0000000073980000
--- Process 34896 loaded C:\Windows\System32\sfc_os.dll at 000007fef71b0000
--- Process 34896 loaded C:\Windows\System32\userenv.dll at 000007fefd590000
--- Process 34896 loaded C:\Windows\System32\profapi.dll at 000007fefd4c0000
--- Process 34896 loaded C:\Windows\System32\dwmapi.dll at 000007fefa130000
--- Process 34896 loaded C:\Windows\System32\advapi32.dll at 000007feffaa0000
--- Process 34896 loaded C:\Windows\System32\sechost.dll at 000007feff130000
--- Process 34896 loaded C:\Windows\System32\mpr.dll at 000007fef34c0000
    0       0 [main] patch (34896) **********************************************
  465     465 [main] patch (34896) Program name: C:\Programs\Cygwin_64\bin\patch.exe (windows pid 34896)
  294     759 [main] patch (34896) OS version:   Windows NT-6.1
  236     995 [main] patch (34896) **********************************************
--- Process 34896 loaded C:\Windows\System32\cryptbase.dll at 000007fefd320000
 1780    2775 [main] patch (34896) sigprocmask: 0 = sigprocmask (0, 0x0, 0x180320570)
  928    3703 [main] patch (34896) open_shared: name shared.5, n 5, shared 0x180030000 (wanted 0x180030000), h 0x80, *m 6
  323    4026 [main] patch (34896) user_heap_info::init: heap base 0x800000000, heap top 0x800000000, heap size 0x20000000 (536870912)
  282    4308 [main] patch (34896) open_shared: name S-1-5-21-2916456319-725650362-4229827469-1000.1, n 1, shared 0x180020000 (wanted 0x180020000), h 0x7C, *m 6
  236    4544 [main] patch (34896) user_info::create: opening user shared for 'S-1-5-21-2916456319-725650362-4229827469-1000' at 0x180020000
  318    4862 [main] patch (34896) user_info::create: user shared version AB1FCCE8
  297    5159 [main] patch (34896) fhandler_pipe::create: name \\.\pipe\cygwin-4a2207ae32d95ad5-34896-sigwait, size 11440, mode PIPE_TYPE_MESSAGE
  218    5377 [main] patch (34896) fhandler_pipe::create: pipe read handle 0x94
  177    5554 [main] patch (34896) fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-4a2207ae32d95ad5-34896-sigwait
  178    5732 [main] patch (34896) fhandler_pipe::create: pipe write handle 0x98
  174    5906 [main] patch (34896) dll_crt0_0: finished dll_crt0_0 initialization
--- Process 34896 loaded C:\Windows\System32\imm32.dll at 000007feff100000
--- Process 34896 loaded C:\Windows\System32\msctf.dll at 000007feff870000
--- Process 34896, exception c0000005 at 0000000000000001
--- Process 34896 exited with status 0xc0000005

  reply	other threads:[~2022-01-01 11:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29 15:30 Andrey Repin
2022-01-01 11:32 ` Andrey Repin [this message]
2022-01-01 18:02 ` Brian Inglis
2022-01-02  9:53   ` Andrey Repin
2022-01-02 10:05   ` Andrey Repin
2022-01-02 20:59     ` Brian Inglis

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=1818333499.20220101143236@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --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).