Custom Apache Module Compile/Runtime Failure on 64-bit RHEL 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I developed a custom Apache module to deal with some specific header
issues in our environment. Everything works great on a 32-bit and a
64-bit ASF Apache build.

However, if I try to build on a 64-bit RedHat 4 server with the RedHat
apxs tool (/usr/sbin/apxs) and then run the module with RedHat Apache
(/usr/sbin/httpd) Apache seg faults anytime a request uses the module.

I boiled it down to the following lines of code by building a test
module and adding a couple lines to the handler (/usr/sbin/apxs -g -n
foo).

void *name;
name = (char *) (size_t) apr_pstrdup(r->pool,"matt");
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, r->server,"[foo:handler]
Entering Foo Handler %s",name);

Anyone run into this before? Any secrets to compile Apache modules for
RedHat's Apache? Has RedHat done something strange?

RedHat's Apache version
Server version: Apache/2.0.52

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux