#20300 [NoF->Opn]: mail() and Java combination causes webserver freeze
| From: | mindas at ziedas dot ktu dot lt | Date: | Thu, 20 Mar 2003 13:33:46 +0000 |
| Subject: | #20300 [NoF->Opn]: mail() and Java combination causes webserver freeze | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36034@lists.php.net to get a copy of this message | ||
ID: 20300
User updated by: mindas at ziedas dot ktu dot lt
Reported By: mindas at ziedas dot ktu dot lt
-Status: No Feedback
+Status: Open
Bug Type: Mail related
Operating System: Linux Debian/GNU testing
-PHP Version: 4.2.0
+PHP Version: 4.2.3-12
New Comment:
Sorry for the late reply. I was used to get back to this problem;
however it still persists. I've tried the same code (as reported
earlier), and the apache still hangs - only the first mail is sent.
I've built the binaries against version 4.2.3-12 of PHP sources
on a Debian unstable machine.
Previous Comments:
------------------------------------------------------------------------
[2002-11-21 17:13:04] 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.
------------------------------------------------------------------------
[2002-11-11 10:57:26] 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
------------------------------------------------------------------------
[2002-11-07 11:22:47] mindas at ziedas dot ktu dot lt
Hi,
i've encountered a strange bug that causes webserver (Apache 1.3.26-1
in particular) to halt. I'm using PHP/Java combination I've built
myself on Debian GNU/Linux (testing, kernel version is 2.4.20-pre7).
The killing code is here:
<?php
mail("foo@bar.com", "111", "111");
$system = new Java('java.lang.System');
mail("foo@bar.com", "222", "222");
?>
The first mail is sent successfully, but not the second one.
The most amazing thing is, that eliminating a mail() or Java() call
doesn't produce any problems. I mean, they work well separately. But
when these calls are together (in my case - even on different PHP
classes), it results a webserver lockup.
This has been tested on various PHP compilations starting from PHP
4.2.0 and up to the newest STABLE snapshot build.
The funniest thing is that this bug is ABSENT on my old PHP/Java build
(4.1.2-1). Java version is the same on both cases:
mindas@kiras:~$ java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
If you need any more details on this, just drop me a message via
e-mail.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20300&edit=1