Re: binutils >= 2.41 makes .rsrc section read-only
On Tue, 20 Feb 2024, Corinna Vinschen wrote: > On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > > 1) is there actually a good reason that _cygheap_start is in the .rsrc and > > not the .cygheap section? > > As you know we got rid of this way to define the cygheap, but > _cygheap_start was just defined this way so it's the address marking > the start address of the cygheap. > > It was just the way it was. It's probably just as well to move > > _SYM (_cygheap_start) = .; > > to the begining of the .cygheap section. Did you try? I hadn't; I have now and it seems to work fine. I basically assumed there was some reason I wasn't aware of for putting it in the .rsrc section, so focused more on trying to figure out how to get binutils to clear the readonly section flag. When I couldn't figure that out, I figured I'd ask here both about the "institutional knowledge" if there was a known reason why it needed to be in the .rsrc section and because I figured some people knowledgable in binutils pe stuff might also read this and be able to give me another idea on making the .rsrc section read/write again if it did need to stay in that section. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin installer hangs when running post-install scripts
On Feb 20 10:33, Kevin Ushey via Cygwin wrote: > Hi Corinna, > > I just updated > https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce > with that output (windbg-output-2.txt); let me know if that gives you > what you need. Thank you! Not sure I'll follow up on this, ARM64 assembler still puzzles me. However, this way I can at least take a look. Thanks again, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add
On Feb 20 17:24, Dan Shelton via Cygwin wrote: > On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin > wrote: > > > > On Feb 20 05:13, Dan Shelton via Cygwin wrote: > > > Hello! > > > > > > I think I found a rather nasty bug: > > > 1. Add a new group with "net localgroup mygrp1 /add" > > > 2. Then list all groups with "getent group", the new group mygrp1 will > > > not show up. "getent group mygrp1" will list it, but this is useless > > > in my case, as I need the group listed by "getent group" > > > > I guess we can rule out a domain controller but is this a standalone > > machine or a domain member machine? > > Standalone test machine, stock Windows 10 installed 2 days ago, > current patches, Cygwin 3.5 from 2 days ago. > > > > > What's the setting of your /etc/nsswitch.conf? > > Only comments in that file, i.e. empty Please set the db_enum: line to db_enum: all and try again after exiting from the shell window. Have a look at https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch for the settings. By default account enumeration only returns the bare minimum for speed. Btw, there *is* a bug in that code, but it affects only domain menber machines, afaics. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin installer hangs when running post-install scripts
Hi Corinna, I just updated https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce with that output (windbg-output-2.txt); let me know if that gives you what you need. As an aside, a new version of the Windows Insider edition was just released, and the memory addresses for the stubs in ntdll.dll have changed such that the original issue no longer occurs (ie, 0xe8 no longer happens to be part of the jumped-to address in the following stub), but I presume that is just luck and not an intentional change. Best, Kevin On Mon, Feb 19, 2024 at 6:36 AM Corinna Vinschen wrote: > > Hi Kevin, > > On Feb 15 20:13, Corinna Vinschen via Cygwin wrote: > > On Feb 15 09:46, Kevin Ushey via Cygwin wrote: > > > https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce. > > [...] > > 0001`802b7054 db030094 bl ntdll!#RtlpReferenceCurrentDirectory > > (1802b7fc0) > > I'm not familiar with ARM assembler, but a quick search showed that the > `bl' opcode is basically a subroutine call. > > So ntdll!#RtlpReferenceCurrentDirectory is not the address of the struct > pointer, as I surmised, but the address of the function (probably) > fetching the address of the struct pointer. > > Would you mind to send the assembler output for this function as well? > > > Thanks, > Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add
On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin wrote: > > On Feb 20 05:13, Dan Shelton via Cygwin wrote: > > Hello! > > > > I think I found a rather nasty bug: > > 1. Add a new group with "net localgroup mygrp1 /add" > > 2. Then list all groups with "getent group", the new group mygrp1 will > > not show up. "getent group mygrp1" will list it, but this is useless > > in my case, as I need the group listed by "getent group" > > I guess we can rule out a domain controller but is this a standalone > machine or a domain member machine? Standalone test machine, stock Windows 10 installed 2 days ago, current patches, Cygwin 3.5 from 2 days ago. > > What's the setting of your /etc/nsswitch.conf? Only comments in that file, i.e. empty Dan -- Dan Shelton - Cluster Specialist Win/Lin/Bsd -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: BUG: gettimeofday() didn't handle first argument being NULL
On Feb 20 19:15, 109224573 via Cygwin wrote: > this code works on Linux, but not msys2: > > #include > #include > int main() { > struct timezone tz; > puts("a"); > gettimeofday(NULL, &tz); > puts("b"); > } > > > I guess the reason would be > winsup/cygwin/times.cc Thanks for the bug report. Fixed in git. The test release cygwin-3.6.0-0.46.g70653fd8f1db containing this patch will be available shortly. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
BUG: gettimeofday() didn't handle first argument being NULL
this code works on Linux, but not msys2: #include #include int main() { struct timezone tz; puts("a"); gettimeofday(NULL, &tz); puts("b"); } I guess the reason would be winsup/cygwin/times.cc extern "C" int gettimeofday (struct timeval *__restrict tv, void *__restrict tzvp) { struct timezone *tz = (struct timezone *) tzvp; static bool tzflag; LONGLONG now = get_clock (CLOCK_REALTIME)->usecs (); tv->tv_sec = now / USPERSEC; tv->tv_usec = now % USPERSEC; If so, the fix should be add if (tv != NULL) I found this issue due to https://github.com/redis/redis/issues/12719 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: binutils >= 2.41 makes .rsrc section read-only
On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > This is probably the right thing to do, but breaks building msys2-runtime > (read: cygwin) 3.3, because the _cygheap_start symbol is actually in the > .rsrc section and code very early attempts to memset _cygheap_start. > Couple of questions: > > 1) is there actually a good reason that _cygheap_start is in the .rsrc and > not the .cygheap section? As you know we got rid of this way to define the cygheap, but _cygheap_start was just defined this way so it's the address marking the start address of the cygheap. It was just the way it was. It's probably just as well to move _SYM (_cygheap_start) = .; to the begining of the .cygheap section. Did you try? Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add
On Feb 20 05:13, Dan Shelton via Cygwin wrote: > Hello! > > I think I found a rather nasty bug: > 1. Add a new group with "net localgroup mygrp1 /add" > 2. Then list all groups with "getent group", the new group mygrp1 will > not show up. "getent group mygrp1" will list it, but this is useless > in my case, as I need the group listed by "getent group" I guess we can rule out a domain controller but is this a standalone machine or a domain member machine? What's the setting of your /etc/nsswitch.conf? Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple