[xep-support] java vm crashes when using php_java extension

From: Thomas.Braun@infowerk.de
Date: Wed Sep 24 2003 - 00:34:26 PDT

  • Next message: Nick Filimonov: "Re: [xep-support] java vm crashes when using php_java extension"

    Hi,

    i found out that it's possible to embed java application into php with the
    php_java module. so i coded an application that uses renderx to
    dynamically render pdfs to the browser or filesystem.

    all worked fine except some HUGE problems i ran into: the java vm
    sometimes crashes when running my application. this really just happens
    sometimes. just every 5th run... sometimes more or less often...

    after adding a lot of debug messages to my scripts and java classes i
    realized that the crash happens while calling
    "com.renderx.xep.Driver.init()".

    has anyone any idea?

    greetings
    Thomas

    these are the exceptions i get from java:

    --------------------------------------------------------------

    ****************
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x405db26b
    SIGNAL = 11
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    pure virtual method called
    Aborted

    --------------------------------------------------------------

    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x405DB433
    Function=(null)+0x405DB433
    Library=/lib/i686/libc.so.6

    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:
            at com.renderx.util.License.check(License.java:11)
            at com.renderx.xep.lib.Conf.checks(Conf.java:409)
            at com.renderx.xep.lib.Conf.init(Conf.java:163)
            at com.renderx.xep.Driver.init(Driver.java:29)
            - locked <0x48f6be40> (a java.lang.Class)
            at xepdriver.XEPDriver.initialize(XEPDriver.java:60)
            at xepdriver.XEPDriver.generatePDF(XEPDriver.java:80)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at net.php.reflect.Invoke(reflect.java:347)

    Dynamic libraries:
    08048000-081db000 r-xp 00000000 03:03 8503311 /usr/local/bin/php
    081db000-0820f000 rw-p 00193000 03:03 8503311 /usr/local/bin/php
    40000000-40013000 r-xp 00000000 03:03 2080770 /lib/ld-2.2.5.so
    40013000-40014000 rw-p 00013000 03:03 2080770 /lib/ld-2.2.5.so
    40014000-40017000 r-xp 00000000 03:03 12861467
    /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so
    40017000-40018000 rw-p 00002000 03:03 12861467
    /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so
    40018000-4001a000 r--s 00000000 03:03 8159243
    /usr/local/lib/php/php_java.jar
    4001a000-40022000 r-xp 00000000 03:03 2080777 /lib/libcrypt.so.1
    40022000-40024000 rw-p 00008000 03:03 2080777 /lib/libcrypt.so.1
    4004c000-40157000 r-xp 00000000 03:03 11124750 /usr/lib/librecode.so.0.0.0
    40157000-40185000 rw-p 0010b000 03:03 11124750 /usr/lib/librecode.so.0.0.0
    40185000-401a6000 r-xp 00000000 03:03 11125152 /usr/lib/libmhash.so.2.0.0
    401a6000-401a7000 rw-p 00021000 03:03 11125152 /usr/lib/libmhash.so.2.0.0
    401a7000-401d4000 r-xp 00000000 03:03 11124853 /usr/lib/libldap.so.2.0.104
    401d4000-401d5000 rw-p 0002d000 03:03 11124853 /usr/lib/libldap.so.2.0.104
    401d5000-401e4000 r-xp 00000000 03:03 2080793 /lib/libresolv.so.2
    401e4000-401e5000 rw-p 0000e000 03:03 2080793 /lib/libresolv.so.2
    401e7000-401f9000 r-xp 00000000 03:03 11124841 /usr/lib/libsasl.so.7.1.10
    401f9000-401fa000 rw-p 00012000 03:03 11124841 /usr/lib/libsasl.so.7.1.10
    401fa000-40201000 r-xp 00000000 03:03 2080823 /lib/libpam.so.0.76
    40201000-40202000 rw-p 00006000 03:03 2080823 /lib/libpam.so.0.76
    40202000-4020c000 r-xp 00000000 03:03 11124823 /usr/lib/libgssapi.so.1.2.4
    4020c000-4020d000 rw-p 0000a000 03:03 11124823 /usr/lib/libgssapi.so.1.2.4
    4020d000-40241000 r-xp 00000000 03:03 11124831 /usr/lib/libkrb5.so.17.1.2
    40241000-40243000 rw-p 00034000 03:03 11124831 /usr/lib/libkrb5.so.17.1.2
    40245000-40266000 r-xp 00000000 03:03 11124819 /usr/lib/libasn1.so.5.0.0
    40266000-40267000 rw-p 00020000 03:03 11124819 /usr/lib/libasn1.so.5.0.0
    40267000-40278000 r-xp 00000000 03:03 11124835 /usr/lib/libroken.so.9.5.3
    40278000-40279000 rw-p 00010000 03:03 11124835 /usr/lib/libroken.so.9.5.3
    40279000-4031d000 r-xp 00000000 03:03 11124778 /usr/lib/libdb-4.0.so
    4031d000-4031f000 rw-p 000a4000 03:03 11124778 /usr/lib/libdb-4.0.so
    4031f000-40321000 r-xp 00000000 03:03 11124821
    /usr/lib/libcom_err.so.1.1.0
    40321000-40322000 rw-p 00001000 03:03 11124821
    /usr/lib/libcom_err.so.1.1.0
    40322000-40328000 r-xp 00000000 03:03 11124746 /usr/lib/libgdbm.so.2.0.0
    40328000-40329000 rw-p 00005000 03:03 11124746 /usr/lib/libgdbm.so.2.0.0
    40329000-40356000 r-xp 00000000 03:03 11124814 /usr/lib/libssl.so.0.9.6
    40356000-40359000 rw-p 0002c000 03:03 11124814 /usr/lib/libssl.so.0.9.6
    40359000-40420000 r-xp 00000000 03:03 11124812 /usr/lib/libcrypto.so.0.9.6
    40420000-4042c000 rw-p 000c6000 03:03 11124812 /usr/lib/libcrypto.so.0.9.6
    4042f000-4043a000 r-xp 00000000 03:03 11124851 /usr/lib/liblber.so.2.0.104
    4043a000-4043b000 rw-p 0000a000 03:03 11124851 /usr/lib/liblber.so.2.0.104
    4043c000-4046b000 r-xp 00000000 03:03 11124945
    /usr/lib/libpng12.so.0.1.2.4
    4046b000-4046c000 rw-p 0002f000 03:03 11124945
    /usr/lib/libpng12.so.0.1.2.4
    4046c000-40489000 r-xp 00000000 03:03 11124755 /usr/lib/libjpeg.so.62.0.0
    40489000-4048a000 rw-p 0001d000 03:03 11124755 /usr/lib/libjpeg.so.62.0.0
    4048a000-404ac000 r-xp 00000000 03:03 8110083 /lib/i686/libm.so.6
    404ac000-404ad000 rw-p 00021000 03:03 8110083 /lib/i686/libm.so.6
    404ad000-404af000 r-xp 00000000 03:03 2080780 /lib/libdl.so.2
    404af000-404b0000 rw-p 00001000 03:03 2080780 /lib/libdl.so.2
    404b0000-404c2000 r-xp 00000000 03:03 2080783 /lib/libnsl.so.1
    404c2000-404c3000 rw-p 00011000 03:03 2080783 /lib/libnsl.so.1
    404c5000-40563000 r-xp 00000000 03:03 11124798 /usr/lib/libxml2.so.2.4.23
    40563000-4056c000 rw-p 0009e000 03:03 11124798 /usr/lib/libxml2.so.2.4.23
    4056d000-40681000 r-xp 00000000 03:03 8110082 /lib/i686/libc.so.6
    40681000-40687000 rw-p 00113000 03:03 8110082 /lib/i686/libc.so.6
    4068c000-40699000 r-xp 00000000 03:03 2080816 /lib/libz.so.1.1.4
    40699000-4069b000 rw-p 0000c000 03:03 2080816 /lib/libz.so.1.1.4
    4069b000-406c6000 r--p 00000000 03:03 8011779
    /usr/lib/locale/en_US/LC_CTYPE
    406c6000-406cf000 r-xp 00000000 03:03 2080787 /lib/libnss_files.so.2
    406cf000-406d0000 rw-p 00008000 03:03 2080787 /lib/libnss_files.so.2
    406d0000-406f0000 r-xp 00000000 03:03 5423133
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libjava.so
    406f0000-406f2000 rw-p 0001f000 03:03 5423133
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libjava.so
    406f2000-40c9e000 r-xp 00000000 03:03 7307273
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/server/libjvm.so
    40c9e000-40cf8000 rw-p 005ab000 03:03 7307273
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/server/libjvm.so
    40d0b000-40d1b000 r-xp 00000000 03:03 5423147
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libverify.so
    40d1b000-40d1d000 rw-p 0000f000 03:03 5423147
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libverify.so
    40d1d000-40d21000 rw-s 00000000 03:03 10436636 /tmp/hsperfdata_root/20610
    40d23000-40d30000 r-xp 00000000 03:03 8110084 /lib/i686/libpthread.so.0
    40d30000-40d37000 rw-p 0000d000 03:03 8110084 /lib/i686/libpthread.so.0
    40d37000-40d3f000 r-xp 00000000 03:03 7208986
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/native_threads/libhpi.so
    40d3f000-40d40000 rw-p 00007000 03:03 7208986
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/native_threads/libhpi.so
    40d40000-40d54000 r-xp 00000000 03:03 5423148
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libzip.so
    40d54000-40d57000 rw-p 00013000 03:03 5423148
    /usr/java/j2sdk1.4.2-orig/jre/lib/i386/libzip.so
    40d57000-426e2000 r--s 00000000 03:03 3768355
    /usr/java/j2sdk1.4.2-orig/jre/lib/rt.jar
    4272c000-42742000 r--s 00000000 03:03 3768354
    /usr/java/j2sdk1.4.2-orig/jre/lib/sunrsasign.jar
    42742000-4281d000 r--s 00000000 03:03 3768353
    /usr/java/j2sdk1.4.2-orig/jre/lib/jsse.jar
    4281d000-4282e000 r--s 00000000 03:03 3768345
    /usr/java/j2sdk1.4.2-orig/jre/lib/jce.jar
    4282e000-42d87000 r--s 00000000 03:03 3768346
    /usr/java/j2sdk1.4.2-orig/jre/lib/charsets.jar
    4d7b8000-4d7bb000 r--s 00000000 03:03 5242890
    /usr/java/j2sdk1.4.2-orig/jre/lib/ext/dnsns.jar
    4d7bb000-4d7c8000 r--s 00000000 03:03 5242891
    /usr/java/j2sdk1.4.2-orig/jre/lib/ext/ldapsec.jar
    4d7c8000-4d7e4000 r--s 00000000 03:03 5242893
    /usr/java/j2sdk1.4.2-orig/jre/lib/ext/sunjce_provider.jar
    4d7e4000-4d8a0000 r--s 00000000 03:03 5242894
    /usr/java/j2sdk1.4.2-orig/jre/lib/ext/localedata.jar
    4d8a0000-4d8a3000 r--s 00000000 03:03 606257
    /usr/java/classes/xepdriver.jar
    4d8a3000-4d8c6000 r--s 00000000 03:03 10502158
    /home/www/renderx/lib/cryptix32-pgp.jar
    4d8c6000-4d93d000 r--s 00000000 03:03 10502157
    /home/www/renderx/lib/cryptix32.jar
    4d93d000-4d9d6000 r--s 00000000 03:03 10502175
    /home/www/renderx/lib/saxon.jar
    4d9d6000-4dac1000 r--s 00000000 03:03 10502176
    /home/www/renderx/lib/xep352_developer_stamped.jar
    4dac1000-4db16000 r--s 00000000 03:03 10502177
    /home/www/renderx/lib/xt.jar

    Heap at VM Abort:
    Heap
     def new generation total 576K, used 466K [0x44e30000, 0x44ed0000,
    0x45540000)
      eden space 512K, 78% used [0x44e30000, 0x44e94af0, 0x44eb0000)
      from space 64K, 100% used [0x44ec0000, 0x44ed0000, 0x44ed0000)
      to space 64K, 0% used [0x44eb0000, 0x44eb0000, 0x44ec0000)
     tenured generation total 1408K, used 55K [0x45540000, 0x456a0000,
    0x48e30000)
       the space 1408K, 3% used [0x45540000, 0x4554df90, 0x4554e000,
    0x456a0000)
     compacting perm gen total 16384K, used 1500K [0x48e30000, 0x49e30000,
    0x4ce30000)
       the space 16384K, 9% used [0x48e30000, 0x48fa7338, 0x48fa7400,
    0x49e30000)

    Local Time = Wed Sep 24 09:14:25 2003
    Elapsed Time = 0
    #
    # The exception above was detected in native code outside the VM
    #
    # Java VM: Java HotSpot(TM) Server VM (1.4.2-b28 mixed mode)
    #
    # An error report file has been saved as hs_err_pid20610.log.
    # Please refer to the file for further information.
    #
    Aborted
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Wed Sep 24 2003 - 00:35:06 PDT