|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-17 06:56 UTC] chregu@php.net
If i compile php wit ext/xslt and ext/java, new java segfaults.
here the system:
jdk 1.3.1 from sun
java -version:
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
php cvs-branch php_4_0_7
configure:
"./configure" \
"--with-config-file-path=/usr/local/apache/conf" \
"--enable-debug=yes" \
"--with-apxs=/usr/local/apache/bin/apxs" \
"--with-java=/usr/lib/java" \
"--enable-xslt" \
"--with-xslt-sablot" \
testscript:
$system = new Java('java.lang.System');
print 'Java version='.$system->getProperty('java.version').' <br>';
print 'Java vendor=' .$system->getProperty('java.vendor').' <br>';
print 'OS='.$system->getProperty('os.name').' '.
$system->getProperty('os.version').' on '.
$system->getProperty('os.arch').' <br>';
gdb output:
(no debugging symbols found)...(no debugging symbols found)...[New Thread 1024 (LWP 23557)]
[New Thread 2049 (LWP 23558)]
[New Thread 1026 (LWP 23559)]
[New Thread 2051 (LWP 23560)]
[New Thread 3076 (LWP 23561)]
[New Thread 4101 (LWP 23562)]
[New Thread 5126 (LWP 23563)]
[New Thread 6151 (LWP 23564)]
[New Thread 7176 (LWP 23565)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 7176 (LWP 23565)]
0x400f0860 in free () from /lib/libc.so.6
(gdb) bt
#0 0x400f0860 in free () from /lib/libc.so.6
#1 0x4035116f in Arena::dispose () from /usr/lib/libsablot.so.0
#2 0x403511bc in Arena::~Arena () from /usr/lib/libsablot.so.0
#3 0x40724b77 in ciEnv::~ciEnv ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#4 0x40734663 in CompileBroker::invoke_compiler_on_method ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#5 0x40734118 in CompileBroker::compiler_thread_loop ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#6 0x4071153a in compiler_thread_entry ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#7 0x4070e17f in JavaThread::thread_main_inner ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#8 0x4070e12b in JavaThread::run ()
from /usr/lib/java/jre/lib/i386/client/libjvm.so
#9 0x406dc023 in _start () from /usr/lib/java/jre/lib/i386/client/libjvm.so
#10 0x4092ce85 in pthread_start_thread () from /lib/libpthread.so.0
#11 0x4092cecd in pthread_start_thread_event () from /lib/libpthread.so.0
(gdb)
Hope someone still does maintain ext/java (it's quite useful in some situations..)
chregu
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
I have the same problem: PHP 4.1.1 Debian Linux 2.2 with all updates as of 1st Feb. 2002 Apache 1.3.23 (or Apache delivered with debian, doesn't matter) Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02) Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode) (or JDK 1.3.1_01, doesnt' matter) Sablotron 0.71 or 0.82 (doesn't matter) ./configure \ --with-tsrm-pthreads \ --prefix=/opt/apache-1.3.23/php-4.1.1 \ --with-apxs=/opt/apache-1.3.23/bin/apxs \ --enable-xslt \ --with-xslt-sablot=/opt/local \ --enable-sablot-errors-descriptive Adding 50 other directives doesn't matter. As soon as I remove --enable-xslt and --with-xslt-sablot "new Java(...)" works.