|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-28 06:04 UTC] lbalbalba at hotmail dot com
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
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. #0 0xd0f49ac8 in pthread_key_create () (gdb) bt #0 0xd0f49ac8 in pthread_key_create () #1 0xd0f48894 in tsrm_startup (expected_threads=1, expected_resources=1, debug_level=0, debug_filename=0x0) at /usr/local/src/php/php4-200210210300/TSRM/TSRM.c:108 #2 0xd11593e8 in php4_init (pb=0x2006af08, sn=0x0, rq=0x0) at /usr/local/src/php/php4-200210210300/sapi/nsapi/nsapi.c:496 #3 0xd0daeca8 in func_native_pool_wait_work () #4 0xd0dafd88 in func_exec_str () #5 0xd0daf2b4 in INTfunc_exec () #6 0xd0da2ea0 in INTconf_run_late_init_functions () #7 0xd0e25d50 in DaemonProcessorUX::__ct () #8 0xd0e245fc in DaemonProcessor::NewDaemonProcessor () #9 0xd0e55640 in daemon_run () #10 0x10001bac in ?? () from /appl/netscape4/server4/bin/https/bin/ns-httpdBug still present in the latest php4 snapshot php4-STABLE-200301290030. Running: OS: AIX 4.3.3 ML10 http server: iPlanet 4.1 SP7, nsapi module PHP version: 4CVS-2003-01-29 (stable) Here's the backtrace # gdb /appl/netscape4/server4/bin/https/bin/ns-httpd /appl/netscape4/server4/https-splu9029/config/core 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. #0 0xd17aaf34 in pthread_key_create () (gdb) bt #0 0xd17aaf34 in pthread_key_create () #1 0xd17aa208 in tsrm_startup (expected_threads=1, expected_resources=1, debug_level=0, debug_filename=0x0) at /usr/local/src/php/php4-STABLE-200301290030/TSRM/TSRM.c:108 #2 0xd18efe8c in php4_init (pb=0x20136c18, sn=0x0, rq=0x0) at /usr/local/src/php/php4-STABLE-200301290030/sapi/nsapi/nsapi.c:498 #3 0xd11b8ca8 in func_native_pool_wait_work () #4 0xd11b9d88 in func_exec_str () #5 0xd11b92b4 in INTfunc_exec () #6 0xd11acea0 in INTconf_run_late_init_functions () #7 0xd122fd50 in DaemonProcessorUX::__ct () #8 0xd122e5fc in DaemonProcessor::NewDaemonProcessor () #9 0xd125f640 in daemon_run () #10 0x10001bac in ?? () from /appl/netscape4/server4/bin/https/bin/ns-httpd (gdb)