Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1416196

Summary: MHD_start_daemon fails with errno=2. works with 0.9.46 fails with 0.9.52
Product: [Fedora] Fedora Reporter: Stu Mark <smark>
Component: libmicrohttpdAssignee: MartinKG <mgansser>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: georgmueller, lnykryn, mgansser, ngompa13, tim
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libmicrohttpd-0.9.52-3.fc25 libmicrohttpd-0.9.52-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 21:21:02 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:

Description Stu Mark 2017-01-24 20:32:46 UTC
Description of problem:
We have a production application that builds and runs on everything using libmicrohttpd
We rebuilt it on fedora 24 today and found that we can't start the microhttpd server. We changed nothing, it just returns NULL with errno = 2.
When I removed 0.9.52 and installed 0.9.46 it started working again.


Version-Release number of selected component (if applicable):

0.9.52

How reproducible:
every single time.

Steps to Reproduce:
1.
2.
3.

I don't have a simple test program, but we do this:

        m_pMicroHttp = MHD_start_daemon(
                MHD_USE_THREAD_PER_CONNECTION |MHD_USE_TLS, //, MHD_USE_SSL, //|MHD_USE_DEBUG,//|MHD_SUPPRESS_DATE_NO_CLOCK,
                m_nListenPort, NULL, NULL,
                HttpServer::ConnectionHandler, (void*)this,
                MHD_OPTION_NOTIFY_COMPLETED, HttpServer::RequestCompleted, NULL,
                MHD_OPTION_HTTPS_MEM_KEY, sKey.c_str(),
                MHD_OPTION_HTTPS_MEM_CERT, sCertificate.c_str(),
                MHD_OPTION_HTTPS_MEM_TRUST, sTrust.c_str(),
                MHD_OPTION_HTTPS_CRED_TYPE, GNUTLS_CRD_CERTIFICATE, //GNUTLS_CRD_ANON
                MHD_OPTION_CONNECTION_TIMEOUT, nTimeout,
                MHD_OPTION_END );




Actual results:

MHD_start_daemon returns NULL, errno = 2

Expected results:
MHD_start_daemon returns a working server


Additional info:

help!??!?

Comment 1 Stu Mark 2017-01-25 16:29:01 UTC
this also affects fedora 25.

Comment 2 Fedora Update System 2017-01-26 08:35:38 UTC
libmicrohttpd-0.9.52-2.fc24 libmicrohttpd-0.9.52-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-eb8164f53f

Comment 3 Fedora Update System 2017-01-26 08:48:32 UTC
libmicrohttpd-0.9.52-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-aaf05cdbba

Comment 4 Stu Mark 2017-01-26 14:44:07 UTC
I tested with this:

https://koji.fedoraproject.org/koji/buildinfo?buildID=836357


[root@localhost agent-linux]# rpm -qa | grep microht
libmicrohttpd-0.9.52-2.fc25.x86_64
libmicrohttpd-devel-0.9.52-2.fc25.x86_64

it still fails the same way.

Comment 5 Fedora Update System 2017-01-27 15:16:48 UTC
libmicrohttpd-0.9.46-3.fc25 libmicrohttpd-0.9.46-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7cf3bd9a7d

Comment 6 Fedora Update System 2017-01-27 15:18:57 UTC
libmicrohttpd-0.9.46-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ccb53e6046

Comment 7 Stu Mark 2017-01-27 16:47:58 UTC
That worked...

[root@localhost agent-linux]# rpm -qa | grep microht
libmicrohttpd-0.9.46-3.fc24.x86_64
libmicrohttpd-devel-0.9.46-3.fc24.x86_64
[root@localhost agent-linux]# 

Thanks kindly.

Comment 8 Fedora Update System 2017-01-27 19:54:40 UTC
libmicrohttpd-0.9.52-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-eb8164f53f

Comment 9 Fedora Update System 2017-01-28 04:54:31 UTC
libmicrohttpd-0.9.52-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-aaf05cdbba

Comment 10 MartinKG 2017-01-30 09:19:25 UTC
@Stu
could you please test with libmicrohttpd-0.9.52-3 from koji build,
and give me a feedback if it works or not.
https://koji.fedoraproject.org/koji/taskinfo?taskID=17474406

Comment 11 Stu Mark 2017-01-30 14:02:28 UTC
That seems to have done it.  Builds and runs and works okay.

Thanks.

Comment 12 Stu Mark 2017-01-30 14:03:00 UTC
for reference

[root@localhost ~]# rpm -qa | grep libmicro
libmicrohttpd-devel-0.9.52-3.fc24.x86_64
libmicrohttpd-0.9.52-3.fc24.x86_64
[root@localhost ~]#

Comment 13 Fedora Update System 2017-01-30 16:12:12 UTC
libmicrohttpd-0.9.52-3.fc24 libmicrohttpd-0.9.52-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-530d097adf

Comment 14 Fedora Update System 2017-01-30 16:13:45 UTC
libmicrohttpd-0.9.52-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c1b867713f

Comment 15 Fedora Update System 2017-01-31 02:52:21 UTC
libmicrohttpd-0.9.52-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-530d097adf

Comment 16 Fedora Update System 2017-01-31 03:52:14 UTC
libmicrohttpd-0.9.52-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c1b867713f

Comment 17 Fedora Update System 2017-02-01 21:21:02 UTC
libmicrohttpd-0.9.52-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2017-02-07 22:19:24 UTC
libmicrohttpd-0.9.52-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.