php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23355 Apache segfaulting in session.c
Submitted: 2003-04-25 18:00 UTC Modified: 2003-05-09 07:35 UTC
From: php at lim-dul dot de Assigned:
Status: No Feedback Package: Session related
PHP Version: 4CVS-2003-04-25 (stable) OS: Debian Linux 2.4.18
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-04-25 18:00 UTC] php at lim-dul dot de
The Apache Childs are segfaulting when this script ist executed: http://www.lim-dul.de/bug/admin.phps

The gdb Backtrace looks like:
#0  0x4010702b in memcpy () from /lib/libc.so.6
#1  0x08167013 in _mem_block_check (ptr=0x827c6e4, silent=0, __zend_filename=0x821cac0 "/usr/local/src/php4-STABLE-200304252130/ext/session/session.c",
    __zend_lineno=638, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /usr/local/src/php4-STABLE-200304252130/Zend/zend_alloc.c:675
#2  0x08166fda in _mem_block_check (ptr=0x827c6e4, silent=1, __zend_filename=0x821cac0 "/usr/local/src/php4-STABLE-200304252130/ext/session/session.c",
    __zend_lineno=638, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /usr/local/src/php4-STABLE-200304252130/Zend/zend_alloc.c:667
#3  0x0816628a in _efree (ptr=0x827c6e4, __zend_filename=0x821cac0 "/usr/local/src/php4-STABLE-200304252130/ext/session/session.c", __zend_lineno=638,
    __zend_orig_filename=0x0, __zend_orig_lineno=0) at /usr/local/src/php4-STABLE-200304252130/Zend/zend_alloc.c:243
#4  0x080b4882 in migrate_global (ht=0x82b1b4c, pos=0xbffff598) at /usr/local/src/php4-STABLE-200304252130/ext/session/session.c:638
#5  0x080b49b3 in php_session_save_current_state () at /usr/local/src/php4-STABLE-200304252130/ext/session/session.c:668
#6  0x080b7650 in php_session_flush () at /usr/local/src/php4-STABLE-200304252130/ext/session/session.c:1588
#7  0x080b767b in zm_deactivate_session (type=1, module_number=4) at /usr/local/src/php4-STABLE-200304252130/ext/session/session.c:1602
#8  0x0817c817 in module_registry_cleanup (module=0x82a0940) at /usr/local/src/php4-STABLE-200304252130/Zend/zend_API.c:1167
#9  0x0817f5ff in zend_hash_apply (ht=0x827ca80, apply_func=0x817c7d7 <module_registry_cleanup>)
    at /usr/local/src/php4-STABLE-200304252130/Zend/zend_hash.c:688
#10 0x08179078 in zend_deactivate_modules () at /usr/local/src/php4-STABLE-200304252130/Zend/zend.c:634
#11 0x08142351 in php_request_shutdown (dummy=0x0) at /usr/local/src/php4-STABLE-200304252130/main/main.c:970
#12 0x08191247 in main (argc=2, argv=0xbffffd74) at /usr/local/src/php4-STABLE-200304252130/sapi/cli/php_cli.c:842

The configure line was:
./configure' '--with-apxs' '--with-mysql' '--with-openssl=/usr/local/ssl/' '--enable-ftp' '-- with-zlib' '--enable-debug

ah phpinfo(); can be found here: http://www.lim-dul.de/bug/phpinfo.php

The System is Debian/Unstable

I was not able to reproduce the bug on an other system.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-26 07:00 UTC] sniper@php.net
Please provide a _short_ example script, without any html
stuff (if possible) and without any mysql stuff (which doesn't seem to be related to the crash, according to that backtrace).


 [2003-04-26 07:30 UTC] php at lim-dul dot de
Shortest script to produce the bug:
<?php
session_start();
$_SESSION['sname'] = $_POST['name'];
$_SESSION['spwd'] = $_POST['pwd'];
$sname = $_SESSION['sname'];
$spwd = $_SESSION['spwd'];
?>

If delete any of this 5 lines it does not happen.
 [2003-04-28 09:42 UTC] sniper@php.net
I can not reproduce this. 
What is "diff -u" between the php.ini-dist and the php.ini you have?


 [2003-05-09 07:35 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-2022 The PHP Group
All rights reserved.
Last updated: Sun Nov 27 19:03:46 2022 UTC