[Pkg-sssd-devel] Bug#1067838: Bug#1067838: Please provide a trivial working example

Simon Josefsson simon at josefsson.org
Wed Mar 27 15:28:53 GMT 2024


Thanks -- alas I think this is the same as this one:

https://bugs.launchpad.net/ubuntu/+source/resolv-wrapper/+bug/2015570

Rebuild the binary package and installing it should make things work
again.  Could you try that?

I'm not sure how to express this dependency, it seems some behaviour of
glibc is changing that libresolv_wrapper depends on and rebuilding
libresolv_wrapper against the new libc make things work again.  If
someone can debug and come up with a patch, that would be appreciated.

/Simon

Christoph Biedl <debian.axhn at manchmal.in-ulm.de> writes:

> Package: libresolv-wrapper
> Version: 1.1.8-2+b1
> Severity: normal
> Tags: upstream
> X-Debbugs-Cc: debian.axhn at manchmal.in-ulm.de
>
> Greetings,
>
> while looking for a way to overload hostname resolution as non-root
> (part of a test suite and/or autopkgtest), I came across your package.
> However, *nothing* works, not even in the stable releases.
>
> Assuming this is rather a "you're holding it wrong" than a grave bug in
> libresolv-wrapper, I guess usage is not as easy as it seems. So can
> you please provide an as-simple-as-possible example, in the tradition
> of "Hello, world"?
>
> It could be like
>
>     echo "A server1.example.com 192.0.2.1" >/tmp/hosts
>     LD_PRELOAD=libresolv_wrapper.so \
>         RESOLV_WRAPPER_HOSTS=/tmp/hosts \
>             $MAGIC
>
> where the output signalizes the hostname server1.example.com was indeed
> resolved into the given IP address.
>
> These are the things I've tried without success:
>
> * getent hosts server1.example.com
> * host server1.example.com
> * wget -O /dev/null http://server1.example.com/
> * the actual application, using a gnutls linkage
>
> According to strace, libresolv_wrapper.so is loaded but there is no
> access to the mocked hosts file.
>
> According to ltrace, none of the RESOLV_WRAPPER_* variables are checked
> via getenv.
>
> Not a big surpise then: Setting RESOLV_WRAPPER_DEBUGLEVEL had no effect
> either.
>
> Using <https://github.com/figiel/hosts>, the above checks work except
> for the second one. However, this project is not in Debian.
>
>     Christoph
>
> -- System Information:
> Debian Release: trixie/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 6.6.22 (SMP w/8 CPU threads)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages libresolv-wrapper depends on:
> ii  libc6  2.37-15.1
>
> libresolv-wrapper recommends no packages.
>
> libresolv-wrapper suggests no packages.
>
> -- no debconf information
>
> _______________________________________________
> Pkg-sssd-devel mailing list
> Pkg-sssd-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-sssd-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 255 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20240327/d045f921/attachment.sig>


More information about the Pkg-sssd-devel mailing list