php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45588 php5 crash in CLI mode
Submitted: 2008-07-22 06:26 UTC Modified: 2008-07-22 08:31 UTC
From: alex at ai dot usurt dot ru Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.6 OS: FreeBSD 7.0
Private report: No CVE-ID: None
 [2008-07-22 06:26 UTC] alex at ai dot usurt dot ru
Description:
------------
System: 
FreeBSD server 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Jun 10 12:41:05 YEKST 2008     root@relay3.usurt.ru:/usr/obj/usr/src/sys/RELAY3  i386

PHP:
# pkg_info |grep php
php5-5.2.6          PHP Scripting Language

# php --version
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 27 2008 15:55:44)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Suhosin v0.9.24, Copyright (c) 2007, by SektionEins GmbH

Every launch of /usr/local/bin/php lead to php.core in current dir.

Example:

$ cd /tmp/111

$ ls -l /tmp/111
total 0

$ php --version
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 27 2008 15:55:44)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Suhosin v0.9.24, Copyright (c) 2007, by SektionEins GmbH
Segmentation fault: 11 (core dumped)

$ ls -l /tmp/111
total 2240
-rw-------  1 root  wheel  2277376 22 июл 12:20 php.core

/usr/local/etc/php/extensions.ini:

extension=zlib.so
extension=pcre.so
extension=session.so
extension=mssql.so
extension=mysql.so
extension=pgsql.so
extension=gd.so
extension=iconv.so
extension=ldap.so
extension=imap.so
extension=mbstring.so
extension=suhosin.so



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-22 08:31 UTC] jani@php.net
First of all, get rid of any 3rd party patches (Suhosin!) and don't load any 3rd party extensions in your php.ini. If you still can reproduce this crash using latest CVS snapshot from http://snaps.php.net/ you can reopen this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 09:01:31 2024 UTC