Bug 10335
Summary: | Loading custom libphp3.so segfaults on startup | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Secure Web Server | Reporter: | Peter Zingg <pzingg> | ||||
Component: | secureweb | Assignee: | Nalin Dahyabhai <nalin> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 3.1 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2000-03-27 17:48:35 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
Peter Zingg
2000-03-25 00:19:57 UTC
Created attachment 160 [details]
Stack trace after fault from gdb
I found out that the bug is only present when i compile libphp3.so with configuration option "--with-openlink". I'm guessing that the openlink libraries are causing some linkage problems. I'm kind of a newbie at the unix linker/loader. Openlink sdk is available for libc5, glibc2 and glibc2.1. I'm using the glibc2.1 version. Is that right? Yes, the 2.1 SDK is correct version to use with 3.1. Looking at the stack trace shows the server dying when calling the mysql initialization routine, which dies in a glibc internal function. Because glibc usually doesn't die in getservbyname(), this would indicate that memory is being overwritten or the stack is getting trashed somewhere before this function is called. Whether this is due to problems with openlink or interactions between openlink and MySQL, I can't tell. It was a link problem. I had several copies of libiodbc.so floating around on my system, and I didn't specify explicitly which one to use when configuring mod_php. For RedHat 6.1, use the libiodbc source distribution at http://www.iodbc.org, and point the mod_php build to the compiled shared libaries, with a "--with-iodbc=<path to libidobc>" configuration parameter. You can close this one, I guess. |