php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13275 returned objects cause a core dump in zend
Submitted: 2001-09-12 19:26 UTC Modified: 2002-04-06 00:00 UTC
From: shaley at intertrust dot com Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.0.6 OS: Solaris 2.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shaley at intertrust dot com
New email:
PHP Version: OS:

 

 [2001-09-12 19:26 UTC] shaley at intertrust dot com
I have been working integrating PHP with Java 2 SE (1.3.1).  I have found that if a "complex" object is returned by another Java method call (as in a static Java method), the php code will core dump.  The problem appears to be related to the zend hashing code.  When the 'new' function is invoked on a Java object, it is hashed by zend for de-referencing.  However, if a java object is returned, no entry is made in the hash for that object, dereferencing said object causes zend to core.

Here's the GDB trace:

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) bt
#0  0x0 in ?? ()
#1  0xb6c18 in zend_hash_find (ht=0xfe23354c, 
    arKey=0x34d038 "adddescription", nKeyLength=15, pData=0xffbee6c0)
    at zend_hash.c:854
#2  0xe670c in execute ()
#3  0xb2cb4 in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#4  0x365c4 in php_execute_script (primary_file=0xffbef938) at main.c:1221
#5  0x34400 in main (argc=2, argv=0xffbef9c4) at cgi_main.c:738


Here's my version info:
SunOS arcturus 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-1

java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)

Patches

Pull Requests

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-04-06 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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 24 05:01:31 2025 UTC