BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 22nd, 2004, 06:50 AM
GoranTornqvist GoranTornqvist is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Stockholm
Posts: 4 GoranTornqvist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to GoranTornqvist
PHP+Java: PHP hangs/crash when running a script using java

Hello,
I've compiled php with java on freebsd and now when I'm running an example script I've found on php.net:

<?php
// get instance of Java class java.lang.System in PHP
$system = new Java('java.lang.System');
..osv...
?>

When I run this thru apache the webserver doesn't respond (page cannot be displayed), when I run the script thru a shell php hangs forever and if a do CTRL-C I get the following error message:

======================================
bash-2.05b# php /var/www/html/java2.php
^C
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x28FF0859
Function=_sem_post+0x19
Library=/usr/lib/libc_r.so.4


Dynamic libraries:
0x8048000 php
0x28361000 /usr/lib/libcrypt.so.2
0x2837a000 /usr/local/lib/libzzip-0.so.10
0x28380000 /usr/local/lib/libz.so
0x28391000 /usr/local/lib/libsybdb.so.3
0x283c1000 /usr/local/lib/libmhash.so.2
0x283da000 /usr/local/lib/libmcrypt.so.8
0x2840c000 /usr/local/lib/libltdl.so.4
0x28413000 /usr/local/lib/libintl.so.5
0x2841c000 /usr/local/lib/libt1.so.5
0x28468000 /usr/local/lib/libfreetype.so.9
0x284b8000 /usr/local/lib/libpng.so.5
0x284db000 /usr/local/lib/libjpeg.so.9
0x284f9000 /usr/local/lib/libexslt.so.7
0x28507000 /usr/local/lib/libxsltbreakpoint.so.1
0x28509000 /usr/local/lib/libxml2.so.5
0x285f1000 /usr/local/lib/libxslt.so.1
0x28625000 /usr/local/lib/libssl.so.3
0x28653000 /usr/local/lib/libcrypto.so.3
0x28740000 /usr/lib/libm.so.2
0x2875b000 /usr/local/lib/libcurl.so.2
0x28785000 /usr/local/lib/libiconv.so.3
0x28873000 /usr/lib/libc.so.4
0x2890c000 /usr/lib/libz.so.2
0x28919000 /usr/lib/libssl.so.3
0x28948000 /usr/lib/libcrypto.so.3
0x28a40000 /usr/local/lib/php/extensions/no-debug-non-zts-20020429/libphp_java.so
0x28a44000 /usr/local/jdk1.4.1/jre/lib/i386/client/libjvm.so
0x28fd9000 /usr/lib/libc_r.so.4
0x2908f000 /usr/lib/libstdc++.so.3
0x290d4000 /usr/local/jdk1.4.1/jre/lib/i386/native_threads/libhpi.so
0x290de000 /usr/local/jdk1.4.1/jre/lib/i386/libverify.so
0x290f9000 /usr/local/jdk1.4.1/jre/lib/i386/libjava.so
0x2911a000 /usr/local/jdk1.4.1/jre/lib/i386/libzip.so
0x28344000 /usr/libexec/ld-elf.so.1

Local Time = Wed Sep 22 12:56:33 2004
Elapsed Time = 293
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-p3-root_09_sep_2004_11_59 mixed mode)
#
# An error report file has been saved as hs_err_pid11338.log.
# Please refer to the file for further information.
#
Abort trap (core dumped)
bash-2.05b#
======================================

I had a problem before with some libraries that couldn't be found but when I added the path to java in $LD_LIBRARY_PATH I solved that problem...

But I have no idea what to do now.

I've checked phpinfo() and the java-section is there.

When I run the script thru apache, this shows up in the errorlog:
[Thu Sep 23 08:15:44 2004] [notice] child pid 15178 exit signal Segmentation fault (11)
[Thu Sep 23 08:15:44 2004] [notice] child pid 15175 exit signal Segmentation fault (11)

I'm using FreeBSD 4.7, PHP 4.3.8, Apache/1.3.31, Java jdk1.4.1

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > PHP+Java: PHP hangs/crash when running a script using java


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway