To do some troubleshooting, I remarked out the ' log_error' line of
./sapi/nsapi.c in the 4.2.0 rc1,  since it didnt seem likely to me that the
writing to the logfile was causing the core dump here ;)

/*   log_error(LOG_INFORM, "php4_init", sn, rq, "Initialized PHP Module\n");
*/

and recompiled, got a signal 11 and a coredump just like before, and did a
new backtrace on the rc1 of 4.2.0.

When looking at the bt, it seems like TSRM is causing the real underlying
problem here... Ive seen some patches in the TSRM code that were AIX
specific, and maybe there needs to be done some more things that are
specific for AIX here ? Is there someone who has got some AIX knowledge that
could maybe help me out a bit here ? Im just a simple sysadmin, not a
programmer, but I was sorta hoping that maybe with the help of a programmer
with AIX coding knowledge we can figure out whats going on here ...

Well anyways, here's the bt:

GNU gdb 5.0-aix43-010414
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-ibm-aix4.3.3.0"...(no debugging
symbols found)...
Core was generated by `ns-httpd'.
Program terminated with signal 11, Segmentation fault.
(no debugging symbols found)...#0  0xd14d13f8 in pthread_key_create ()
(gdb) bt
#0  0xd14d13f8 in pthread_key_create ()
#1  0xd14d01c4 in tsrm_startup (expected_threads=1, expected_resources=1,
debug_level=0, debug_filename=0x0) at TSRM.c:108
#2  0xd1658348 in php4_init (pb=0x20088468, sn=0x0, rq=0x0) at nsapi.c:486
#3  0xd0fdaca8 in func_native_pool_wait_work ()
#4  0xd0fdbd88 in func_exec_str ()
#5  0xd0fdb2b4 in INTfunc_exec ()
#6  0xd0fceea0 in INTconf_run_late_init_functions ()
#7  0xd1051d50 in DaemonProcessorUX::__ct ()
#8  0xd10505fc in DaemonProcessor::NewDaemonProcessor ()
#9  0xd1081640 in daemon_run ()
#10 0x10001bac in ?? () from /appl/netscape4/server4/bin/https/bin/ns-httpd
(gdb)

"J.Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi.
>
> I've been having some problems with the nsapi module for iPlanet 4.1 on
AIX
> 4.3.3, and I was kinda hoping someone here could give me some tips.
>
>
> When I compile PHP as an iPlanet module on AIX 4.3.3, the httpd server
> crashes on loading the module (php4_init) with a signal 11/segmentation
> fault. I've tested and verified this bug with the following php versions:
> php 4.0.6, 4.1.1, 4.1.2, and the first release candidate of 4.2.0
> (php-4.2.0RC1).
>
> The same PHP versions work fine on Linux with the same iPlanet version, so
> I'm guessing that there's something that needs to be done different on AIX
> here. The cgi-command line executable, as well as a basic apache module do
> work on AIX, so its 'only' the nsapi module that crashes on AIX.
>
> The configure line I used was:
>
>
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php -exec-pr
> efix=/appl/php
>
> For a backtrace, ive compiled with ''--enable-debug'', and ran gdb (bt):
>
> # gdb /appl/netscape4/server4/bin/https/bin/ns-httpd
> /appl/netscape4/server4/https-splu9029/config/config/core
>
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are welcome to change it and/or distribute copies of it under certain
> conditions. Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details. This GDB was configured as "powerpc-ibm-aix4.3.2.0"...(no
debugging
> symbols found)...
> Core was generated by `ns-httpd'.
> Program terminated with signal 11, Segmentation fault.
> (no debugging symbols found)...#0  0xd1541508 in php4_init (pb=0x5,
> sn=0x0, rq=0x0) at nsapi.c:492
>
>
> 492             log_error(LOG_INFORM, "php4_init", sn, rq, "Initialized
> PHP Module\n");
> (gdb) bt
> #0  0xd1541508 in php4_init (pb=0x5, sn=0x0, rq=0x0) at nsapi.c:492
> #1  0xd0d9aca8 in func_native_pool_wait_work ()
> #2  0xd0d9bd88 in func_exec_str ()
> #3  0xd0d9b2b4 in INTfunc_exec ()
> #4  0xd0d8eea0 in INTconf_run_late_init_functions ()
> #5  0xd0e11d50 in DaemonProcessorUX::__ct ()
> #6  0xd0e105fc in DaemonProcessor::NewDaemonProcessor ()
> #7  0xd0e41640 in daemon_run ()
> #8  0x10001bac in ?? () from
> /appl/netscape4/server4/bin/https/bin/ns-httpd
>
>
>
> Does this make any sense to anyone ?
>
>
> Sincerely,
>
> J.Smith
>
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to