https://bugzilla.redhat.com/show_bug.cgi?id=2245689
Bug ID: 2245689 Summary: perl-WWW-Curl core dumps perl if use of setopt CURLOPT_RESOLV Product: Fedora EPEL Version: epel9 Hardware: All OS: Linux Status: NEW Component: perl-WWW-Curl Severity: medium Assignee: emmanuel@seyman.fr Reporter: agibson2@gmail.com QA Contact: extras-qa@fedoraproject.org CC: emmanuel@seyman.fr, mspacek@redhat.com, perl-devel@lists.fedoraproject.org, xavier@bachelot.org Target Milestone: --- Classification: Fedora
Description of problem: If you try to use the setopt(CURLOPT_RESOLV, ...) option, perl core dumps. This was tracked down awhile but seems to not be fixed upstream. A previous commit in the upstream source for version 4.17 added #ifdef in Curl.xs for building CURLOPT_RESOLV support but the ifdef for CURLOPT_RESOLV is always false because CURLOPT_RESOLV is an enum and not a define.
Version-Release number of selected component (if applicable):
How reproducible: Every time
Steps to Reproduce: 1. Install perl-WWW-Curl 1. Create program that uses WWW::Curl::Easy and does a setopt OPTCURL_RESOLV. Perl immediately crashes when it hits that line. An example simple source program and an explenation of the problem is below... https://github.com/szbalint/WWW--Curl/issues/9
Additional info: To fix it, removing the #ifdef for CURLOPT_RESOLV in the Curl.xs allows it to be compiled into perl-WWW-Curl.
https://bugzilla.redhat.com/show_bug.cgi?id=2245689
--- Comment #1 from static agibson2@gmail.com --- It looks like besides the license change, the #ifdef was the only change for 4.17 version. They tried to add the #ifdef for old libcurl versions that didn't support for the setopt CURLOPT_RESOLV. I don't know that is an issue with EL8 or EL7. Looking at the changelog for curl/libcurl, it looks like that has been in curl even in EL7.
https://bugzilla.redhat.com/show_bug.cgi?id=2245689
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- FEDORA-EPEL-2023-458b180abe has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-458b180abe
https://bugzilla.redhat.com/show_bug.cgi?id=2245689
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- FEDORA-EPEL-2023-458b180abe has been pushed to the Fedora EPEL 9 testing repository.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-458b180abe
See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
https://bugzilla.redhat.com/show_bug.cgi?id=2245689
--- Comment #4 from static agibson2@gmail.com --- Thanks for this. I updated perl-WWW-Curl on my x86_64 EL 9 system with the linked test RPM in FEDORA-EPEL-2023-458b180abe. CURLOPT_RESOLV works with the updated test RPM installed.
https://bugzilla.redhat.com/show_bug.cgi?id=2245689
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |perl-WWW-Curl-4.17-29.el9 Resolution|--- |ERRATA Status|ON_QA |CLOSED Last Closed| |2023-11-07 03:29:02
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- FEDORA-EPEL-2023-458b180abe has been pushed to the Fedora EPEL 9 stable repository. If problem still persists, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org