php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13088 Java call creates Segmentation Fault in Apache.
Submitted: 2001-09-01 00:19 UTC Modified: 2002-03-25 00:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: hertz60 at hotmail dot com Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-09-01 00:19 UTC] hertz60 at hotmail dot com
Running Linux RH 7.1, Apache 1.3.19 (mod_ssl, OpenSSL, php is a static module), Sun JDK1.3.1(also recreated with Blackdown 1.3.1).  
 ./configure 
--with-pfpro=shared,/tmp/verisign/payflowpro/linux 
--enable-trackvars 
--with-apache=/tmp/apache_1.3.19
--with-java=/usr/java/j2sdk1.3.1 
--with-zlib
--with-mysql=/usr/local/mysql

The following is the test script:

<?php
$systemInfo = new Java("java.lang.System");
print "Total seconds since January 1, 1970:
 " . $systemInfo->currentTimeMillis();
?>  

And the Backtrace:
#0  0x40009e1b in _dl_lookup_versioned_symbol () at eval.c:41
#1  0x4000d816 in fixup () at eval.c:41
#2  0x4000d9b0 in _dl_runtime_resolve () at eval.c:41
#3  0x405219b2 in os::thread_local_storage_at_put ()
   from /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so
#4  0x40556887 in ThreadLocalStorage::set_thread ()
   from /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so
#5  0x40552a81 in Threads::create_vm ()
   from /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so
#6  0x404c2958 in JNI_CreateJavaVM ()
   from /usr/java/jdk1.3.1/jre/lib/i386/hotspot/libjvm.so
#7  0x40212969 in jvm_create () at java.c:254
#8  0x40212ed7 in java_call_function_handler (ht=1, return_value=0x821e444,
    this_ptr=0x82236f4, return_value_used=1, property_reference=0xbfffe548)
    at java.c:435
#9  0x0810b119 in call_overloaded_function (T=0xbfffe53c, arg_count=1,
    return_value=0x821e444) at ./zend_execute.c:856
#10 0x0810e45f in execute (op_array=0x821e2b4) at ./zend_execute.c:1566
#11 0x080e65be in zend_execute_scripts (type=8, file_count=3) at zend.c:752
#12 0x0807e39f in php_execute_script (primary_file=0xbffff880) at main.c:1206
#13 0x080f1fe6 in apache_php_module_main (r=0x8216684, display_source_mode=0)
    at sapi_apache.c:89
#14 0x9122212602021111mjm0807bdd0 in send_php () at eval.c:41  
    at java.c:435
#9  0x0810b119 in call_overloaded_function (T=0xbfffe53c, arg_count=1,
    return_value=0x821e444) at ./zend_execute.c:856
#10 0x0810e45f in execute (op_array=0x821e2b4) at ./zend_execute.c:1566
#11 0x080e65be in zend_execute_scripts (type=8, file_count=3) at zend.c:752
#12 0x0807e39f in php_execute_script (primary_file=0xbffff880) at main.c:1206
#13 0x080f1fe6 in apache_php_module_main (r=0x8216684, display_source_mode=0)
    at sapi_apache.c:89
#14 0x0807bdd0 in send_php () at eval.c:41
---Type <return> to continue, or q <return> to quit---
#15 0x0807be05 in send_parsed_php () at eval.c:41
#16 0x08118097 in ap_invoke_handler () at eval.c:41
#17 0x0812c383 in process_request_internal () at eval.c:41
#18 0x0812c3e4 in ap_process_request () at eval.c:41 cZXfd vgb , 
+22.23.9
#19 0x08123769 in child_main () at eval.c:41
#20 0x08123938 in make_child () at eval.c:41
#21 0x08123aac in startup_children () at eval.c:41
#22 0x081240ff in standalone_main () at eval.c:41
#23 0x08124943 in main () at eval.c:41
#24 0x400d1177 in __libc_start_main (main=0x8124588 <main>, argc=2,
    ubp_av=0xbffffb5c, init=0x8063ad8 <_init>, fini=0x8154530 <_fini>,
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffb4c)
    at ../sysdeps/generic/libc-start.c:129    

One note, this may not be php, the reason for this is that I got the php/java module up with Kaffe, but Sun's and Blackdown's JDK cause the Segmentation Fault.  Also no core is created.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-24 06:12 UTC] yohgaki@php.net
Please test with  PHP 4.1.1+JDK 1.2 and report the result back 
Please do not forget  updating PHP version. Thanks.
 [2002-03-25 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 06:01:22 2020 UTC