Re: x86_64 ldd hangs running on a DLL

2023-05-22 Thread Brian Inglis via Cygwin-apps

BLODA? https://cygwin.com/faq/faq.html#faq.using.bloda

On 2023-05-21 14:32, Jon Turney via Cygwin-apps wrote:

On 18/05/2023 02:46, Rodney Brown via Cygwin wrote:

$ uname -a
CYGWIN_NT-10.0-19045 X 3.4.6-1.x86_64 2023-02-14 13:23 UTC x86_64 Cygwin
$ ldd --version
ldd (cygwin) 3.4.6

As with "ldd freezes" 
https://sourceware.org/legacy-ml/cygwin/2015-07/msg00314.html , cygcheck works,
not only for Cygwin DLLs and ldd hangs needing the xterm to be closed, though 
it can interrupted when run

under strace, or did. Strace now is segfaulting.


What changed to make it start segfaulting?


Did Corinna's fix for i686 not end up in the x86_64 code?


The claim here seems to be: ldd is broken on x86_64 for all dlls, and has been 
since 2015, and nobody has noticed.


While possible, this seems unlikely.

All I can tell you is that it appears to WFM.  Perhaps you can provide some more 
details?



$ ldd /usr/bin/cygwin1.dll
    ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffe5609)
    KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL 
(0x7ffe54a9)
    KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll 
(0x7ffe53c4)

    msvcrt.dll => /cygdrive/c/WINDOWS/System32/msvcrt.dll (0x7ffe5575)
    advapi32.dll => /cygdrive/c/WINDOWS/System32/advapi32.dll 
(0x7ffe54d9)

    sechost.dll => /cygdrive/c/WINDOWS/System32/sechost.dll (0x7ffe549b)
    RPCRT4.dll => /cygdrive/c/WINDOWS/System32/RPCRT4.dll (0x7ffe5557)
    CRYPTBASE.DLL => /cygdrive/c/WINDOWS/SYSTEM32/CRYPTBASE.DLL 
(0x7ffe5306)
    bcryptPrimitives.dll => 
/cygdrive/c/WINDOWS/System32/bcryptPrimitives.dll (0x7ffe5377)




--
Take care. Thanks, Brian Inglis  Calgary, Alberta, Canada

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry



Re: x86_64 ldd hangs running on a DLL

2023-05-21 Thread Jon Turney via Cygwin-apps

On 18/05/2023 02:46, Rodney Brown via Cygwin wrote:

$ uname -a
CYGWIN_NT-10.0-19045 X 3.4.6-1.x86_64 2023-02-14 13:23 UTC x86_64 Cygwin
$ ldd --version
ldd (cygwin) 3.4.6

As with "ldd freezes" 
https://sourceware.org/legacy-ml/cygwin/2015-07/msg00314.html , cygcheck works,
not only for Cygwin DLLs and ldd hangs needing the xterm to be closed, though 
it can interrupted when run
under strace, or did. Strace now is segfaulting.


What changed to make it start segfaulting?


Did Corinna's fix for i686 not end up in the x86_64 code?


The claim here seems to be: ldd is broken on x86_64 for all dlls, and 
has been since 2015, and nobody has noticed.


While possible, this seems unlikely.

All I can tell you is that it appears to WFM.  Perhaps you can provide 
some more details?



$ ldd /usr/bin/cygwin1.dll
ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffe5609)
KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL 
(0x7ffe54a9)
KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll 
(0x7ffe53c4)
msvcrt.dll => /cygdrive/c/WINDOWS/System32/msvcrt.dll (0x7ffe5575)
advapi32.dll => /cygdrive/c/WINDOWS/System32/advapi32.dll 
(0x7ffe54d9)
sechost.dll => /cygdrive/c/WINDOWS/System32/sechost.dll (0x7ffe549b)
RPCRT4.dll => /cygdrive/c/WINDOWS/System32/RPCRT4.dll (0x7ffe5557)
CRYPTBASE.DLL => /cygdrive/c/WINDOWS/SYSTEM32/CRYPTBASE.DLL 
(0x7ffe5306)
bcryptPrimitives.dll => 
/cygdrive/c/WINDOWS/System32/bcryptPrimitives.dll (0x7ffe5377)