[PHP-DEV] Bug #13174: SIGABRT when starting iPlanet From: aki.hakkila <email protected>
Date: 09/06/01

From: aki.hakkila <email protected>
Operating system: Solaris 2.6
PHP version: 4.0.6
PHP Bug Type: iPlanet related
Bug description: SIGABRT when starting iPlanet

./configure --with-nsapi=/path/to/iplanet --enable-libgcc --with-gnu-ld
--with-debug

PHP NSAPI module crashes during Init.

---
(gdb) bt
#0  0xef184d34 in __sigprocmask ()
#1  0xef17ba5c in _resetsig ()
#2  0xef17b1a4 in _sigon ()
#3  0xef17dff8 in _thrp_kill ()
#4  0xef0ba608 in abort ()
#5  0xeed82c5c in ts_resource_read (thread_resources=0x0, id=1387488)
    at TSRM.c:319
#6  0xeed82c2c in ts_resource_ex (id=0, th_id=0x15daa8) at TSRM.c:302
#7  0xeece1414 in php4_init (pb=0x0, sn=0x0, rq=0x0) at nsapi.c:494
#8  0xef6651dc in
__0Fafunc_native_pool_wait_workPFP6GpblockP6HSessionP6HRequest_iUiP6GpblockP6HSessionP6HRequest
()
#9  0xef6647fc in
__0FNfunc_exec_strP6KFuncStructP6GpblockP6HSessionP6HRequest ()
#10 0xef664aa8 in INTfunc_exec ()
#11 0xef662318 in INTconf_run_late_init_functions ()
#12 0xef68f6ac in __0oRDaemonProcessorUXctv ()
#13 0xef695564 in __0fPDaemonProcessorSNewDaemonProcessorvT ()
#14 0xef6918d4 in daemon_run ()
#15 0x2f4e0 in main ()
---

Is the TSRM really supposed to use pthread -functions and data structures with iPlanet instead of NSAPI equivalents? --- (gdb) info functions tsrm* All functions matching regular expression "tsrm*": ... File TSRM.c: void tsrm_error_set(int, char *); pthread_mutex_t *tsrm_mutex_alloc(); void tsrm_mutex_free(pthread_mutex_t *); int tsrm_mutex_lock(pthread_mutex_t *); int tsrm_mutex_unlock(pthread_mutex_t *); void *tsrm_set_new_thread_begin_handler(void (*)()); void *tsrm_set_new_thread_end_handler(void (*)()); void tsrm_shutdown(); int tsrm_startup(int, int, int, char *); pthread_t tsrm_thread_id();

Non-debugging symbols: ef17823c _setsrq --- POSIX threads seem to override NSAPI, since they are used by default and checked before NSAPI. PHP fails to compile if configured --without-tsrm-pthreads

TSRM.h: 48 /* Define THREAD_T and MUTEX_T */ .. 55 #elif defined(PTHREADS) 56 # define THREAD_T pthread_t 57 # define MUTEX_T pthread_mutex_t * 58 #elif defined(NSAPI) 59 # define THREAD_T SYS_THREAD 60 # define MUTEX_T CRITICAL

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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>