php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20958 PHP engine hangs
Submitted: 2002-12-12 08:45 UTC Modified: 2003-01-02 18:46 UTC
From: pramod_sk123 at rediffmail dot com Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.2.0 OS: Linux, RedHat 7.x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pramod_sk123 at rediffmail dot com
New email:
PHP Version: OS:

 

 [2002-12-12 08:45 UTC] pramod_sk123 at rediffmail dot com
I am using PHP-4.2.0 engine. I am loading oci8.so and
libphp_java.so objects through PHP. When I run a java file an exception is coming and PHP engine hangs. But, the exception vanishes when I don't load oci8.so. So  it is clear that there is a conflict between oci8.so and lib_java.so.

 Please help me>
Following is the command I run:
>>php -f jver.php

OUTPUT OFABOVE COMMAND:
<html>
Java version=1.4.0_01 <br>
Java vendor=Sun Microsystems Inc. <p>

OS=Linux 2.2.16-22 on i386 <br>
Sunday, September 01, 2002 at 8:13:56 AM Eastern Daylight
Time
</html>

An unexpected exception has been detected in native code
outside the VM.
Unexpected Signal : 11 occurred at PC=0x400097B8
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for
the error
   just occurred. Please refer to release documentation
for possible
   reason and solutions.


Current Java thread:

Dynamic libraries:
08048000-08126000 r-xp 00000000 03:01
98662    /usr/bin/php
08126000-08131000 rw-p 000dd000 03:01
98662    /usr/bin/php
40000000-40015000 r-xp 00000000 03:01 389177   /lib/ld-
2.2.so
40015000-40016000 rw-p 00014000 03:01 389177   /lib/ld-
2.2.so
40019000-4001c000 r-xp 00000000 03:01
148156   /usr/lib/20001222/libphp_java.so
4001c000-4001e000 rw-p 00002000 03:01
148156   /usr/lib/20001222/libphp_java.so
4001f000-40020000 r--p 00000000 03:01
34161    /usr/lib/locale/en_US/LC_IDENTIFICATION
40020000-40027000 r-xp 00000000 03:01
387152   /lib/libpam.so.0.72
40027000-40028000 rw-p 00006000 03:01
387152   /lib/libpam.so.0.72
40028000-4002a000 r-xp 00000000 03:01 389182   /lib/libdl-
2.2.so
4002a000-4002b000 rw-p 00001000 03:01 389182   /lib/libdl-
2.2.so
4002c000-40031000 r-xp 00000000 03:01
389181   /lib/libcrypt-2.2.so
40031000-40032000 rw-p 00004000 03:01
389181   /lib/libcrypt-2.2.so
4005a000-40068000 r-xp 00000000 03:01
389196   /lib/libresolv-2.2.so
40068000-40069000 rw-p 0000d000 03:01
389196   /lib/libresolv-2.2.so
4006c000-4008a000 r-xp 00000000 03:01 389183   /lib/libm-
2.2.so
4008a000-4008b000 rw-p 0001d000 03:01 389183   /lib/libm-
2.2.so
4008b000-4009f000 r-xp 00000000 03:01
389184   /lib/libnsl-2.2.so
4009f000-400a0000 rw-p 00013000 03:01
389184   /lib/libnsl-2.2.so
400a2000-401bb000 r-xp 00000000 03:01 389180   /lib/libc-
2.2.so
401bb000-401c1000 rw-p 00118000 03:01 389180   /lib/libc-
2.2.so
401c5000-401df000 r--p 00000000 03:01
34160    /usr/lib/locale/en_US/LC_CTYPE
401ed000-40730000 r-xp 00000000 03:05
434607   /home/oracle/product/8.1.7/lib/libclntsh.so.8.0
40730000-4074e000 rw-p 00542000 03:05
434607   /home/oracle/product/8.1.7/lib/libclntsh.so.8.0
4075e000-4075f000 r--p 00000000 03:01
34162    /usr/lib/locale/en_US/LC_MEASUREMENT
4075f000-40760000 r--p 00000000 03:01
34167    /usr/lib/locale/en_US/LC_TELEPHONE
40760000-40761000 r--p 00000000 03:01
34158    /usr/lib/locale/en_US/LC_ADDRESS
40761000-40762000 r--p 00000000 03:01
34164    /usr/lib/locale/en_US/LC_NAME
40762000-40763000 r--p 00000000 03:01
34166    /usr/lib/locale/en_US/LC_PAPER
40763000-40764000 r--p 00000000 03:01
50034    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
40764000-40765000 r--p 00000000 03:01
34163    /usr/lib/locale/en_US/LC_MONETARY
40765000-40766000 r--p 00000000 03:01
34168    /usr/lib/locale/en_US/LC_TIME
40766000-40767000 r--p 00000000 03:01
34165    /usr/lib/locale/en_US/LC_NUMERIC
40767000-40776000 r-xp 00000000 03:01
389195   /lib/libpthread-0.9.so
40776000-4077d000 rw-p 0000e000 03:01
389195   /lib/libpthread-0.9.so
4077d000-4079f000 r-xp 00000000 03:01
148139   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libjava.so
4079f000-407a1000 rw-p 00021000 03:01
148139   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libjava.so
407a3000-40c09000 r-xp 00000000 03:01
373895   /usr/java/j2sdk1.4.0_01/jre/lib/i386/server/libjv
m.so
40c09000-40dc1000 rw-p 00465000 03:01
373895   /usr/java/j2sdk1.4.0_01/jre/lib/i386/server/libjv
m.so
40dd6000-40de7000 r-xp 00000000 03:01
148151   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libverify.so
40de7000-40de9000 rw-p 00010000 03:01
148151   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libverify.so
40de9000-40e1d000 r-xp 00000000 03:01
258230   /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40e1d000-40e29000 rw-p 00033000 03:01
258230   /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
40e2b000-40e34000 r-xp 00000000 03:01
373891   /usr/java/j2sdk1.4.0_01/jre/lib/i386/native_threa
ds/libhpi.so
40e34000-40e35000 rw-p 00008000 03:01
373891   /usr/java/j2sdk1.4.0_01/jre/lib/i386/native_threa
ds/libhpi.so
40e35000-40e49000 r-xp 00000000 03:01
148152   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libzip.so
40e49000-40e4c000 rw-p 00013000 03:01
148152   /usr/java/j2sdk1.4.0_01/jre/lib/i386/libzip.so
40e4c000-424c9000 r--s 00000000 03:01
132017   /usr/java/j2sdk1.4.0_01/jre/lib/rt.jar
4250b000-42522000 r--s 00000000 03:01
132018   /usr/java/j2sdk1.4.0_01/jre/lib/sunrsasign.jar
42522000-42590000 r--s 00000000 03:01
132011   /usr/java/j2sdk1.4.0_01/jre/lib/jsse.jar
42590000-425a3000 r--s 00000000 03:01
132010   /usr/java/j2sdk1.4.0_01/jre/lib/jce.jar
425a3000-42824000 r--s 00000000 03:01
131999   /usr/java/j2sdk1.4.0_01/jre/lib/charsets.jar
448cc000-448ce000 r--s 00000000 03:01
534632   /usr/java/j2sdk1.4.0_01/jre/lib/ext/dnsns.jar
448ce000-448d0000 r--s 00000000 03:01
147502   /usr/lib/20001222/php_java.jar
4c94f000-4c955000 r--p 00000000 03:01
34159    /usr/lib/locale/en_US/LC_COLLATE
4c95e000-4c968000 r-xp 00000000 03:01
389191   /lib/libnss_files-2.2.so
4c968000-4c969000 rw-p 00009000 03:01
389191   /lib/libnss_files-2.2.so
4c969000-4c977000 r--s 00000000 03:01
534633   /usr/java/j2sdk1.4.0_01/jre/lib/ext/ldapsec.jar
4c977000-4ca1a000 r--s 00000000 03:01
534634   /usr/java/j2sdk1.4.0_01/jre/lib/ext/localedata.ja
r
4ca1a000-4ca37000 r--s 00000000 03:01
534635   /usr/java/j2sdk1.4.0_01/jre/lib/ext/sunjce_provid
er.jar
4ca37000-4cbc9000 r--s 00000000 03:05
498764   /home/httpd/html/lib/xerces.jar
4cbc9000-4cbd9000 r--s 00000000 03:05
498763   /home/httpd/html/lib/jakarta-oro.jar
4cbd9000-4cc11000 r--s 00000000 03:05
498760   /home/httpd/html/lib/dartapi.jar

Local Time = Sun Sep  1 08:13:56 2002
Elapsed Time = 1
#
# The exception above was detected in native code outside
the VM
#
# Java VM: Java HotSpot(TM) Server VM (1.4.0_01-b03 mixed
mode)
#
# An error report file has been saved as
hs_err_pid19190.log.
# Please refer to the file for further information.

NOTE: The output of jver.php is getting displayed first and then the exception is generated. When I see the process list one process remains as defunct.
root   19189  0.0  3.0 228468 15728 pts/0  T   08:13
0:01 php -f jver.php
root   19190  0.0  3.0 228468 15728 pts/0  S   08:13
0:00 php -f jver.php
root   19191  0.0  3.0 228468 15728 pts/0  T   08:13
0:00 php -f jver.php
root   19192  0.0  3.0 228468 15728 pts/0  T   08:13
0:00 php -f jver.php
root   19193  0.0  3.0 228468 15728 pts/0  T   08:13
0:00 php -f jver.php
root   19194  0.0  0.0   0   0 pts/0   Z   08:13
0:00 [php <defunct>]
root   19195  0.0  3.0 228468 15728 pts/0  T   08:13
0:00 php -f jver.php
root   19197  0.0  3.0 228468 15728 pts/0  T   08:13
0:00 php -f jver.php

--------------------------------
file: jver.php
--------------------------------
<html>
<?


 $system = new Java("java.lang.System");
 print "Java version=".$system->getProperty("java.version")." <br>\n";
 print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
 print "OS=".$system->getProperty("os.name")." ".
       $system->getProperty("os.version")." on ".
       $system->getProperty("os.arch")." <br>\n";

 $formatter = new Java("java.text.SimpleDateFormat",
            "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

 print $formatter->format(new Java("java.util.Date"))."\n";

?>
</html>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-12 08:53 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2003-01-02 18:46 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC