php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23952 segmentation fault during script execution under apache
Submitted: 2003-06-02 06:47 UTC Modified: 2003-07-20 10:38 UTC
From: anton at ur dot ru Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.2 OS: FreeBSD 4.8-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anton at ur dot ru
New email:
PHP Version: OS:

 

 [2003-06-02 06:47 UTC] anton at ur dot ru
GDB backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x808aef2 in zend_get_executed_lineno ()
    at /usr/src-new/.apache/php-4.3.2/Zend/zend_execute_API.c:271
271                     return active_opline->lineno;
(gdb) bt
#0  0x808aef2 in zend_get_executed_lineno ()
    at /usr/src-new/.apache/php-4.3.2/Zend/zend_execute_API.c:271
#1  0x8092526 in zend_error (type=8, format=0x81e869b "Undefined index:  %s")
    at /usr/src-new/.apache/php-4.3.2/Zend/zend.c:715
#2  0x809b7ac in zend_fetch_dimension_address (result=0x83d5420,
    op1=0x83d5430, op2=0x83d5440, Ts=0xbfbf9568, type=0)
    at /usr/src-new/.apache/php-4.3.2/Zend/zend_execute.c:658
#3  0x809e75a in execute (op_array=0x836e38c)
    at /usr/src-new/.apache/php-4.3.2/Zend/zend_execute.c:1273
#4  0x80928b0 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/src-new/.apache/php-4.3.2/Zend/zend.c:869
#5  0x8074abb in php_execute_script (primary_file=0xbfbff71c)
    at /usr/src-new/.apache/php-4.3.2/main/main.c:1671
#6  0x80a746e in apache_php_module_main (r=0x82f7034, display_source_mode=0)
    at /usr/src-new/.apache/php-4.3.2/sapi/apache/sapi_apache.c:54
#7  0x806c9b8 in send_php ()
#8  0x806cfa8 in send_parsed_php ()
#9  0x815feb1 in ap_invoke_handler ()
#10 0x8172dcc in process_request_internal ()
#11 0x817317d in ap_process_request ()
#12 0x81697aa in child_main ()
#13 0x81699a4 in make_child ()
#14 0x816a12b in standalone_main ()
#15 0x816aab3 in main ()
#16 0x806c27e in _start ()

Configure:
./configure \
   --with-config-file-path=/usr/local/etc \
   --with-mysql=/usr/servers/mysql \
   --enable-discard-path \
   --enable-track-vars \
   --enable-dbase \
   --enable-memory-limit \
   --enable-ftp \
   --enable-debug \
   --with-imap \
   --with-curl \
   --disable-cli \
   --with-apache=../apache_1.3.27rusPL30.17 \


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-02 06:56 UTC] derick@php.net
Can you please post a short script so that we can try to reproduce this too?
 [2003-06-02 07:04 UTC] anton at ur dot ru
I don't have a short script and i can't reproduce it in short script. 
http://www.uralweb.ru/region/index.phps - this is a script that causes described error
 [2003-06-02 10:36 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Also, without a complete script it is impossible for us to start looking where the bug might be. (it's like looking for a needle in haystack, without a magnet :)

First you need to include everything in one file (no include()'s or other external references) and then work
your way down reducing the code piece by piece until you get the shortest possible script causing the crash.

It looks like your script is causing some error, and the error output procedure crashes when trying to figure out the line of where the error happens..

 [2003-06-02 12:35 UTC] anton at ur dot ru
Can i send you via email this script and all included files ?

I have this error not only in this script - lot of scripts on my server causes this error. 

I'l try CVS snapshot tomorrow.

I have to say, that i see this error in php 4.3.*

Scripts works fine in php 4.2.2 and older.
 [2003-06-02 13:00 UTC] sniper@php.net
No, don't send me the files. Just try the snapshot first.

 [2003-06-02 13:33 UTC] anton at ur dot ru
I've installed the snapshot. Result is the same:

Program received signal SIGSEGV, Segmentation fault.
0x8097db7 in zend_get_executed_lineno ()
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend_execute_API.c:271

271                     return active_opline->lineno;
Program received signal SIGSEGV, Segmentation fault.
#0  0x8097db7 in zend_get_executed_lineno ()
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend_execute_API.c:271

#1  0x80a1b36 in zend_error (type=8, format=0x8233b3b "Undefined index:  %s")
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend.c:733
#2  0x80b711b in zend_fetch_dimension_address_inner (ht=0x844de24,
    op2=0x8428458, Ts=0xbfbf9618, type=0)
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend_execute.c:626
#3  0x80aedbb in zend_fetch_dimension_address (result=0x8428438,
    op1=0x8428448, op2=0x8428458, Ts=0xbfbf9618, type=0)
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend_execute.c:777
#4  0x80b0bec in execute (op_array=0x83c12a4)
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend_execute.c:1273
#5  0x80a2095 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/src-new/.apache/php4-STABLE-200306021730/Zend/zend.c:887
#6  0x8076caf in php_execute_script (primary_file=0xbfbff708)
    at /usr/src-new/.apache/php4-STABLE-200306021730/main/main.c:1683
#7  0x80b739e in apache_php_module_main (r=0x8347034, display_source_mode=0)
    at /usr/src-new/.apache/php4-STABLE-200306021730/sapi/apache/sapi_apache.c:5
 [2003-07-12 23:55 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And update the version information to be what it says in phpinfo(). Also, if this still happens, provide a short, complete example script. (everything in ONE file, max 20 lines long)

 [2003-07-20 10:38 UTC] 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC