Re: Problems with remote repository access via sftp

Denis Corbin <[email protected]> Sun, 20 Nov 2022 21:40:13 +0100
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
On 16/11/2022 21:14, Martin Michel wrote:
> Hi Denis,
> 
>> looking at the stack at the time of the segfault, we saw this
>> occurring "below" libcurl in getaddrinfo() call (part of glibc). There
>> is a bug
>> in that part that could explain this problem (affecting only
>> statically linked binaries in multi-threaded context).
> 
> Interesting.  I remember statically compiling against getaddrinfo() from
> glibc has some issues.  Wasn't it the case that those binaries only work
> if you run them on the same glibc version?

well, normally a statically linked binary has only the kernel as 
interface nothing else of the operating system...

>  In my case it was not about
> multi-threading though.  My workaround back at that time was that I
> resorted to musl libc, compiled the binary on Alpine Linux and shared it
> from there.
> 

> [...]
> 
> Note that I am using Void glibc version, there is also a musl one.  If
> the bug is due to the glibc stuff, I would guess, it will work with
> musl.

Good idea. I'm now currently doing that, already spent some time 
discovering Void Linux distro, installing adding the necessary packages, 
and building the static flavors of needed libraries that were not 
provided. Well, I'm still having some issue building a static libcurl 
version but that's a matter of time.

> 
> Best regards,
> Martin
> 

Cheers,
Denis
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed