Bug 197333 - LDAP auth crashing on x86_64
Summary: LDAP auth crashing on x86_64
Keywords:
Status: CLOSED DUPLICATE of bug 188073
Alias: None
Product: Fedora
Classification: Fedora
Component: httpd
Version: 5
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-30 10:23 UTC by Lars Heete
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-07-03 09:06:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Bugfix for apr (506 bytes, patch)
2006-07-03 08:43 UTC, Bernie Innocenti
no flags Details | Diff

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 ***


Note You need to log in before you can comment on or make changes to this bug.