Bug 197333

Summary: LDAP auth crashing on x86_64
Product: [Fedora] Fedora Reporter: Lars Heete <hel>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 5CC: bernie+fedora, hel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-03 09:06:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Bugfix for apr none

Description Lars Heete 2006-06-30 10:23:59 UTC
Description of problem:

Version-Release number of selected component (if applicable):
httpd-2.2.0-5.1.2 openldap-2.3.19-4 apr-1.2.2-7.3

How reproducible:
configure apache to use ldap on x86_64, in instantly segfaults when used.


Additional info:

openldap in FC5 hides the declaration of many functions that are deprecated 
(eg. ldap_init in <ldap.h>). Without decl the return type defaults to int, and 
with functions that return pointers you get illegal addresses on 64bit.
To get the missing declarations of openldap the -DLDAP_DEPRECATED definition 
is needed at compile time.

Regards,
Lars Heete

Comment 1 Bernie Innocenti 2006-07-03 07:51:15 UTC
Just noticed the same problem here (x86_64).

It still happens with httpd-2.2.2-1.0.x86_64.


Comment 2 Lars Heete 2006-07-03 07:53:56 UTC
apr-util actually has the same Problem.

Comment 3 Bernie Innocenti 2006-07-03 08:40:37 UTC
Attaching a patch that fixed the problem for me.

Please note that it must be applied to apr, altough
the package containing wrong code is apr-util.

The new apr-devel must be installed while rebuilding
apr-util.


Comment 4 Bernie Innocenti 2006-07-03 08:43:18 UTC
Created attachment 131875 [details]
Bugfix for apr

Please add to apr.spec and rebuild both apr and apr-util
with new apr-devel already installed.

Comment 5 Joe Orton 2006-07-03 09:06:40 UTC
Thanks, there is an apr-util update in the update queue already.  It's not
necessary to make changes to apr to fix this issue.

*** This bug has been marked as a duplicate of 188073 ***