php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27254 PHP segfault on certain script
Submitted: 2004-02-14 15:46 UTC Modified: 2004-02-14 16:04 UTC
From: ericn at ionws dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.4 OS: Linux 2.4.20-8smp i686
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: ericn at ionws dot com
New email:
PHP Version: OS:

 

 [2004-02-14 15:46 UTC] ericn at ionws dot com
Description:
------------
Configure line: ./configure --with-mysql=/usr/local/mysql --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-debug --enable-sockets --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs

PHP is segfaulting when I tell it to run my (home-grown) content management system, Atomic.  It's too large (and I can't tell what part of it is actually causing the trouble) to give a relevant code sample.  Maybe someone can help me figure out what is going wrong.

This bug is also occuring when PHP is configured as:
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
./configure --with-mysql=/usr/local/mysql
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
./configure --with-mysql
./configure

Expected result:
----------------
I expect the script to execute as it normally should... make necessary MySQL connections, include required files, display output, etc.

Actual result:
--------------
Backtrace: http://atomic.ionws.com/atom_bt.txt
Server replies with an empty document when viewing over web.
Running via PHP CLI simply produces "Segmentation Fault".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-14 15:48 UTC] ericn at ionws dot com
phpinfo(): http://www.narutochaos.com/~ericn/phpinfo.php
 [2004-02-14 16:04 UTC] derick@php.net
You have an indefinite loop somewhere, which of course crashes PHP. If you want to figure out where this happens, try to install xdebug (www.xdebug.org), it will abort your script and shows a stacktrace if you reach too many nested levels of function calls. (If you need help with that, feel free to write to derick ta xdebug tod org

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 09:00:02 2025 UTC