== Comment: #0 - Sumanth K <sumantk2.com> - 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 sumantk2.com 2013-10-18 14:15 EDT------- Hi kamalesh, 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 sumantk2.com 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): http://pkgs.fedoraproject.org/cgit/openldap.git/commit/?id=4f8940365cb6519fc8b5a785cc617ce808e11d89 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 sumantk2.com 2013-10-22 04:54 EDT------- Will check it and update the result
------- Comment From sumantk2.com 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. https://admin.fedoraproject.org/updates/openldap-2.4.36-4.fc20
openldap-2.4.36-4.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openldap-2.4.36-4.fc19
Package openldap-2.4.36-4.fc20: * 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: https://admin.fedoraproject.org/updates/FEDORA-2013-19761/openldap-2.4.36-4.fc20 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.