----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hiya --
The error you're showing is very early in JServ's code -- really, before
there's a chance to do anything. This is the relevant code:
297 /* Create our server config */
298 static void *jserv_server_config_create(pool *p, server_rec *s) {
299 jserv_config *cfg=(jserv_config *)ap_pcalloc(p, sizeof(jserv_config));
300
A core dump at this point suggests one of several things:
1 - Apache's ap_pcalloc is returning a null pointer
2 - the cast operation fails for some reason
3 - subtle memory corruption at an earlier point (this seems unlikely,
but possible)
Before going on, I've one quick question -- have you gotten any other DSOs
(preferably, ones which you compiled yourself) to run on the system in
question?
It's hard for me to figure out why the operations above might fail; but,
if you're willing to walk through server init in gdb, I'd love to see the
output from the following (path names changed to be appropriate for your
installation, of course):
gdb bin/httpd
> set args -X -f conf/httpd.conf
> b ap_single_module_configure
> run
when it hits the break point, take a single step (s) -- you should wind up
in either JServ's create server conf function or in another. If you're
not in JServ's, enter 'c' to continue, and try again.
Once you're at the top of JServ's create server function, enter 's' to
take a step into ap_pcalloc. Once you're in it, enter 'finish' to see
what value is returned. I'd like to see if that value is NULL (0x0). Of
course, it's possible that you'll coredump before you call ap_pcalloc (ie.
as soon as the system tries to run jserv_server_config_create). That'd
also be interesting to know.
Since this does work on a different version of AIX, and it works if JServ
is built statically, I'm inclined to point my finger at your system
libraries -- they're the most likely culprit; another possibility might be
that they're set up to and are producing binaries targetting a different
platform (perhaps 4.1.5, eg.), and that's why the resulting binaries don't
work as DSOs on AIX4.4 ...
good luck --
Ed
On Wed, 16 Feb 2000, Kumi Kitamura wrote:
> Hi,
> I built Apache1.3.11 with DSO support,
> and ApacheJserv1.1 as DSO module on AIX4.3.2.
> Compilation went fine without error.
> The problem is that when I start httpd with Jserv,
> I get Segmentation fault(coredump) error.
>
> I use gcc2.95.2 and C for AIX4.4.
> By using both of them, same symptoms occur.
> Without jserv module,apache works fine.
> And,when I compile Jserv as static module,apache works fine.
> I also built on AIX4.1.5, no problem was happened.
--
See you at ApacheCon 2000 in Orlanda, Florida, March 8-10, 2000.
http://www.Apachecon.com/
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]