public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cannot run executable named setlang
@ 2021-04-08 12:25 Orgad Shaneh
  2021-04-08 12:55 ` Takashi Yano
  2021-04-08 13:28 ` Marco Atzeri
  0 siblings, 2 replies; 5+ messages in thread
From: Orgad Shaneh @ 2021-04-08 12:25 UTC (permalink / raw)
  To: cygwin

Hi,

I cannot run an executable if it is named setlang (case insensitive).
It exits with code 127.

Example:
cp /bin/ls setlang
./setlang -> Error 127

I've noticed a difference in ldd output. cygwin dlls appear twice.

ldd /bin/ls:
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
(0x7ffd9bbb0000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
(0x7ffd9b8e0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ff810000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ff830000)

ldd setlang:
        ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
        KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
(0x7ffd9bbb0000)
        KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
(0x7ffd9b8e0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)

Any idea what can cause this?

Thanks,
- Orgad

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

* Re: Cannot run executable named setlang
  2021-04-08 12:25 Cannot run executable named setlang Orgad Shaneh
@ 2021-04-08 12:55 ` Takashi Yano
  2021-04-08 13:35   ` Takashi Yano
  2021-04-08 17:57   ` Orgad Shaneh
  2021-04-08 13:28 ` Marco Atzeri
  1 sibling, 2 replies; 5+ messages in thread
From: Takashi Yano @ 2021-04-08 12:55 UTC (permalink / raw)
  To: cygwin; +Cc: Orgad Shaneh

On Thu, 8 Apr 2021 15:25:45 +0300
Orgad Shaneh wrote:
> Hi,
> 
> I cannot run an executable if it is named setlang (case insensitive).
> It exits with code 127.
> 
> Example:
> cp /bin/ls setlang
> ./setlang -> Error 127
> 
> I've noticed a difference in ldd output. cygwin dlls appear twice.
> 
> ldd /bin/ls:
>         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
>         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> (0x7ffd9bbb0000)
>         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> (0x7ffd9b8e0000)
>         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
>         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ff810000)
>         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ff830000)
> 
> ldd setlang:
>         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
>         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> (0x7ffd9bbb0000)
>         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> (0x7ffd9b8e0000)
>         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
>         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
>         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
>         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
>         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
>         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
> 
> Any idea what can cause this?

Isn't this the same issue with:
https://cygwin.com/pipermail/cygwin/2021-January/247508.html
?

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

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

* Re: Cannot run executable named setlang
  2021-04-08 12:25 Cannot run executable named setlang Orgad Shaneh
  2021-04-08 12:55 ` Takashi Yano
@ 2021-04-08 13:28 ` Marco Atzeri
  1 sibling, 0 replies; 5+ messages in thread
From: Marco Atzeri @ 2021-04-08 13:28 UTC (permalink / raw)
  To: cygwin

On 08.04.2021 14:25, Orgad Shaneh via Cygwin wrote:
> Hi,
> 
> I cannot run an executable if it is named setlang (case insensitive).
> It exits with code 127.
> 
> Example:
> cp /bin/ls setlang
> ./setlang -> Error 127
> 

it works for me

what type of AV are you using ?

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

* Re: Cannot run executable named setlang
  2021-04-08 12:55 ` Takashi Yano
@ 2021-04-08 13:35   ` Takashi Yano
  2021-04-08 17:57   ` Orgad Shaneh
  1 sibling, 0 replies; 5+ messages in thread
From: Takashi Yano @ 2021-04-08 13:35 UTC (permalink / raw)
  To: cygwin

On Thu, 8 Apr 2021 21:55:18 +0900
Takashi Yano wrote:
> On Thu, 8 Apr 2021 15:25:45 +0300
> Orgad Shaneh wrote:
> > Hi,
> > 
> > I cannot run an executable if it is named setlang (case insensitive).
> > It exits with code 127.
> > 
> > Example:
> > cp /bin/ls setlang
> > ./setlang -> Error 127
> > 
> > I've noticed a difference in ldd output. cygwin dlls appear twice.
> > 
> > ldd /bin/ls:
> >         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
> >         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> > (0x7ffd9bbb0000)
> >         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> > (0x7ffd9b8e0000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ff810000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ff830000)
> > 
> > ldd setlang:
> >         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
> >         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> > (0x7ffd9bbb0000)
> >         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> > (0x7ffd9b8e0000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
> > 
> > Any idea what can cause this?
> 
> Isn't this the same issue with:
> https://cygwin.com/pipermail/cygwin/2021-January/247508.html
> ?

Probably you have "setlang.exe" entry in "Program settings" in
Exploit Protection.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

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

* Re: Cannot run executable named setlang
  2021-04-08 12:55 ` Takashi Yano
  2021-04-08 13:35   ` Takashi Yano
@ 2021-04-08 17:57   ` Orgad Shaneh
  1 sibling, 0 replies; 5+ messages in thread
From: Orgad Shaneh @ 2021-04-08 17:57 UTC (permalink / raw)
  To: Takashi Yano; +Cc: cygwin

On Thu, Apr 8, 2021 at 3:55 PM Takashi Yano <takashi.yano@nifty.ne.jp> wrote:
>
> On Thu, 8 Apr 2021 15:25:45 +0300
> Orgad Shaneh wrote:
> > Hi,
> >
> > I cannot run an executable if it is named setlang (case insensitive).
> > It exits with code 127.
> >
> > Example:
> > cp /bin/ls setlang
> > ./setlang -> Error 127
> >
> > I've noticed a difference in ldd output. cygwin dlls appear twice.
> >
> > ldd /bin/ls:
> >         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
> >         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> > (0x7ffd9bbb0000)
> >         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> > (0x7ffd9b8e0000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ff810000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ff830000)
> >
> > ldd setlang:
> >         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd9be50000)
> >         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL
> > (0x7ffd9bbb0000)
> >         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
> > (0x7ffd9b8e0000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
> >         cygwin1.dll => /usr/bin/cygwin1.dll (0xc10000)
> >         cygintl-8.dll => /usr/bin/cygintl-8.dll (0x170000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
> >         cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x600000)
> >
> > Any idea what can cause this?
>
> Isn't this the same issue with:
> https://cygwin.com/pipermail/cygwin/2021-January/247508.html
> ?

Yup, looks like it. Thanks for the reference. We even used the same example :D

- Orgad

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

end of thread, other threads:[~2021-04-08 17:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 12:25 Cannot run executable named setlang Orgad Shaneh
2021-04-08 12:55 ` Takashi Yano
2021-04-08 13:35   ` Takashi Yano
2021-04-08 17:57   ` Orgad Shaneh
2021-04-08 13:28 ` Marco Atzeri

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