php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65284 Segmentation fault with the CLI
Submitted: 2013-07-18 07:17 UTC Modified: 2013-07-18 10:50 UTC
From: jhaagsma at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.4.17 OS: Ubuntu
Private report: No CVE-ID: None
 [2013-07-18 07:17 UTC] jhaagsma at gmail dot com
Description:
------------
I was updating my machine & VM's from 5.4.17RC1 to 5.4.17 and noticed a problem, 
it was segfaulting.

Using this test file on an upgraded machine and non-upgraded machine:

machine1:~$ php --version
PHP 5.4.17RC1 (cli) (built: Jun 22 2013 19:27:26)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
machine1:~$ php testphp
Running from CLI

--------

machine2:~$ php --version
PHP 5.4.17-1~precise+1 (cli) (built: Jul 17 2013 18:14:06)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
machine2:~$ php testphp
Segmentation fault (core dumped)


This is on ubuntu using Ondrej's PPA for PHP 5.4, but he said he's not made any 
debian/ubuntu specific changes since RC1.

Test script:
---------------
<?php
if(defined('STDIN') )
  echo("Running from CLI");
else
  echo("Not Running from CLI");
?>

Expected result:
----------------
Expected result was "Running from CLI"

Actual result:
--------------
Segmentation fault (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-18 08:45 UTC] sjon at hortensius dot net
Obviously a vanilla 5.4.17 doesn't crash with this script (as can easily be seen 
at http://3v4l.org/gBq9U ); so the problem must be your environment; or the 
patches that were applied. 

I think you're best of contacting your distro-specific maintainer for this (I 
noticed several debian patches which could cause this behaviour)
 [2013-07-18 10:50 UTC] johannes@php.net
-Status: Open +Status: Not a bug
 [2013-07-18 10:50 UTC] johannes@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This must somehow depend on the build or something in the environment. Please work with Ondrej on this. We'd need a stacktrace from vanilla PHP for doing anything.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC