Il giorno gio 5 nov 2026 alle ore 10:08 Alperen Erkan
<[email protected]> ha scritto:
>
> Hello Gianluca,
>
> Thank you for sharing the GDB and build output. The link command includes 
> --wrap=gethostbyname. Since both tests call will_return() before entering 
> lookup_host(), the breakpoint on __wrap_gethostbyname() leaves alone open the 
> possibility that the failure occurs during mock setup. The build also uses 
> /usr/local/include and /usr/local/lib, while Debian's cmocka 1.1.8 packages 
> are installed.
>
> I suggest three checks:
>
>  - Could you share the libcmocka entry from ldd ./tests/test_httpfs? The 
> -L/usr/local/lib option affects library selection at link time. The ldd 
> output would show which library the executable resolves at runtime.
>
>  - Could you set breakpoints on both _will_return and lookup_host? If the 
> assertion occurs before execution reaches lookup_host, that would localize 
> the failure to mock setup. If execution reaches lookup_host, disassemble 
> lookup_host should show whether the resolver call targets 
> __wrap_gethostbyname.
>
>  - For a baseline, I would start with a clean build using Debian's cmocka 
> 1.1.8 headers and library together. If you also test 2.0.0, please use its 
> headers and library from the same installation and verify the runtime library 
> path again. This would let us compare the two builds while keeping the 
> headers and runtime library consistent in each.
>
> Best regards,
> Alperen

Hi Alperen,

no need to do the above.

I have removed from the system cmocka 2.0.0 I have installed some time
ago and use the Debian/Hurd cmocka package version instead and now
tests are green.

The new patch will follow this email.

Gianluca

Reply via email to