php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20284 Apache crashes (Sig 11) when doing a ini_set('session.save_handler', ..)
Submitted: 2002-11-06 10:21 UTC Modified: 2002-11-24 13:52 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: fatih dot gey at 2way dot de Assigned: derick (profile)
Status: Closed Package: Session related
PHP Version: 4.3.0-dev OS: Linux (RH-7.3)
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: fatih dot gey at 2way dot de
New email:
PHP Version: OS:

 

 [2002-11-06 10:21 UTC] fatih dot gey at 2way dot de
when executing "ini_set('session.save_handler', 'user') 
which is in my case done by postnuke-0.7.2.1 (default-
installation) apache's errorlog says:

[Wed Nov  6 16:49:17 2002] [notice] child pid 16682 exit signal Segmentation fault (11)

configure line of php:
------------------------

./configure' '--prefix=/usr/devel' '--libexecdir=/usr/devel/usr/lib/apache' '--sysconfdir=/usr/devel/etc/httpd/conf' '--libdir=/usr/devel/lib' '--with-apxs=/usr/devel/bin/apxs' '--enable-sigchild' '--enable-magic-quotes' '--enable-libgcc' '--with-openssl' '--with-curl' '--enable-ftp' '--with-mysql' '--with-kerberos' '--enable-shared' '--enable-static' '--enable-fast-install' '--enable-debug' '--with-gnu-ld' '--with-config-file-path=/usr/devel/etc/httpd/conf/php_devel'

gdb backtrace:
---------------
Program received signal SIGSEGV, Segmentation fault.
0x40311854 in call_user_function_ex (function_table=0x80fb4e0, object_pp=0x0, function_name=0x11, retval_ptr_ptr=0xbfffd0fc, 
    param_count=2, params=0x83f22b4, no_separation=1, symbol_table=0x0) at zend_execute_API.c:400
400             if (function_name->type==IS_ARRAY) { /* assume array($obj, $name) couple */
(gdb) bt
#0  0x40311854 in call_user_function_ex (function_table=0x80fb4e0, object_pp=0x0, function_name=0x11, retval_ptr_ptr=0xbfffd0fc, 
    param_count=2, params=0x83f22b4, no_separation=1, symbol_table=0x0) at zend_execute_API.c:400
#1  0x40311770 in call_user_function (function_table=0x80fb4e0, object_pp=0x0, function_name=0x11, retval_ptr=0x845e324, 
    param_count=2, params=0xbfffd188) at zend_execute_API.c:373
#2  0x4037d859 in ps_call_handler (func=0x11, argc=2, argv=0xbfffd188) at mod_user.c:60
#3  0x4037dd9f in ps_write_user (mod_data=0x4044bf10, key=0x8163f3c "acee6bd11bac2f5f40f65396b0985536", 
    val=0x849b914 "PNSVrand|i:1388284347;PNSVlang|s:3:\"eng\";", vallen=41) at mod_user.c:148
#4  0x40379d85 in php_session_save_current_state () at session.c:589
#5  0x4037cb20 in php_session_flush () at session.c:1457
#6  0x4037cb3f in zif_session_write_close (ht=0, return_value=0x83cad3c, this_ptr=0x0, return_value_used=0) at session.c:1466
#7  0x4030ba59 in execute (op_array=0x8166d9c) at ./zend_execute.c:1598
#8  0x4031c760 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:812
#9  0x4032f08e in php_execute_script (primary_file=0xbffff680) at main.c:1383
#10 0x40329a3e in apache_php_module_main (r=0x80de734, display_source_mode=0) at sapi_apache.c:90
#11 0x4032a8ac in send_php (r=0x80de734, display_source_mode=0, filename=0x80deebc "/websites/www.handybo.de/web/index.php")
    at mod_php4.c:575
#12 0x4032a919 in send_parsed_php (r=0x80de734) at mod_php4.c:590
#13 0x0806290f in ap_invoke_handler () at eval.c:41
#14 0x080778f7 in process_request_internal () at eval.c:41
#15 0x08077d1f in ap_internal_redirect () at eval.c:41
#16 0x0805a200 in handle_dir () at eval.c:41
#17 0x0806290f in ap_invoke_handler () at eval.c:41
#18 0x080778f7 in process_request_internal () at eval.c:41
#19 0x08077958 in ap_process_request () at eval.c:41
#20 0x0806e735 in child_main () at eval.c:41
#21 0x0806e8e0 in make_child () at eval.c:41
#22 0x0806ea54 in startup_children () at eval.c:41
#23 0x0806f0d0 in standalone_main () at eval.c:41
#24 0x0806f93f in main () at eval.c:41
#25 0x40164177 in __libc_start_main (main=0x806f590 <main>, argc=2, ubp_av=0xbffffb84, init=0x804e574 <_init>, 
    fini=0x808d3e0 <_fini>, rtld_fini=0x4000d3c4 <_dl_fini>, stack_end=0xbffffb7c) at ../sysdeps/generic/libc-start.c:129

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-06 10:30 UTC] iliaa@php.net
Please try using this CVS snapshot:

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

I believe this bug may have been solved in the CVS.
 [2002-11-06 13:22 UTC] fatih dot gey at 2way dot de
Just installed cvs version 200211030600

.. doesn't work either.
 [2002-11-07 17:33 UTC] sniper@php.net
Please add a short but complete example script which we can use to reproduce this.
 [2002-11-12 12:52 UTC] fatih dot gey at 2way dot de
--- Use this Script to reconstruct this error:
<?php
ini_set('session.save_handler', 'user');
?>
---
 [2002-11-12 12:54 UTC] fatih dot gey at 2way dot de
s/reconstruct/reproduce/  :)
 [2002-11-12 13:38 UTC] iliaa@php.net
Cannot reproduce this problem using the latest CVS. Do you have any other session related ini setting in your php.ini or virtual host (httpd.conf)?
 [2002-11-20 08:24 UTC] phpbug at lottasophie dot de
Here is a sample script:
<?PHP
session_register ("test");
ini_set('session.save_handler', 'user');
?>

crashes apache.exe, while 

<?PHP
session_register ("test");
session_write_close();
ini_set('session.save_handler', 'user');
?>

does not.
 [2002-11-20 08:27 UTC] derick@php.net
Verifyed, attempting to fix it :-)

Derick
 [2002-11-20 11:50 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2002-11-24 13:52 UTC] fatih dot gey at 2way dot de
still having problems to run postnuke v0.721:
this time (snapshot 200211241830) this error occurs:

Fatal error: Cannot redeclare unixdate() in
 /[..]web/pnadodb/adodb.inc.php on line 1477

--adodb.inc.php: from line 1471 till line 1486

/*
* Also in ADORecordSet.
* @param $v is a date string in YYYY-MM-DD format
*
* @return date in unix timestamp format, or 0 if before
* TIMESTAMP_FIRST_YEAR, or false if invalid date format
*/
function UnixDate($v)
{
 if (!preg_match( "|^([0-9]{4})[-/\.]?([0-9]{1,2})[-/\.]?([0-9]{1,2})|",
($v), $rr)) return false;

if ($rr[1] <= TIMESTAMP_FIRST_YEAR) return 0;
// h-m-s-MM-DD-YY
return mktime(0,0,0,$rr[2],$rr[3],$rr[1]);
}
---EOF

config / compile reson, or was this cvs-snapshot broken?

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