Bug 1995196

Summary: resolv_wrapper: seems broken with Kerberos URIs
Product: [Fedora] Fedora Reporter: Robbie Harwood <rharwood>
Component: resolv_wrapperAssignee: Andreas Schneider <asn>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: asn, fdvorak, jhrozek, jrische, madam
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 15:38:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1993463, 2151513    
Attachments:
Description Flags
reproducer (sets up and runs C code) none

Description Robbie Harwood 2021-08-18 15:46:10 UTC
Created attachment 1815270 [details]
reproducer (sets up and runs C code)

krb5 uses resolv_wrapper for testing our DNS discovery.  I've simplified the test into a reproducer that doesn't rely on any krb5 code, just resolv_wrapper and system libraries.  For clarity, a failing run produces "res_nsearch failed: -1" while a successful run produces "Success with length 701".

Working on fc34:
glibc-2.33-20.fc34.x86_64
resolv_wrapper-1.1.7-1.fc34.x86_64

Broken on rawhide:
glibc-2.34-1.fc35.x86_64
resolv_wrapper-1.1.7-2.fc35.x86_64

(My reproducer is attached.  It needs a C compiler and resolv_wrapper installed to work.)

Comment 1 Andreas Schneider 2021-08-19 10:51:51 UTC
As a first step I implemented a new test in resolv_wrapper:

https://gitlab.com/cwrap/resolv_wrapper/-/merge_requests/7

Comment 2 Andreas Schneider 2021-08-19 12:58:39 UTC
Strange, the test I added works on rawhide, but another test fails now: https://kojipkgs.fedoraproject.org//work/tasks/6879/74136879/build.log

Comment 3 Andreas Schneider 2021-08-19 18:02:28 UTC
podman run --network=host -ti registry.fedoraproject.org/fedora:rawhide /bin/bash

[root@krikkit ~]# rpm -q resolv_wrapper
resolv_wrapper-1.1.7-2.fc35.x86_64
[root@krikkit ~]# bash driver.sh 
res_nsearch failed: -1

cd /resolv_wrapper/obj/
[root@krikkit obj]# make install
...

[root@krikkit ~]# bash driver.sh 
Success with length 701

I guess resolv_wrapper just need to be recompiled against a newer glibc version.

Comment 4 Andreas Schneider 2021-08-19 18:17:08 UTC
The problem is another test is failing, so the rebuild needs to wait till I have found that issue ...

Comment 5 Ben Cotton 2022-02-08 21:43:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 6 Andreas Schneider 2022-12-20 15:04:17 UTC
Does this bug still exist? How can I reproduce it?

Comment 7 Andreas Schneider 2022-12-20 15:48:33 UTC
The test I wrote works just fine: https://gitlab.com/cwrap/resolv_wrapper/-/commit/9172ea46b69655603e8db97fc6f1cdffdde03da0

Comment 8 Julien Rische 2022-12-20 17:24:03 UTC
I think that, in krb5's case, you fixed it with https://src.fedoraproject.org/rpms/krb5/pull-request/18

Comment 9 Ben Cotton 2023-04-25 16:43:45 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 10 Ludek Smid 2023-05-25 15:38:13 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.