Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-04-12 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: iPlanet related
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Maybe the following iPlanet Knowledge base article can be of assistance
here:

http://knowledgebase.iplanet.com/ikb/kb/articles/4869.html

"Mutli-threaded NSAPI SAFs,Article ID: 4869"


When writing multi-threaded NSAPI Server Application Functions(SAFs)
for iPlanet Web Server(iWS) versions 4.1 and later, it is necessary to
call the following function: 

   prepare_nsapi_thread (rq, sn)

You should make this call the first call of any new thread.  This call
replaces the need to use "systhread_setdata( getThreadMallocKey(),
sn->pool )," which was used in earlier versions of the web server.
Note: You may need to forward declare the function when compiling with
iWS 4.1.  

The declaration should appear as follows: 
   
NSAPI_PUBLIC void prepare_nsapi_thread (Request * rq, Session * sn);


Previous Comments:


[2002-04-06 11:05:18] [EMAIL PROTECTED]

Is the NSAPI Module really supposed to use pthreads ?
In the Netscape Knowledge Base, at :
http://kb.netscape.com/NASApp/kb/Article?id=2861&?GXHC_gx_session_id_=f5d6dd1516942f3c&;


its stated that "... NSAPI does not support pthreads ... "

Still, that doesnt explain why the same php versions and iPlanet
version *do* work correctly on my Linux box, and not on AIX...

Ive seen some other bug reports here from people having similair
problems with iPlanet and php on the Solaris platform, so I guess its
not strictly aix related either ...



[2002-03-28 04:28:36] [EMAIL PROTECTED]

Did a new backtrace on the rc1 of 4.2.0, and im not completly sure that
this is the same bug, or a new bug here... 

but 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)



[2002-03-22 06:06:26] [EMAIL PROTECTED]

Bug verified and still present in release candidate 1 of php 4.2.0
(php-4.2.0RC1).



[2002-03-05 05:59:53] [EMAIL PROTECTED]

Compiled php 4.1.2 using IBM's C for AIX Compiler v4.4.0.3 instead of
using GCC, and verified that with the different compiler the bug still
existed.



[2002-03-04 06:55:10] [EMAIL PROTECTED]

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15778

-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-04-06 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
-Bug Type: Reproducible crash
+Bug Type: iPlanet related
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Is the NSAPI Module really supposed to use pthreads ?
In the Netscape Knowledge Base, at :
http://kb.netscape.com/NASApp/kb/Article?id=2861&?GXHC_gx_session_id_=f5d6dd1516942f3c&;


its stated that "... NSAPI does not support pthreads ... "

Still, that doesnt explain why the same php versions and iPlanet
version *do* work correctly on my Linux box, and not on AIX...

Ive seen some other bug reports here from people having similair
problems with iPlanet and php on the Solaris platform, so I guess its
not strictly aix related either ...


Previous Comments:


[2002-03-28 04:28:36] [EMAIL PROTECTED]

Did a new backtrace on the rc1 of 4.2.0, and im not completly sure that
this is the same bug, or a new bug here... 

but 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)



[2002-03-22 06:06:26] [EMAIL PROTECTED]

Bug verified and still present in release candidate 1 of php 4.2.0
(php-4.2.0RC1).



[2002-03-05 05:59:53] [EMAIL PROTECTED]

Compiled php 4.1.2 using IBM's C for AIX Compiler v4.4.0.3 instead of
using GCC, and verified that with the different compiler the bug still
existed.



[2002-03-04 06:55:10] [EMAIL PROTECTED]

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1



[2002-03-01 12:27:31] [EMAIL PROTECTED]

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15778

-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-03-28 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Did a new backtrace on the rc1 of 4.2.0, and im not completly sure that
this is the same bug, or a new bug here... 

but 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)


Previous Comments:


[2002-03-22 06:06:26] [EMAIL PROTECTED]

Bug verified and still present in release candidate 1 of php 4.2.0
(php-4.2.0RC1).



[2002-03-05 05:59:53] [EMAIL PROTECTED]

Compiled php 4.1.2 using IBM's C for AIX Compiler v4.4.0.3 instead of
using GCC, and verified that with the different compiler the bug still
existed.



[2002-03-04 06:55:10] [EMAIL PROTECTED]

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1



[2002-03-01 12:27:31] [EMAIL PROTECTED]

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)



[2002-02-28 06:13:51] [EMAIL PROTECTED]

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15778

-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-03-22 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Bug verified and still present in release candidate 1 of php 4.2.0
(php-4.2.0RC1).


Previous Comments:


[2002-03-05 05:59:53] [EMAIL PROTECTED]

Compiled php 4.1.2 using IBM's C for AIX Compiler v4.4.0.3 instead of
using GCC, and verified that with the different compiler the bug still
existed.



[2002-03-04 06:55:10] [EMAIL PROTECTED]

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1



[2002-03-01 12:27:31] [EMAIL PROTECTED]

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)



[2002-02-28 06:13:51] [EMAIL PROTECTED]

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.



[2002-02-28 06:04:27] [EMAIL PROTECTED]


When I compile PHP as an iPlanet module, the httpd server crashes on
loading the module (php4_init) with a signal 11/segmentation fault. I
get the same behaviour with php 4.1.1 and with 4.1.2. (output below is
from 4.1.2)

When compiling as a commandline executable, everything seems to work
fine though, so I guess its a problem with iPlanet and maybe in
combination with AIX 4.3.3 and shared libraries.

I compiled using GCC, not AIX's 'native' compiler.

If more information is needed to address this issue, please let me
know. Please be aware though, that even though I am decently skilled in
*nix administration, I have no programming or debugging skills, so
please provide 'idiot instructions' ;)

The configure line I used:
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php
-exec-prefix=/appl/php --enable-debug

The output of 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







-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-03-05 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Compiled php 4.1.2 using IBM's C for AIX Compiler v4.4.0.3 instead of
using GCC, and verified that with the different compiler the bug still
existed.


Previous Comments:


[2002-03-04 06:55:10] [EMAIL PROTECTED]

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1



[2002-03-01 12:27:31] [EMAIL PROTECTED]

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)



[2002-02-28 06:13:51] [EMAIL PROTECTED]

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.



[2002-02-28 06:04:27] [EMAIL PROTECTED]


When I compile PHP as an iPlanet module, the httpd server crashes on
loading the module (php4_init) with a signal 11/segmentation fault. I
get the same behaviour with php 4.1.1 and with 4.1.2. (output below is
from 4.1.2)

When compiling as a commandline executable, everything seems to work
fine though, so I guess its a problem with iPlanet and maybe in
combination with AIX 4.3.3 and shared libraries.

I compiled using GCC, not AIX's 'native' compiler.

If more information is needed to address this issue, please let me
know. Please be aware though, that even though I am decently skilled in
*nix administration, I have no programming or debugging skills, so
please provide 'idiot instructions' ;)

The configure line I used:
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php
-exec-prefix=/appl/php --enable-debug

The output of 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







-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-03-04 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Bug verified and still present in snapshot "php4-20020304" on AIX
4.3.3 and iPlanet 4.1


Previous Comments:


[2002-03-01 12:27:31] [EMAIL PROTECTED]

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)



[2002-02-28 06:13:51] [EMAIL PROTECTED]

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.



[2002-02-28 06:04:27] [EMAIL PROTECTED]


When I compile PHP as an iPlanet module, the httpd server crashes on
loading the module (php4_init) with a signal 11/segmentation fault. I
get the same behaviour with php 4.1.1 and with 4.1.2. (output below is
from 4.1.2)

When compiling as a commandline executable, everything seems to work
fine though, so I guess its a problem with iPlanet and maybe in
combination with AIX 4.3.3 and shared libraries.

I compiled using GCC, not AIX's 'native' compiler.

If more information is needed to address this issue, please let me
know. Please be aware though, that even though I am decently skilled in
*nix administration, I have no programming or debugging skills, so
please provide 'idiot instructions' ;)

The configure line I used:
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php
-exec-prefix=/appl/php --enable-debug

The output of 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







-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-03-01 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

Ok, as another test, Ive tried to compile PHP 4.1.2 on the same AIX
4.3.3 box, but now as an Apache 1.3.22 DSO module, and that seems to
work just fine.

And since ive got the same php version (4.1.1 & 4.1.2) in combination
with the same iPlanet version (4.1) running correctly on Linux, I guess
this means that this only occurs on this specific combined setup:

AIX 4.3.3
iPlanet 4.1
PHP 4.1.1 & 4.1.2 (at least, maybe other versions too)


Previous Comments:


[2002-02-28 06:13:51] [EMAIL PROTECTED]

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.



[2002-02-28 06:04:27] [EMAIL PROTECTED]


When I compile PHP as an iPlanet module, the httpd server crashes on
loading the module (php4_init) with a signal 11/segmentation fault. I
get the same behaviour with php 4.1.1 and with 4.1.2. (output below is
from 4.1.2)

When compiling as a commandline executable, everything seems to work
fine though, so I guess its a problem with iPlanet and maybe in
combination with AIX 4.3.3 and shared libraries.

I compiled using GCC, not AIX's 'native' compiler.

If more information is needed to address this issue, please let me
know. Please be aware though, that even though I am decently skilled in
*nix administration, I have no programming or debugging skills, so
please provide 'idiot instructions' ;)

The configure line I used:
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php
-exec-prefix=/appl/php --enable-debug

The output of 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







-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1




Bug #15778 Updated: Segmentation Fault with iPlanet module on php4_init

2002-02-28 Thread lbalbalba

 ID:   15778
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: AIX 4.3.3
 PHP Version:  4.1.2
 New Comment:

As a test, Ive tried compiling the same version of PHP in combination
with the same version of iPlanet on my linux system, and everything
seems to work fine on my linux box. 

So I guess this only occurs in combination with AIX.


Previous Comments:


[2002-02-28 06:04:27] [EMAIL PROTECTED]


When I compile PHP as an iPlanet module, the httpd server crashes on
loading the module (php4_init) with a signal 11/segmentation fault. I
get the same behaviour with php 4.1.1 and with 4.1.2. (output below is
from 4.1.2)

When compiling as a commandline executable, everything seems to work
fine though, so I guess its a problem with iPlanet and maybe in
combination with AIX 4.3.3 and shared libraries.

I compiled using GCC, not AIX's 'native' compiler.

If more information is needed to address this issue, please let me
know. Please be aware though, that even though I am decently skilled in
*nix administration, I have no programming or debugging skills, so
please provide 'idiot instructions' ;)

The configure line I used:
./configure --with-nsapi=/appl/netscape4/server4 --prefix=/appl/php
-exec-prefix=/appl/php --enable-debug

The output of 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







-- 
Edit this bug report at http://bugs.php.net/?id=15778&edit=1