From:             [EMAIL PROTECTED]
Operating system: PLD Linux
PHP version:      4.1.2
PHP Bug Type:     Reproducible crash
Bug description:  php 4.2.0RC3 always crashes apache 2.0.35 server at start

I wanted to test apache 2.0.35 with php 4.2.0RC3 on my Linux (2.4 kernel,
2.5.5 glibc, gcc 3.1 20020408 prerelease) unfortunately it always crashes
at start (backtrace below).

Anyway if fix is know then please let me know - I want to test it. I also
can provide more information if needed.

httpd -X
gdb /usr/sbin/httpd core 
...
#0  0x008332ce in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310
310                            
TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id,
thread_resources->count);
(gdb) where
#0  0x008332ce in ts_resource_ex (id=1, th_id=0x0) at TSRM.c:310
#1  0x0077e56c in php_module_startup (sf=0x602020) at main.c:856
#2  0x00600cb5 in php_apache_server_startup (pconf=0x4d4010,
plog=0x513010, ptemp=0xad7010, s=0x4d5d60)
    at sapi_apache2.c:433
#3  0x080681e5 in ap_run_post_config (pconf=0x4d4010, plog=0x513010,
ptemp=0xad7010, s=0x4d5d60) at config.c:130
#4  0x0806e7a5 in main (argc=2, argv=0xbffff9f4) at main.c:611
#5  0x003c0418 in __libc_start_main () from /lib/libc.so.6
$1 = (struct _tsrm_tls_entry *) 0xadcff0
(gdb) print *thread_resources
$2 = {storage = 0x1, count = 1885497708, thread_id = 1932420708, next =
0x312e6f}
(gdb) print *thread_resources->storage
Cannot access memory at address 0x1
(gdb) print thread_resources->storage
$3 = (void **) 0x1
(gdb) print thread_resources->count  
$4 = 1885497708
(gdb) info threads
* 1 process 5627  0x008332ce in ts_resource_ex (id=1, th_id=0x0) at
TSRM.c:310
(gdb) l
305                             TSRM_ERROR((TSRM_ERROR_LEVEL_INFO,
"Fetching resource id %d for current thread %d", id, (long)
thread_resources->thread_id));
306                             /* Read a specific resource from the
thread's resources.
307                              * This is called outside of a mutex, so
have to be aware about external
308                              * changes to the structure as we read
it.
309                              */
310                            
TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id,
thread_resources->count);
311                     }
312                     thread_id = tsrm_thread_id();
313             } else {
314                     thread_id = *th_id;

-- 
Edit bug report at http://bugs.php.net/?id=16583&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16583&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16583&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16583&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16583&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16583&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16583&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16583&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16583&r=submittedtwice

Reply via email to