Red Hat Bugzilla – Bug 1020661
slapd daemon fails to start with segmentation fault on s390x < with openldap 2.4.35 / 2.4.36 >
Last modified: 2013-11-10 01:13:22 EST
== Comment: #0 - Sumanth K <firstname.lastname@example.org> - 2013-10-17 02:34:20 ==
slapd daemon hits segmentation fault during start while running openldap test.
patch openldap-security-pie.patch was causing segmentation fault in s390x architecture. S390x arch requires -fPIE option instead of -pie .
From man page of gcc it is specified as follow:
-pie options assumes GOT entries and small data are within a 12-bit range from the
GOT base address; with -fPIC or -fPIE, GOT offsets are computed with 32 bits.
The -pie option was causing segmentation fault in s390x.
Attached patch fixes the issue.
Created attachment 813612 [details]
Patch to overcome slapd segmentation fault in s390x
------- Comment From email@example.com 2013-10-18 14:15 EDT-------
while having a look ...
-f option in the link phase seems to be different and hence i think it doesnt make it Position independent.
i have misunderstood the option of gcc with ld...However the following patch openldap-security-pie.patch is causing problem...Will try to fix it..
------- Comment From firstname.lastname@example.org 2013-10-18 14:28 EDT-------
One way to overcome this might be to export CFLAGS="-fPIC" in the openldap.spec if it is s390x....
Pushed (to master only):
You can find a srpm at http://koji.fedoraproject.org/koji/buildinfo?buildID=472772.
I tested this on an s390x machine and all seems fine. I'll leave this in master for a while, unless I have a positive response from the reporter.
------- Comment From email@example.com 2013-10-22 04:54 EDT-------
Will check it and update the result
------- Comment From firstname.lastname@example.org 2013-10-23 05:09 EDT-------
ran mdb/bdb/hdb test <rpmbuild/BUILD/openldap-2.4.36/openldap-2.4.36/tests community testcases> and didnt cause any segmentation fault in s390x .
openldap-2.4.36-4.fc20 has been submitted as an update for Fedora 20.
openldap-2.4.36-4.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openldap-2.4.36-4.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
openldap-2.4.36-4.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
openldap-2.4.36-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.