#20284 [Csd]: Apache crashes (Sig 11) when doing a ini_set('session.save_handler', ..)

2002-11-24 Thread fatih . gey
 ID:   20284
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Closed
 Bug Type: Session related
 Operating System: Linux (RH-7.3)
 PHP Version:  4.3.0-dev
 Assigned To:  derick
 New Comment:

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 -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


Previous Comments:


[2002-11-20 11:50:24] [EMAIL PROTECTED]

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-20 08:27:53] [EMAIL PROTECTED]

Verifyed, attempting to fix it :-)

Derick



[2002-11-20 08:24:35] [EMAIL PROTECTED]

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-12 13:38:15] [EMAIL PROTECTED]

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-12 12:54:19] [EMAIL PROTECTED]

s/reconstruct/reproduce/  :)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20284

-- 
Edit this bug report at http://bugs.php.net/?id=20284edit=1




#20284 [Opn]: Apache crashes (Sig 11) when doing a ini_set('session.save_handler', ..)

2002-11-12 Thread fatih . gey
 ID:   20284
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Session related
 Operating System: Linux (RH-7.3)
 PHP Version:  4.3.0-dev
 New Comment:

s/reconstruct/reproduce/  :)


Previous Comments:


[2002-11-12 12:52:18] [EMAIL PROTECTED]

--- Use this Script to reconstruct this error:
?php
ini_set('session.save_handler', 'user');
?
---



[2002-11-07 17:33:07] [EMAIL PROTECTED]

Please add a short but complete example script which we can use to
reproduce this.



[2002-11-06 13:22:03] [EMAIL PROTECTED]

Just installed cvs version 200211030600

.. doesn't work either.



[2002-11-06 10:30:29] [EMAIL PROTECTED]

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 10:21:39] [EMAIL PROTECTED]

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=0xb680) 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=0xbb84, init=0x804e574 _init, 
fini=0x808d3e0 _fini, rtld_fini=0x4000d3c4 _dl_fini,
stack_end=0xbb7c) at ../sysdeps/generic/libc-start.c:129





-- 
Edit this bug report at 

#20284 [NEW]: Apache crashes (Sig 11) when doing a ini_set('session.save_handler', ..)

2002-11-06 Thread fatih . gey
From: [EMAIL PROTECTED]
Operating system: Linux (RH-7.3)
PHP version:  4.2.3
PHP Bug Type: Session related
Bug description:  Apache crashes (Sig 11) when doing a ini_set('session.save_handler', 
..)

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=0xb680) 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=0xbb84, init=0x804e574 _init, 
fini=0x808d3e0 _fini, rtld_fini=0x4000d3c4 _dl_fini,
stack_end=0xbb7c) at ../sysdeps/generic/libc-start.c:129

-- 
Edit bug report at http://bugs.php.net/?id=20284edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20284r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20284r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20284r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20284r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20284r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20284r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20284r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20284r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20284r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20284r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20284r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20284r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20284r=isapi




#20284 [Fbk-Opn]: Apache crashes (Sig 11) when doing a ini_set('session.save_handler', ..)

2002-11-06 Thread fatih . gey
 ID:   20284
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Linux (RH-7.3)
 PHP Version:  4.2.3
 New Comment:

Just installed cvs version 200211030600

.. doesn't work either.


Previous Comments:


[2002-11-06 10:30:29] [EMAIL PROTECTED]

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 10:21:39] [EMAIL PROTECTED]

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=0xb680) 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=0xbb84, init=0x804e574 _init, 
fini=0x808d3e0 _fini, rtld_fini=0x4000d3c4 _dl_fini,
stack_end=0xbb7c) at ../sysdeps/generic/libc-start.c:129





-- 
Edit this bug report at http://bugs.php.net/?id=20284edit=1