cygwin 3.6.0 vs. libbsd 0.11.7-3: -lbsd breaks setproctitle()

Christian Franke Christian.Franke@t-online.de
Fri Feb 21 11:15:43 GMT 2025


Corinna Vinschen via Cygwin wrote:
> ...
>
> I just deployed 0.12.2-2 as test.  Apart from setproctitle{_init}, it
> also drops exporting the following symbols already exported from Cygwin:
>
>      arc4random*
>      explicit_bzero
>      fpurge
>      getprogname
>      reallocarray
>      reallocf
>      setprogname
>      strlcat
>      strlcpy
>      strnstr
>      wcslcat
>      wcslcpy
>
> Given cygbsd-0.dll still defines these functions, it should still work
> with older executables.

It does, at least with the subset used by stress-ng. A rebuild links and 
runs as expected:

Build with libbsd 0.11.7-3:

         DLL Name: cygbsd-0.dll
         vma:     Ordinal  Hint  Member-Name  Bound-To
         00b9d480  <none>  000a  arc4random
         00b9d488  <none>  0022  heapsort
         00b9d490  <none>  0025  mergesort
         00b9d498  <none>  002e  radixsort
         00b9d4a0  <none>  0034  setproctitle
         00b9d4a8  <none>  0035  setproctitle_init
         00b9d4b0  <none>  003f  strlcat
         00b9d4b8  <none>  0040  strlcpy
         00b9d4c0  <none>  005d  wcslcat
         00b9d4c8  <none>  005e  wcslcpy


Build with libbsd 0.12.2-2:

         DLL Name: cygbsd-0.dll
         vma:     Ordinal  Hint  Member-Name  Bound-To
         00ba1490  <none>  0021  heapsort
         00ba1498  <none>  0024  mergesort
         00ba14a0  <none>  002d  radixsort

         DLL Name: cygwin1.dll
         ...
         00ba1610  <none>  00c5  arc4random
         ...
         00ba20d0  <none>  0544  setproctitle
         ...
         00ba22b8  <none>  05b1  strlcat
         00ba22c0  <none>  05b2  strlcpy
         ...
         00ba24c8  <none>  067b  wcslcat
         00ba24d0  <none>  067c  wcslcpy

-- 
Regards,
Christian



More information about the Cygwin mailing list