php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3790 crypt() crashes apache child
Submitted: 2000-03-10 07:25 UTC Modified: 2000-03-10 09:47 UTC
From: rafal at euromedia dot pl Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.15 OS: FreeBSD 3.4-STABLE
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: rafal at euromedia dot pl
New email:
PHP Version: OS:

 

 [2000-03-10 07:25 UTC] rafal at euromedia dot pl
<?
$string = "bla bla bla";
echo $string ;
echo "<br>\n";
$salt = '$1$IxhxBBg0$' ;
echo $salt ;
echo "<br>\n";
$crypted = crypt($string, $salt);
echo $crypted;
?>

And then server returns "Document contains no data", apache child which's serving this script segfaults, OS is FreeBSD 3.4-STABLE
and webserver is apache+php+mod_ssl-1.3.12+3.0.15+2.6.2 ...
tail of dmesg looks like that :

pid 10827 (apache), uid 65534: exited on signal 11
pid 11214 (apache), uid 65534: exited on signal 11
pid 11215 (apache), uid 65534: exited on signal 11

The same was in earlier versions of php ...
I used MD5 - 12 char salt string to use md5 encrypt ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-10 09:47 UTC] rafal at euromedia dot pl
it's corrected in new 4.x beta releases and current cvs snapshots 3.x and 4.x
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 08:00:02 2026 UTC