Bug #60156 [Com]: Segmentation fault at _zend_mm_alloc_int

2011-11-25 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60156edit=1

 ID: 60156
 Comment by: dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:Segmentation fault at _zend_mm_alloc_int
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.8
 Block user comment: N
 Private report: N

 New Comment:

sorry. i found the solution in an self-made patch for php.

You can close this.
Thank you.


Previous Comments:

[2011-10-31 12:46:53] dbetz at df dot eu

Hello,

i cant reproduce this with php-cgi and php-fpm with --enable-debug
When i compile php-fpm w/o --enable-debug i hit this segfault.

With php = 5.3.7rc3-dev i always get an segfault in zend_assign_to_variable
See https://bugs.php.net/bug.php?id=54488

It is always the same procedure to reproduce this segfaults.


[2011-10-31 10:56:23] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


It does not seem to be a problem related to FPM but to core.

Can you reproduce the bug with php-cgi, php-cli or mod_php ?


[2011-10-28 06:43:44] dbetz at df dot eu

Description:

Hello,

when posting in vBulletin Board the PHP-FPM receives an segfault.


Program received signal SIGSEGV, Segmentation fault.
_zend_mm_alloc_int (heap=0x8a3aa30, size=52) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
1835/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c: No such file 
or directory.
in /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c
(gdb) bt full
#0  _zend_mm_alloc_int (heap=0x8a3aa30, size=52) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
bitmap = value optimized out
best_fit = value optimized out
true_size = 60
block_size = value optimized out
remaining_size = value optimized out
segment_size = value optimized out
segment = value optimized out
keep_rest = value optimized out
#1  0x0842ea0c in _zend_hash_quick_add_or_update (ht=0x90dc2f0, arKey=0x90d8b78 
plaintext_parser, nKeyLength=17, h=3773187690, pData=0x90d8b64,
nDataSize=4, pDest=0xba7522a8, flag=1) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:315
p = 0x0
#2  0x0842ef06 in zend_hash_copy (target=0x90dc2f0, source=0x8e88318, 
pCopyConstructor=0x84216f0 zval_add_ref, tmp=0xba7522e8, size=4)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:788
p = 0x90d8b58
new_entry = 0x90d8a40
#3  0x084217df in _zval_copy_ctor_func (zvalue=0x9003c60) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.c:134
tmp = 0x5b
original_ht = 0x8e88318
#4  0x084226a0 in _zval_copy_ctor (type=8, format=0x898f84c Use of undefined 
constant %s - assumed '%s')
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.h:45
No locals.
#5  zend_error (type=8, format=0x898f84c Use of undefined constant %s - 
assumed '%s') at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1103
retval = value optimized out
z_error_type = 0x90054d4
z_error_message = 0x90da358
z_error_filename = 0x90082a0
z_error_lineno = 0x90082f4
z_context = 0x9003c60
error_filename = 0x90d5b34 
/home/user/testforen/domaingo/includes/functions_newpost.php(668) : eval()'d 
code
error_lineno = 43
orig_user_error_handler = value optimized out
in_compilation = value optimized out
saved_class_entry = value optimized out
#6  0x08448926 in ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER 
(execute_data=0x8b92abc)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:17844
actual = 0x90dafe4 postid
opline = 0x90de7e0
#7  0x0844d33e in execute (op_array=0x8e90548) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:107
ret = value optimized out
execute_data = 0x8b92abc
nested = 1 '\001'
original_in_execution = 0 '\000'
#8  0x08421b46 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1236
i = 1
file_handle = 0xba7568a0
orig_op_array = 0x0
orig_retval_ptr_ptr = 0x0
#9  0x083cf596 in php_execute_script (primary_file=0xba7568a0) at 
/root/compile/php-5.3/latest/php-5.3.8/main/main.c:2284
realfile = 
ø4uºóûJ\b\000À½©ÿÿÿÿ\000\000\000\000sd@\b@è¼\b\020@¿©8´¼\b|FuºO±Ù\001ù\213\t\000(5uº\t;J\b\003\000

[PHP-BUG] Bug #60387 [NEW]: Problem with php_(admin)?_value/flag and load order

2011-11-25 Thread dbetz at df dot eu
From: 
Operating system: Gentoo Linux
PHP version:  5.3.8
Package:  FPM related
Bug Type: Bug
Bug description:Problem with php_(admin)?_value/flag and load order

Description:

Hello,

we are currently testing PHP-FPM on many production domains.
All over 150 domains are working fine and without any problems.
Were using PHP5.3.8 with the ondemand process manager patch.

But i have currently the problem with php_values.

I explain it in an simple example:
The customer can edit its own php.ini file. When editing is done i write
all the values/flags to the pool config and reload fpm.

But now, when the user adds settings to an extension before the extension
is loaded, the settings get lost.

I cant prohibit customers to randomly insert the settings in php.ini :-(

Hoping you can help!

greetings,
daniel



Test script:
---
I have used APC as an example.

Following php-fpm.conf:

[default]
pm = ondemand
pm.max_children = 40
pm.min_spare_servers = 2
pm.max_spare_servers = 40
pm.process_idle_timeout = 90
pm.max_requests = 500

php_admin_value[apc.ttl] = 600
php_admin_value[extension] = apc.so
php_admin_value[apc.user_ttl] = 600


start the FPM an have a look into phpinfo()


Expected result:

phpinfo() shows:

apc.ttl 0
apc.user_ttl 600

Actual result:
--
phpinfo() shows:

apc.ttl 600
apc.user_ttl 600

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60387edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60387r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60387r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60387r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60387r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60387r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60387r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60387r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60387r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60387r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60387r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60387r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60387r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60387r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60387r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60387r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60387r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60387r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60387r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60387r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60387r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60387r=mysqlcfg



Bug #60387 [Opn]: Problem with php_(admin)?_value/flag and load order

2011-11-25 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60387edit=1

 ID: 60387
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:Problem with php_(admin)?_value/flag and load order
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Block user comment: N
 Private report: N

 New Comment:

And is there an chance to get zend_extension to work with php_admin_value ?
or is this an must to set it directly in the php.ini ?

when starting one newly compiled FPM master process for every pool, just to 
have different php.ini files with --with-config-file-path isnt an good option.


Previous Comments:

[2011-11-25 14:08:59] dbetz at df dot eu

Description:

Hello,

we are currently testing PHP-FPM on many production domains.
All over 150 domains are working fine and without any problems.
Were using PHP5.3.8 with the ondemand process manager patch.

But i have currently the problem with php_values.

I explain it in an simple example:
The customer can edit its own php.ini file. When editing is done i write all 
the values/flags to the pool config and reload fpm.

But now, when the user adds settings to an extension before the extension is 
loaded, the settings get lost.

I cant prohibit customers to randomly insert the settings in php.ini :-(

Hoping you can help!

greetings,
daniel



Test script:
---
I have used APC as an example.

Following php-fpm.conf:

[default]
pm = ondemand
pm.max_children = 40
pm.min_spare_servers = 2
pm.max_spare_servers = 40
pm.process_idle_timeout = 90
pm.max_requests = 500

php_admin_value[apc.ttl] = 600
php_admin_value[extension] = apc.so
php_admin_value[apc.user_ttl] = 600


start the FPM an have a look into phpinfo()


Expected result:

phpinfo() shows:

apc.ttl 0
apc.user_ttl 600

Actual result:
--
phpinfo() shows:

apc.ttl 600
apc.user_ttl 600






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


Bug #60179 [Fbk-Asn]: wrong output with php_flag boolean

2011-11-03 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60179edit=1

 ID: 60179
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:wrong output with php_flag boolean
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello Jerome,

works like a charm :-)

Thank you much.

Greetings,
Daniel


Previous Comments:

[2011-11-03 15:08:02] f...@php.net

I finally understood your problem ;)

Can you please test the version 2 of the patch attached and reopen the bug when 
it's done ?

Thx
++ Jerome


[2011-11-03 15:07:02] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-bug60179-v2.patch
Revision:   1320332822
URL:
https://bugs.php.net/patch-display.php?bug=60179patch=fpm-bug60179-v2.patchrevision=1320332822


[2011-10-31 14:44:52] dbetz at df dot eu

In the php manual http://php.net/ini_get is an notice:
Hinweis: When querying boolean values

A boolean ini value of off will be returned as an empty string or 0 while a 
boolean ini value of on will be returned as 1. The function can also return 
the literal string of INI value. 

--

It looks like, that the value is not boolen Off but string Off


[2011-10-31 14:34:49] dbetz at df dot eu

Hello,

yes, the option is set correct, but the return value of ini_get() is different 
than whith php-cgi.

Most apps like typo3, joomla, wordpress, eg. are checking in the installer, if 
php.ini settings are correct.
These setting are checked thru ini_get.

When ini_get(session.auto_start) is not 0 but Off, then the check fails.

Here is the sample code from typo3 installer:

if (ini_get('session.auto_start')) {
$sessionCreationError = 'Error: session.auto-start
is enabled.br /';
$sessionCreationError .= 'The PHP option
session.auto-start is enabled. Disable this option in php.ini or
.htaccess:br /';

I hope you understand now my problem.


[2011-10-31 14:22:10] f...@php.net

hum ... not sure to understand your problem afterall :)

without the patch:
If I set php_flag[session.auto_start]=On
ini_get(session.auto_start) returns On
and session are created for each page (auto start is on as asked)

If I set php_flag[session.auto_start]=Off
ini_get(session.auto_start) returns Off
and session are NOT created for each page (auto start is off as asked)

For me this works as expected.
Do you have the same behavior ?




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

https://bugs.php.net/bug.php?id=60179


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


[PHP-BUG] Bug #60179 [NEW]: wrong output with php_flag boolean

2011-10-31 Thread dbetz at df dot eu
From: 
Operating system: Gentoo Linux
PHP version:  5.3.8
Package:  FPM related
Bug Type: Bug
Bug description:wrong output with php_flag boolean

Description:

Hello,

when setting php_flag to Off or false, then PHP FPM sets it to the string
Off rather than 0 or NULL.

In fpm.conf
php_flag[session.auto_start] = Off
or
php_flag[session.auto_start] = false

It seems that the failure is on all boolean flags.


Test script:
---
?
echo session.auto_start is :  . ini_get('session.auto_start') . \n;
if (ini_get('session.auto_start')) {
echo Some code here .\n;
}
?




Expected result:

session.auto_start is : 0

Actual result:
--
session.auto_start is : Off

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60179edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60179r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60179r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60179r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60179r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60179r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60179r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60179r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60179r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60179r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60179r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60179r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60179r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60179r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60179r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60179r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60179r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60179r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60179r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60179r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60179r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60179r=mysqlcfg



Bug #60156 [Fbk-Opn]: Segmentation fault at _zend_mm_alloc_int

2011-10-31 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60156edit=1

 ID: 60156
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:Segmentation fault at _zend_mm_alloc_int
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.8
 Block user comment: N
 Private report: N

 New Comment:

Hello,

i cant reproduce this with php-cgi and php-fpm with --enable-debug
When i compile php-fpm w/o --enable-debug i hit this segfault.

With php = 5.3.7rc3-dev i always get an segfault in zend_assign_to_variable
See https://bugs.php.net/bug.php?id=54488

It is always the same procedure to reproduce this segfaults.


Previous Comments:

[2011-10-31 10:56:23] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


It does not seem to be a problem related to FPM but to core.

Can you reproduce the bug with php-cgi, php-cli or mod_php ?


[2011-10-28 06:43:44] dbetz at df dot eu

Description:

Hello,

when posting in vBulletin Board the PHP-FPM receives an segfault.


Program received signal SIGSEGV, Segmentation fault.
_zend_mm_alloc_int (heap=0x8a3aa30, size=52) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
1835/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c: No such file 
or directory.
in /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c
(gdb) bt full
#0  _zend_mm_alloc_int (heap=0x8a3aa30, size=52) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
bitmap = value optimized out
best_fit = value optimized out
true_size = 60
block_size = value optimized out
remaining_size = value optimized out
segment_size = value optimized out
segment = value optimized out
keep_rest = value optimized out
#1  0x0842ea0c in _zend_hash_quick_add_or_update (ht=0x90dc2f0, arKey=0x90d8b78 
plaintext_parser, nKeyLength=17, h=3773187690, pData=0x90d8b64,
nDataSize=4, pDest=0xba7522a8, flag=1) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:315
p = 0x0
#2  0x0842ef06 in zend_hash_copy (target=0x90dc2f0, source=0x8e88318, 
pCopyConstructor=0x84216f0 zval_add_ref, tmp=0xba7522e8, size=4)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:788
p = 0x90d8b58
new_entry = 0x90d8a40
#3  0x084217df in _zval_copy_ctor_func (zvalue=0x9003c60) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.c:134
tmp = 0x5b
original_ht = 0x8e88318
#4  0x084226a0 in _zval_copy_ctor (type=8, format=0x898f84c Use of undefined 
constant %s - assumed '%s')
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.h:45
No locals.
#5  zend_error (type=8, format=0x898f84c Use of undefined constant %s - 
assumed '%s') at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1103
retval = value optimized out
z_error_type = 0x90054d4
z_error_message = 0x90da358
z_error_filename = 0x90082a0
z_error_lineno = 0x90082f4
z_context = 0x9003c60
error_filename = 0x90d5b34 
/home/user/testforen/domaingo/includes/functions_newpost.php(668) : eval()'d 
code
error_lineno = 43
orig_user_error_handler = value optimized out
in_compilation = value optimized out
saved_class_entry = value optimized out
#6  0x08448926 in ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER 
(execute_data=0x8b92abc)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:17844
actual = 0x90dafe4 postid
opline = 0x90de7e0
#7  0x0844d33e in execute (op_array=0x8e90548) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:107
ret = value optimized out
execute_data = 0x8b92abc
nested = 1 '\001'
original_in_execution = 0 '\000'
#8  0x08421b46 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at 
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1236
i = 1
file_handle = 0xba7568a0
orig_op_array = 0x0
orig_retval_ptr_ptr = 0x0
#9  0x083cf596 in php_execute_script (primary_file=0xba7568a0) at 
/root/compile/php-5.3/latest/php-5.3.8/main/main.c:2284
realfile = 
ø4uºóûJ\b\000À½©ÿÿÿÿ\000\000\000\000sd@\b@è¼\b\020@¿©8´¼\b|FuºO±Ù\001ù\213\t\000(5uº\t;J\b\003\000\000\000\030\065uº\b\000\000\000\000\000\000\000 \203=©ôo=©Nß.©\000\000\000\000\001\000\000\000|Fuº¤ö¼\bô\206\000\000\060ª£\b¤ö¼\bX5uº\002\000\000\000
 
\000

Bug #60179 [Fbk-Asn]: wrong output with php_flag boolean

2011-10-31 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60179edit=1

 ID: 60179
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:wrong output with php_flag boolean
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hi fat,

i have tested the latest snapshot with the patch and have changed the config to
php_flag[session.auto_start] = Off

But the problem is still here.

Looking into fpm_conf.c at: static char *fpm_conf_set_array(... :
if (convert_to_bool) {
char *err = fpm_conf_set_boolean(value, subconf, 0);
if (err) return err;
kv-value = strdup(b ? On : Off);
}

It looks like kv-value is either string On or Off or am i wrong ?


Previous Comments:

[2011-10-31 13:18:55] f...@php.net

1- On wich version did you apply the patch ? Please test the patch on the 
lastest 5.3.x snapshot.

2- you should not surrender the parameter with double quote:

php_flag[session.auto_start] = Off

should be

php_flag[session.auto_start] = Off


Can you get rid of the bug. On my side, I have the last 5.3.x snapshot and it 
works great. I can't reproduce your problem.


[2011-10-31 13:11:01] dbetz at df dot eu

Hello,

sorry, the problem still exists.
session.auto_start is : Off
Some code here .

With cli:
session.auto_start is : 0


[2011-10-31 13:02:09] f...@php.net

Can you please test the patch attached ?

If you can test it quickly I can integrate it before 5.3.9 is going RC1.

thx
++ fat


[2011-10-31 13:00:41] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-bug60179.patch
Revision:   1320066041
URL:
https://bugs.php.net/patch-display.php?bug=60179patch=fpm-bug60179.patchrevision=1320066041


[2011-10-31 08:43:30] dbetz at df dot eu

Description:

Hello,

when setting php_flag to Off or false, then PHP FPM sets it to the string Off 
rather than 0 or NULL.

In fpm.conf
php_flag[session.auto_start] = Off
or
php_flag[session.auto_start] = false

It seems that the failure is on all boolean flags.


Test script:
---
?
echo session.auto_start is :  . ini_get('session.auto_start') . \n;
if (ini_get('session.auto_start')) {
echo Some code here .\n;
}
?




Expected result:

session.auto_start is : 0

Actual result:
--
session.auto_start is : Off






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


Bug #60179 [Fbk-Asn]: wrong output with php_flag boolean

2011-10-31 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60179edit=1

 ID: 60179
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:wrong output with php_flag boolean
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

sorry, the problem still exists.
session.auto_start is : Off
Some code here .

With cli:
session.auto_start is : 0


Previous Comments:

[2011-10-31 13:02:09] f...@php.net

Can you please test the patch attached ?

If you can test it quickly I can integrate it before 5.3.9 is going RC1.

thx
++ fat


[2011-10-31 13:00:41] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-bug60179.patch
Revision:   1320066041
URL:
https://bugs.php.net/patch-display.php?bug=60179patch=fpm-bug60179.patchrevision=1320066041


[2011-10-31 08:43:30] dbetz at df dot eu

Description:

Hello,

when setting php_flag to Off or false, then PHP FPM sets it to the string Off 
rather than 0 or NULL.

In fpm.conf
php_flag[session.auto_start] = Off
or
php_flag[session.auto_start] = false

It seems that the failure is on all boolean flags.


Test script:
---
?
echo session.auto_start is :  . ini_get('session.auto_start') . \n;
if (ini_get('session.auto_start')) {
echo Some code here .\n;
}
?




Expected result:

session.auto_start is : 0

Actual result:
--
session.auto_start is : Off






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


Bug #60179 [Asn]: wrong output with php_flag boolean

2011-10-31 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60179edit=1

 ID: 60179
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:wrong output with php_flag boolean
 Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

yes, the option is set correct, but the return value of ini_get() is different 
than whith php-cgi.

Most apps like typo3, joomla, wordpress, eg. are checking in the installer, if 
php.ini settings are correct.
These setting are checked thru ini_get.

When ini_get(session.auto_start) is not 0 but Off, then the check fails.

Here is the sample code from typo3 installer:

if (ini_get('session.auto_start')) {
$sessionCreationError = 'Error: session.auto-start
is enabled.br /';
$sessionCreationError .= 'The PHP option
session.auto-start is enabled. Disable this option in php.ini or
.htaccess:br /';

I hope you understand now my problem.


Previous Comments:

[2011-10-31 14:22:10] f...@php.net

hum ... not sure to understand your problem afterall :)

without the patch:
If I set php_flag[session.auto_start]=On
ini_get(session.auto_start) returns On
and session are created for each page (auto start is on as asked)

If I set php_flag[session.auto_start]=Off
ini_get(session.auto_start) returns Off
and session are NOT created for each page (auto start is off as asked)

For me this works as expected.
Do you have the same behavior ?


[2011-10-31 13:52:48] dbetz at df dot eu

Hi fat,

i have tested the latest snapshot with the patch and have changed the config to
php_flag[session.auto_start] = Off

But the problem is still here.

Looking into fpm_conf.c at: static char *fpm_conf_set_array(... :
if (convert_to_bool) {
char *err = fpm_conf_set_boolean(value, subconf, 0);
if (err) return err;
kv-value = strdup(b ? On : Off);
}

It looks like kv-value is either string On or Off or am i wrong ?


[2011-10-31 13:18:55] f...@php.net

1- On wich version did you apply the patch ? Please test the patch on the 
lastest 5.3.x snapshot.

2- you should not surrender the parameter with double quote:

php_flag[session.auto_start] = Off

should be

php_flag[session.auto_start] = Off


Can you get rid of the bug. On my side, I have the last 5.3.x snapshot and it 
works great. I can't reproduce your problem.


[2011-10-31 13:11:01] dbetz at df dot eu

Hello,

sorry, the problem still exists.
session.auto_start is : Off
Some code here .

With cli:
session.auto_start is : 0


[2011-10-31 13:02:09] f...@php.net

Can you please test the patch attached ?

If you can test it quickly I can integrate it before 5.3.9 is going RC1.

thx
++ fat




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

https://bugs.php.net/bug.php?id=60179


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


Bug #60179 [Asn]: wrong output with php_flag boolean

2011-10-31 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=60179edit=1

 ID: 60179
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:wrong output with php_flag boolean
 Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo Linux
 PHP Version:5.3.8
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

In the php manual http://php.net/ini_get is an notice:
Hinweis: When querying boolean values

A boolean ini value of off will be returned as an empty string or 0 while a 
boolean ini value of on will be returned as 1. The function can also return 
the literal string of INI value. 

--

It looks like, that the value is not boolen Off but string Off


Previous Comments:

[2011-10-31 14:34:49] dbetz at df dot eu

Hello,

yes, the option is set correct, but the return value of ini_get() is different 
than whith php-cgi.

Most apps like typo3, joomla, wordpress, eg. are checking in the installer, if 
php.ini settings are correct.
These setting are checked thru ini_get.

When ini_get(session.auto_start) is not 0 but Off, then the check fails.

Here is the sample code from typo3 installer:

if (ini_get('session.auto_start')) {
$sessionCreationError = 'Error: session.auto-start
is enabled.br /';
$sessionCreationError .= 'The PHP option
session.auto-start is enabled. Disable this option in php.ini or
.htaccess:br /';

I hope you understand now my problem.


[2011-10-31 14:22:10] f...@php.net

hum ... not sure to understand your problem afterall :)

without the patch:
If I set php_flag[session.auto_start]=On
ini_get(session.auto_start) returns On
and session are created for each page (auto start is on as asked)

If I set php_flag[session.auto_start]=Off
ini_get(session.auto_start) returns Off
and session are NOT created for each page (auto start is off as asked)

For me this works as expected.
Do you have the same behavior ?


[2011-10-31 13:52:48] dbetz at df dot eu

Hi fat,

i have tested the latest snapshot with the patch and have changed the config to
php_flag[session.auto_start] = Off

But the problem is still here.

Looking into fpm_conf.c at: static char *fpm_conf_set_array(... :
if (convert_to_bool) {
char *err = fpm_conf_set_boolean(value, subconf, 0);
if (err) return err;
kv-value = strdup(b ? On : Off);
}

It looks like kv-value is either string On or Off or am i wrong ?


[2011-10-31 13:18:55] f...@php.net

1- On wich version did you apply the patch ? Please test the patch on the 
lastest 5.3.x snapshot.

2- you should not surrender the parameter with double quote:

php_flag[session.auto_start] = Off

should be

php_flag[session.auto_start] = Off


Can you get rid of the bug. On my side, I have the last 5.3.x snapshot and it 
works great. I can't reproduce your problem.


[2011-10-31 13:11:01] dbetz at df dot eu

Hello,

sorry, the problem still exists.
session.auto_start is : Off
Some code here .

With cli:
session.auto_start is : 0




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

https://bugs.php.net/bug.php?id=60179


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


[PHP-BUG] Bug #60156 [NEW]: Segmentation fault at _zend_mm_alloc_int

2011-10-28 Thread dbetz at df dot eu
From: 
Operating system: Gentoo
PHP version:  5.3.8
Package:  FPM related
Bug Type: Bug
Bug description:Segmentation fault at _zend_mm_alloc_int

Description:

Hello,

when posting in vBulletin Board the PHP-FPM receives an segfault.


Program received signal SIGSEGV, Segmentation fault.
_zend_mm_alloc_int (heap=0x8a3aa30, size=52) at
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
1835/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c: No such
file or directory.
in /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c
(gdb) bt full
#0  _zend_mm_alloc_int (heap=0x8a3aa30, size=52) at
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_alloc.c:1835
bitmap = value optimized out
best_fit = value optimized out
true_size = 60
block_size = value optimized out
remaining_size = value optimized out
segment_size = value optimized out
segment = value optimized out
keep_rest = value optimized out
#1  0x0842ea0c in _zend_hash_quick_add_or_update (ht=0x90dc2f0,
arKey=0x90d8b78 plaintext_parser, nKeyLength=17, h=3773187690,
pData=0x90d8b64,
nDataSize=4, pDest=0xba7522a8, flag=1) at
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:315
p = 0x0
#2  0x0842ef06 in zend_hash_copy (target=0x90dc2f0, source=0x8e88318,
pCopyConstructor=0x84216f0 zval_add_ref, tmp=0xba7522e8, size=4)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_hash.c:788
p = 0x90d8b58
new_entry = 0x90d8a40
#3  0x084217df in _zval_copy_ctor_func (zvalue=0x9003c60) at
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.c:134
tmp = 0x5b
original_ht = 0x8e88318
#4  0x084226a0 in _zval_copy_ctor (type=8, format=0x898f84c Use of
undefined constant %s - assumed '%s')
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_variables.h:45
No locals.
#5  zend_error (type=8, format=0x898f84c Use of undefined constant %s -
assumed '%s') at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1103
retval = value optimized out
z_error_type = 0x90054d4
z_error_message = 0x90da358
z_error_filename = 0x90082a0
z_error_lineno = 0x90082f4
z_context = 0x9003c60
error_filename = 0x90d5b34
/home/user/testforen/domaingo/includes/functions_newpost.php(668) :
eval()'d code
error_lineno = 43
orig_user_error_handler = value optimized out
in_compilation = value optimized out
saved_class_entry = value optimized out
#6  0x08448926 in ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER
(execute_data=0x8b92abc)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:17844
actual = 0x90dafe4 postid
opline = 0x90de7e0
#7  0x0844d33e in execute (op_array=0x8e90548) at
/root/compile/php-5.3/latest/php-5.3.8/Zend/zend_vm_execute.h:107
ret = value optimized out
execute_data = 0x8b92abc
nested = 1 '\001'
original_in_execution = 0 '\000'
#8  0x08421b46 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /root/compile/php-5.3/latest/php-5.3.8/Zend/zend.c:1236
i = 1
file_handle = 0xba7568a0
orig_op_array = 0x0
orig_retval_ptr_ptr = 0x0
#9  0x083cf596 in php_execute_script (primary_file=0xba7568a0) at
/root/compile/php-5.3/latest/php-5.3.8/main/main.c:2284
realfile =
ø4uºóûJ\b\000À½©ÿÿÿÿ\000\000\000\000sd@\b@è¼\b\020@¿©8´¼\b|FuºO±Ù\001ù\213\t\000(5uº\t;J\b\003\000\000\000\030\065uº\b\000\000\000\000\000\000\000 \203=©ôo=©Nß.©\000\000\000\000\001\000\000\000|Fuº¤ö¼\bô\206\000\000\060ª£\b¤ö¼\bX5uº\002\000\000\000
\000\000\000\002\000\000\000\001\000\000\000P\204=©\025A;©\000\000\000\000Ø\203=©ä?;©ïB;©\020\000\000\000\000\000\000\000\a\000\000\000 \203=©\000\000\002\000Ð\203=©ôo=© \203=©ôðä\b¨5uº,\005/©...
---Type return to continue, or q return to quit---
__orig_bailout = 0xba756750
__bailout = {{__jmpbuf = {-1166710624, 149219088, -1166719584,
-1166719512, 2100435798, -292405198}, __mask_was_saved = 0, __saved_mask =
{
  __val = {0, 41205, 0, 4096, 96, 0, 1307476459, 0, 1307472900,
0, 1307476461, 0, 851998, 0, 149313384, 148992216, 149221620, 3128247784,
138241681, 3, 4, 3128247648, 1, 149221372, 3128256336,
3128247672, 149215192, 149219088, 147225912, 3128247784, 2112977750,
2305
prepend_file_p = 0x0
append_file_p = value optimized out
prepend_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,
isatty = 0,
  mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle =
0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}},
  free_filename = 0 '\000'}
append_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,

Req #51973 [Com]: a way to restart single pools, enable/disable modules per pool

2011-10-21 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=51973edit=1

 ID: 51973
 Comment by: dbetz at df dot eu
 Reported by:slogster at gmail dot com
 Summary:a way to restart single pools, enable/disable
 modules per pool
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3SVN-2010-06-02 (SVN)
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

a graceful restart would be really nice  AFTER ondemand feature :-D

Greetings,
Daniel


Previous Comments:

[2011-07-22 08:06:29] uros dot gruber at gmail dot com

+1

This could realy be usefull.


[2011-07-05 08:18:34] daniele dot pignedoli at gmail dot com

+1
Would be great also the possibility to add fpm pools on-the-fly without having 
to restart fpm (causing a downtime to all pools)


[2010-07-22 23:21:21] f...@php.net

Hi there.

There is no way to restart a single pool. If you change the conf file, send a 
USR2 
signal to the FPM process. All pool will be restarted. If you really don't want 
to 
restart other pools, you can safely send a QUIT signal the each pool processes.

btw, this bugs makes me think about adding a gracefull restart of FPM.


[2010-06-13 16:04:20] f...@php.net

For enabeling extensions you can use the php_admin_value setting for each pool:

php_admin_value[extension] = extension.so


[2010-06-02 13:01:49] slogster at gmail dot com

Description:

Hi,



I would like to be able do enable/disable modules per pool and would also like 
to be able to restart single pool when I change its config.



Thanks







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


Bug #54488 [Bgs]: SIGSEGV in zend_assign_to_variable

2011-07-22 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Bogus
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

after some time without problems now i get many segfaults:

Program received signal SIGSEGV, Segmentation fault.
_zend_mm_alloc_int (heap=0x8a65570, size=52) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_alloc.c:1835
1835/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_alloc.c: 
No such file or directory.
in /root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_alloc.c
(gdb) bt full
#0  _zend_mm_alloc_int (heap=0x8a65570, size=52) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_alloc.c:1835
bitmap = value optimized out
best_fit = value optimized out
true_size = 60
block_size = value optimized out
remaining_size = value optimized out
segment_size = value optimized out
segment = value optimized out
keep_rest = value optimized out
#1  0x08450e8c in _zend_hash_quick_add_or_update (ht=0x94a6144, arKey=0x94a2ecc 
plaintext_parser, nKeyLength=17, h=3773187690, pData=0x94a2eb8,
nDataSize=4, pDest=0xb4dfd1f8, flag=1) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_hash.c:315
p = 0x0
#2  0x08451386 in zend_hash_copy (target=0x94a6144, source=0x92a7994, 
pCopyConstructor=0x8443f90 zval_add_ref, tmp=0xb4dfd238, size=4)
at /root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_hash.c:787
p = 0x94a2eac
new_entry = 0x94a2e08
#3  0x0844407f in _zval_copy_ctor_func (zvalue=0x935eb10) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_variables.c:134
tmp = 0x5b
original_ht = 0x92a7994
#4  0x0844487d in _zval_copy_ctor (type=8, format=0x89b9f2c Use of undefined 
constant %s - assumed '%s')
at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_variables.h:45
No locals.
#5  zend_error (type=8, format=0x89b9f2c Use of undefined constant %s - 
assumed '%s')
at /root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend.c:1078
retval = value optimized out
z_error_type = 0x93ccd28
z_error_message = 0x94a49d8
z_error_filename = 0x935cd3c
z_error_lineno = 0x935cd88
z_context = 0x935eb10
error_filename = 0x949feec 
/kunden/145279_85737/liveforen/domaingo/includes/functions_newpost.php(668) : 
eval()'d code
error_lineno = 43
orig_user_error_handler = value optimized out
in_compilation = value optimized out
saved_class_entry = value optimized out
#6  0x0846a0d6 in ZEND_FETCH_CONSTANT_SPEC_UNUSED_CONST_HANDLER 
(execute_data=0x8bca78c)
at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_vm_execute.h:17844
actual = 0x94a5574 postid
opline = 0x94a825c
#7  0x0846eaee in execute (op_array=0x8e24980) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend_vm_execute.h:107
ret = value optimized out
execute_data = 0x8bca78c
nested = 1 '\001'
original_in_execution = 0 '\000'
#8  0x084443e6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/Zend/zend.c:1195
i = 1
file_handle = 0xb4e01790
orig_op_array = 0x0
orig_retval_ptr_ptr = 0x0
#9  0x083f2bd6 in php_execute_script (primary_file=0xb4e01790) at 
/root/compile/php-5.3-fpm/snaps/php5.3-201107150430/main/main.c:2284
realfile = 
èãß´C\021M\b\000\060X¢ÿÿÿÿ\000\000\000\000#\217B\bô\020+\tÀ\\Ú£ÀÏ*\tlõß´å\235X\001\065~\r\000\030äß´©RL\b\003\000\000\000\bäß´\b\000\000\000\000\000\000\000pU¦\bn|A£\001\005\000\001\000\000\000\000\001\000\000\000lõß´¸.\027\t\220\002\000\000pU¦\b¸.\027\tHäß´#\217B\b\210ÓN£\002\000\000\000\001\000\000\000däß´\001ôß´\000\000\000\000¸ÓN£»Ô?\bl/\027\t\020\000\000\000\002\000\000\000/ÁL£\200ÓN£È\032\002\000¸ÓN£ô¿N£\200ÓN£Ð\000+\t\230äß´|¢A£..---Type
 return to continue, or q return to quit---
.
__orig_bailout = 0xb4e01640
__bailout = {{__jmpbuf = {-1260382320, 153810792, -1260391280, 
-1260391208, 2072411008, -1166720775}, __mask_was_saved = 0, __saved_mask = {
  __val = {0, 41205, 0, 4096, 96, 0, 1308693440, 0, 1307472900, 0, 
1308693441, 0, 852891, 0, 153900944, 148950944, 153813200, 3034576088,
138386641, 3, 4, 3034575952, 1, 153812952, 3034584640, 
3034575976, 153813428, 153810792, 149062664, 3034576088, 2076760960, 2305
prepend_file_p = 0x0
append_file_p = value optimized out

Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-15 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hi jerome,

the test ist successful for me.
Everything works fine with PHP5.3.7rc4-dev and ondemand patch v11

Greets,
Daniel


Previous Comments:

[2011-07-14 18:47:05] f...@php.net

Here is a complete new release of the ondemand patch: the version 11.

I've rewritten entierly the event part in order to have access to the following 
mechanism:
select (posix)
poll (posix) - was the mechanism in used before
epoll (linux)
kqueue (*bsd)
/dev/poll (solaris)
port (solaris)

all this mechanism supports classic Level-Triggered events which is not adapted 
for what we need for the ondemand patch.

epoll and kqueue also supports Edge-Triggered events which suits very well the 
ondemand patch needs.

choice is made automatically by detection and the best is used. You can 
overrride the detection by setting events.mechanism in [global]

So now, ondemand PM will only works if kqueue or epoll is selected. It will 
only work on Linux and *BSD. But, it should work has expected without the 
previous drity trick: events.delays or pm.min_delay_between_fork.

so, to test it:
get the lastest 5.3 or 5.4 snapshot, apply the patch and:
./vcsclean
./buildconf
./config.nice (or configure ... --enable-fpm)
make

set pm to ondemand and run

/* enjoy */


[2011-07-14 18:38:24] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-ondemand.v11-5.3.patch
Revision:   1310683104
URL:
https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v11-5.3.patchrevision=1310683104


[2011-07-14 18:27:18] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-ondemand.v11.patch
Revision:   1310682438
URL:
https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v11.patchrevision=1310682438


[2011-07-11 04:09:43] f...@php.net

As 5.3.7 is in a RC release process, only bugfixes are going there until 5.3.7 
is 
out.

so the ondemand will be added in 5.3.7+ and 5.4 and marked as experimental.


[2011-07-11 02:36:28] dbetz at df dot eu

Hello all,

now all works fine for me. Great work !! +1
I hope this gets implemented in 5.3.7 stable release :-)

Im testing on an Gentoo 1.12.13

Greetings,
Daniel




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

https://bugs.php.net/bug.php?id=52569


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


Bug #54488 [Asn]: SIGSEGV in zend_assign_to_variable

2011-07-13 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Thanks for all your help.

The segfault isnt reproducable now.
Maybe the last vBulletin Board update changes some thing in the Object handling 
or maybe i have updated some librarys.
I have tested with PHP-FPM 5.3.6 and the latest Snapshot.

So i think you can close this bugreport.

Greets,
Daniel


Previous Comments:

[2011-07-13 04:33:38] tony2...@php.net

Valgrind log would be quite helpful: 
https://bugs.php.net/bugs-getting-valgrind-log.php


[2011-07-12 19:08:38] f...@php.net

I've asked for help on internals: http://news.php.net/php.internals/53922

see where it goes


[2011-07-07 02:38:16] dbetz at df dot eu

Hello,

with 5.3.7RC3-dev i cant hit the bug anymore ( i think )
I will keep on testing.

Thx,
Daniel


[2011-07-06 08:56:27] dbetz at df dot eu

Ah, what i have forgotten:
With debug flags in the php-fpm binary the segfaults seems not to occur so 
often.
I try now the latest snapshot to see if the problem is there too.


[2011-07-06 08:41:50] dbetz at df dot eu

Oh sorry, my failure.

Now its 5.3.6 and the problem still exists with that version.

Greetings,
Daniel




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

https://bugs.php.net/bug.php?id=54488


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


Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-11 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello all,

now all works fine for me. Great work !! +1
I hope this gets implemented in 5.3.7 stable release :-)

Im testing on an Gentoo 1.12.13

Greetings,
Daniel


Previous Comments:

[2011-07-10 18:20:12] trollofdarkness at gmail dot com

Ok, thanks for the information :) 

-- Troll


[2011-07-10 18:03:29] f...@php.net

glad to hear.

The slowest your server is the highest you should set events.delay.

In fact 1 or 2 ms (1000 or 2000 for events.delay value) should be considered as 
a 
maximum in order not to slow down too much requests.


[2011-07-10 17:38:06] trollofdarkness at gmail dot com

Ok so I finally found why there was two requests using a browser.

There was a .js file loaded in the page, which was generated by a php script.

So the browser loading in parallel HTML and JS files, there was two 
simultaneous requests to PHP.

So the conclusion is events.delays = 1200 for me to work.

If it could help, here's my server characteristics : NANO VIA U2250 // Debian 
Lenny 64bits // 2GB RAM // 160G SATA2


[2011-07-10 16:40:30] trollofdarkness at gmail dot com

Ok so I got it working.

When using a simple curl request, I have to put events.delay = 1200 (minimum) 
to get only 1fork/req

When using a browser... I have to put events.delay = 4000 or 5000 (I can't 
remember which one was working, neither the first or the second, but I don't 
think, arrived at such a value, that it changes anything) but maybe Opera  
Firefox (tested with the two, same behaviour) are opening two simultaneous 
connection to the server, I don't know.

I'll try this patch on all my sites now. They're not overloaded so it won't be 
burn-tests but if it can help a bit... :) 

Anyway, thanks for your help.

-- Troll


[2011-07-10 16:01:30] f...@php.net

to post a log, use pastbin or something like that.




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

https://bugs.php.net/bug.php?id=52569


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


Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-08 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

If i can help you with debug informations, pls tell me what information you 
need.
eg traces or gdb ?

Greetings,


Previous Comments:

[2011-07-07 02:34:46] dbetz at df dot eu

Hello,

i know, but when i make an request, no child gets spawned.

My PHP-FPM has more pools. Every pool is listening to an different socket.
The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain.

Example:

Hostname: www.domain.com has PHP Version 5.3.6

FPM Config for Pool is:
[domain.com]
listen = /etc/httpd/fastcgi/5.3.6-domain.com
user = u12345
group = nobody

pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1
pm.max_children = 5

When now an request for www.domain.com to the apache arrives, the apache looks 
in the ldap for the PHP Version, then mod_fastcgi searches for socket 
/etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for 
/etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over 
mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand

With dynamic and static all works fine.

Any suggestions ?

Greetings,
Daniel


[2011-07-06 12:12:34] f...@php.net

This is normal.

the ONDEMAND pm has been made to avoid forking unnecessary children. Children 
are forked when requests arrives.

Here is what I have on my side:

## conf: 
pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1 # this to avoid the known bug
pm.max_children = 5


## log
[06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: 
ready to handle connections
[06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## at start, no children have been forked
[06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## I request a page and a child is forked to serve the page
[06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: 
[pool direct] child 2580 started
[06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), 
line 543: [pool direct] got accept without idle child available  I forked, 
now=1970813.831429
[06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:46.238388] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:47.238889] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:48.239385] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:49.239671] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:50.240080] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:51.240520] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:52.241133] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:53.241648] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:54.242040] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:55.242414] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children

## 10s (pm.process_idle_timeout) later, the child has been killed.
[06-Jul-2011 18:05:55.243492] DEBUG: pid 2579, fpm_got_signal(), line 76: 
received SIGCHLD
[06-Jul-2011 18:05:55.243514] DEBUG: pid 2579, fpm_children_bury(), line 254: 
[pool direct] child 2580 has been

Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-08 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hm .. i can only see tons of:
20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout)
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0
20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout)
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0

and then thousands of:

20983 munmap(0xae151000, 1040)  = 0
20983 munmap(0xae15, 1040)  = 0
20983 munmap(0xae14f000, 1040)  = 0
20983 munmap(0xae14e000, 1040)  = 0
20983 munmap(0xae14d000, 1040)  = 0

The socket gets created here:
20983 socket(PF_FILE, SOCK_STREAM, 0)   = 6
20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
20983 
unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de)
 = -1 ENOENT (No such file or directory)
20983 umask(0111)   = 027
20983 bind(6, {sa_family=AF_FILE, 
path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de},
 110) = 0
20983 umask(027)= 0111
20983 listen(6, 128)= 0

When making an request nothing happens in the strace :-(


Previous Comments:

[2011-07-08 05:43:44] f...@php.net

You can strace to see what happens:

set log_level to debug
set daemonize to no
then run something like
strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm


[2011-07-08 05:38:31] dbetz at df dot eu

If i can help you with debug informations, pls tell me what information you 
need.
eg traces or gdb ?

Greetings,


[2011-07-07 02:34:46] dbetz at df dot eu

Hello,

i know, but when i make an request, no child gets spawned.

My PHP-FPM has more pools. Every pool is listening to an different socket.
The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain.

Example:

Hostname: www.domain.com has PHP Version 5.3.6

FPM Config for Pool is:
[domain.com]
listen = /etc/httpd/fastcgi/5.3.6-domain.com
user = u12345
group = nobody

pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1
pm.max_children = 5

When now an request for www.domain.com to the apache arrives, the apache looks 
in the ldap for the PHP Version, then mod_fastcgi searches for socket 
/etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for 
/etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over 
mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand

With dynamic and static all works fine.

Any suggestions ?

Greetings,
Daniel


[2011-07-06 12:12:34] f...@php.net

This is normal.

the ONDEMAND pm has been made to avoid forking unnecessary children. Children 
are forked when requests arrives.

Here is what I have on my side:

## conf: 
pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1 # this to avoid the known bug
pm.max_children = 5


## log
[06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: 
ready to handle connections
[06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## at start, no children have been forked
[06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## I request a page and a child is forked to serve the page
[06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: 
[pool direct] child 2580 started
[06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), 
line 543: [pool direct] got accept without idle child available  I forked, 
now=1970813.831429
[06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul

Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-07 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

i know, but when i make an request, no child gets spawned.

My PHP-FPM has more pools. Every pool is listening to an different socket.
The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain.

Example:

Hostname: www.domain.com has PHP Version 5.3.6

FPM Config for Pool is:
[domain.com]
listen = /etc/httpd/fastcgi/5.3.6-domain.com
user = u12345
group = nobody

pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1
pm.max_children = 5

When now an request for www.domain.com to the apache arrives, the apache looks 
in the ldap for the PHP Version, then mod_fastcgi searches for socket 
/etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for 
/etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over 
mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand

With dynamic and static all works fine.

Any suggestions ?

Greetings,
Daniel


Previous Comments:

[2011-07-06 12:12:34] f...@php.net

This is normal.

the ONDEMAND pm has been made to avoid forking unnecessary children. Children 
are forked when requests arrives.

Here is what I have on my side:

## conf: 
pm = ondemand
pm.process_idle_timeout = 10
pm.min_delay_between_fork = 1 # this to avoid the known bug
pm.max_children = 5


## log
[06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: 
ready to handle connections
[06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## at start, no children have been forked
[06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children

## I request a page and a child is forked to serve the page
[06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: 
[pool direct] child 2580 started
[06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), 
line 543: [pool direct] got accept without idle child available  I forked, 
now=1970813.831429
[06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:46.238388] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:47.238889] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:48.239385] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:49.239671] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:50.240080] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:51.240520] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:52.241133] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:53.241648] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:54.242040] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children
[06-Jul-2011 18:05:55.242414] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 1 spare children

## 10s (pm.process_idle_timeout) later, the child has been killed.
[06-Jul-2011 18:05:55.243492] DEBUG: pid 2579, fpm_got_signal(), line 76: 
received SIGCHLD
[06-Jul-2011 18:05:55.243514] DEBUG: pid 2579, fpm_children_bury(), line 254: 
[pool direct] child 2580 has been killed by the process managment after 
10.340552 seconds from start
[06-Jul-2011 18:05:56.242905] DEBUG: pid 2579, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 
active children, 0 spare children
[06

Bug #54488 [Asn]: SIGSEGV in zend_assign_to_variable

2011-07-07 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

with 5.3.7RC3-dev i cant hit the bug anymore ( i think )
I will keep on testing.

Thx,
Daniel


Previous Comments:

[2011-07-06 08:56:27] dbetz at df dot eu

Ah, what i have forgotten:
With debug flags in the php-fpm binary the segfaults seems not to occur so 
often.
I try now the latest snapshot to see if the problem is there too.


[2011-07-06 08:41:50] dbetz at df dot eu

Oh sorry, my failure.

Now its 5.3.6 and the problem still exists with that version.

Greetings,
Daniel


[2011-07-06 08:32:58] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


you are reporting using 5.3.6 but on the phpinfo() page you provide us it's 
5.3.5.

Is it possible for you to test using the last snapshot of 5.3 please ?

thx
++ jerome


[2011-07-06 07:29:49] dbetz at df dot eu

Hello,

no problem. :-)

The apache config is a little bit difficult, so i only paste the relevant 
things:

  LoadModule fastcgi_module mod_fastcgi.so
  LoadModule ldap_modulemod_ldap.so
  LoadModule vhost_ldap_module  mod_vhost_ldap.so

  LDAPSharedCacheSize 200
  LDAPCacheEntries 4096
  LDAPCacheTTL 5
  LDAPOpCacheEntries 4096
  LDAPOpCacheTTL 5

  FastCgiExternalServer /etc/httpd/fastcgi/php-fcgi-starter -socket 
/etc/httpd/fastcgi/php5-53LATEST
  Action php-fastcgi /php/php-fcgi-starter

VirtualHost _default_:80
  ServerName domainname.de
  SuexecUserGroup apache nobody
  DocumentRoot /kunden/shadow/htdocs/

  ScriptAlias /php/ /etc/httpd/fastcgi/

  VhostLDAPEnabled on
  VhostLDAPUrl ldap://localhost/cn=bla,sec=hosting,o=domain,c=de;
  VhostLdapBindDN cn=username,cn=bla,sec=hosting,o=domain,c=de
  VhostLDAPBindPassword noone
/Virtualhost

FPM Config:

;
; FPM Configuration ;
;

; All relative paths in this configuration file are relative to PHP's install
; prefix.

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
include=/usr/local/etc/fpm.d/5-53LATEST-*.conf

;;
; Global Options ;
;;

[global]

pid = /var/run/php5-53LATEST.pid

; Error log file
; Note: the default prefix is /usr/local/var
; Default Value: log/php-fpm.log
error_log = /var/log/php-fpm.log

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = warning

; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
emergency_restart_threshold = 10

[default]

listen = /etc/httpd/fastcgi/5-53LATEST
user = root
group = nobody

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000

; PHP.ini Settings:

php_flag[track_errors] = Off
php_flag[allow_url_fopen] = On
php_flag[sql.safe_mode] = Off
..
tons of php_(admin)_flags



phpinfo() can be found at http://imageupgrade2.domainfactory-kunde.de/info.php

Thanks for your help


[2011-07-06 06:18:44] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


I'm sorry to bother you again. Can you please give us the apache configuration 
and 
a phpinfo() output ?

thx




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

https://bugs.php.net/bug.php?id=54488


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


Bug #54488 [Fbk-Asn]: SIGSEGV in zend_assign_to_variable

2011-07-06 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

no problem. :-)

The apache config is a little bit difficult, so i only paste the relevant 
things:

  LoadModule fastcgi_module mod_fastcgi.so
  LoadModule ldap_modulemod_ldap.so
  LoadModule vhost_ldap_module  mod_vhost_ldap.so

  LDAPSharedCacheSize 200
  LDAPCacheEntries 4096
  LDAPCacheTTL 5
  LDAPOpCacheEntries 4096
  LDAPOpCacheTTL 5

  FastCgiExternalServer /etc/httpd/fastcgi/php-fcgi-starter -socket 
/etc/httpd/fastcgi/php5-53LATEST
  Action php-fastcgi /php/php-fcgi-starter

VirtualHost _default_:80
  ServerName domainname.de
  SuexecUserGroup apache nobody
  DocumentRoot /kunden/shadow/htdocs/

  ScriptAlias /php/ /etc/httpd/fastcgi/

  VhostLDAPEnabled on
  VhostLDAPUrl ldap://localhost/cn=bla,sec=hosting,o=domain,c=de;
  VhostLdapBindDN cn=username,cn=bla,sec=hosting,o=domain,c=de
  VhostLDAPBindPassword noone
/Virtualhost

FPM Config:

;
; FPM Configuration ;
;

; All relative paths in this configuration file are relative to PHP's install
; prefix.

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
include=/usr/local/etc/fpm.d/5-53LATEST-*.conf

;;
; Global Options ;
;;

[global]

pid = /var/run/php5-53LATEST.pid

; Error log file
; Note: the default prefix is /usr/local/var
; Default Value: log/php-fpm.log
error_log = /var/log/php-fpm.log

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = warning

; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
emergency_restart_threshold = 10

[default]

listen = /etc/httpd/fastcgi/5-53LATEST
user = root
group = nobody

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000

; PHP.ini Settings:

php_flag[track_errors] = Off
php_flag[allow_url_fopen] = On
php_flag[sql.safe_mode] = Off
..
tons of php_(admin)_flags



phpinfo() can be found at http://imageupgrade2.domainfactory-kunde.de/info.php

Thanks for your help


Previous Comments:

[2011-07-06 06:18:44] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


I'm sorry to bother you again. Can you please give us the apache configuration 
and 
a phpinfo() output ?

thx


[2011-07-06 01:58:43] dbetz at df dot eu

Oh sorry,

here the configure options:

./configure --with-mysql=/usr/local/mysql \
--enable-debug \
--with-mysqli \
--with-config-file-path=/usr/local/php53-fpm \
--with-openssl \
--with-gd \
--with-t1lib \
--enable-ftp \
--enable-calendar \
--with-libxml-dir \
--with-jpeg-dir=../jpeg-6b/ \
--with-freetype-dir=/usr/lib \
--with-gettext \
--with-zlib-dir=../zlib-1.1.3/ \
--with-png-dir=../libpng-1.0.6/ \
--with-gdbm \
--with-ndbm \
--enable-dba \
--with-imap=/usr/local/imap-2007e \
--with-imap-ssl=/usr/local/imap-2007e \
--enable-wddx \
--enable-bcmath \
--enable-exif \
--with-curl \
--enable-inline-optimization \
--with-gnu-ld \
--with-zlib \
--with-mcrypt \
--enable-wddx \
--with-mhash \
--with-pgsql \
--enable-sockets \
--with-tidy \
--with-xmlrpc \
--enable-zip \
--with-bz2 \
--with-pdo-mysql=/usr \
--with-iconv \
--enable-soap \
--with-ldap \
--with-xsl \
--with-t1lib \
--enable-fpm \
--enable-mbstring


[2011-07-05 17:24:59] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


can you please provide the configure options you used to compile PHP please ?

thx
++ jerome


[2011-07-04 02:20:26] dbetz at df dot eu

Hello,

the problem ist only in FPM. Running php

Bug #54488 [Fbk-Asn]: SIGSEGV in zend_assign_to_variable

2011-07-06 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Oh sorry, my failure.

Now its 5.3.6 and the problem still exists with that version.

Greetings,
Daniel


Previous Comments:

[2011-07-06 08:32:58] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


you are reporting using 5.3.6 but on the phpinfo() page you provide us it's 
5.3.5.

Is it possible for you to test using the last snapshot of 5.3 please ?

thx
++ jerome


[2011-07-06 07:29:49] dbetz at df dot eu

Hello,

no problem. :-)

The apache config is a little bit difficult, so i only paste the relevant 
things:

  LoadModule fastcgi_module mod_fastcgi.so
  LoadModule ldap_modulemod_ldap.so
  LoadModule vhost_ldap_module  mod_vhost_ldap.so

  LDAPSharedCacheSize 200
  LDAPCacheEntries 4096
  LDAPCacheTTL 5
  LDAPOpCacheEntries 4096
  LDAPOpCacheTTL 5

  FastCgiExternalServer /etc/httpd/fastcgi/php-fcgi-starter -socket 
/etc/httpd/fastcgi/php5-53LATEST
  Action php-fastcgi /php/php-fcgi-starter

VirtualHost _default_:80
  ServerName domainname.de
  SuexecUserGroup apache nobody
  DocumentRoot /kunden/shadow/htdocs/

  ScriptAlias /php/ /etc/httpd/fastcgi/

  VhostLDAPEnabled on
  VhostLDAPUrl ldap://localhost/cn=bla,sec=hosting,o=domain,c=de;
  VhostLdapBindDN cn=username,cn=bla,sec=hosting,o=domain,c=de
  VhostLDAPBindPassword noone
/Virtualhost

FPM Config:

;
; FPM Configuration ;
;

; All relative paths in this configuration file are relative to PHP's install
; prefix.

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
include=/usr/local/etc/fpm.d/5-53LATEST-*.conf

;;
; Global Options ;
;;

[global]

pid = /var/run/php5-53LATEST.pid

; Error log file
; Note: the default prefix is /usr/local/var
; Default Value: log/php-fpm.log
error_log = /var/log/php-fpm.log

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = warning

; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
emergency_restart_threshold = 10

[default]

listen = /etc/httpd/fastcgi/5-53LATEST
user = root
group = nobody

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000

; PHP.ini Settings:

php_flag[track_errors] = Off
php_flag[allow_url_fopen] = On
php_flag[sql.safe_mode] = Off
..
tons of php_(admin)_flags



phpinfo() can be found at http://imageupgrade2.domainfactory-kunde.de/info.php

Thanks for your help


[2011-07-06 06:18:44] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


I'm sorry to bother you again. Can you please give us the apache configuration 
and 
a phpinfo() output ?

thx


[2011-07-06 01:58:43] dbetz at df dot eu

Oh sorry,

here the configure options:

./configure --with-mysql=/usr/local/mysql \
--enable-debug \
--with-mysqli \
--with-config-file-path=/usr/local/php53-fpm \
--with-openssl \
--with-gd \
--with-t1lib \
--enable-ftp \
--enable-calendar \
--with-libxml-dir \
--with-jpeg-dir=../jpeg-6b/ \
--with-freetype-dir=/usr/lib \
--with-gettext \
--with-zlib-dir=../zlib-1.1.3/ \
--with-png-dir=../libpng-1.0.6/ \
--with-gdbm \
--with-ndbm \
--enable-dba \
--with-imap=/usr/local/imap-2007e \
--with-imap-ssl=/usr/local/imap-2007e \
--enable-wddx \
--enable-bcmath \
--enable-exif \
--with-curl \
--enable-inline-optimization \
--with-gnu-ld \
--with-zlib \
--with-mcrypt \
--enable-wddx \
--with-mhash \
--with-pgsql \
--enable-sockets \
--with-tidy \
--with-xmlrpc \
--enable-zip \
--with-bz2

Bug #54488 [Asn]: SIGSEGV in zend_assign_to_variable

2011-07-06 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Ah, what i have forgotten:
With debug flags in the php-fpm binary the segfaults seems not to occur so 
often.
I try now the latest snapshot to see if the problem is there too.


Previous Comments:

[2011-07-06 08:41:50] dbetz at df dot eu

Oh sorry, my failure.

Now its 5.3.6 and the problem still exists with that version.

Greetings,
Daniel


[2011-07-06 08:32:58] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


you are reporting using 5.3.6 but on the phpinfo() page you provide us it's 
5.3.5.

Is it possible for you to test using the last snapshot of 5.3 please ?

thx
++ jerome


[2011-07-06 07:29:49] dbetz at df dot eu

Hello,

no problem. :-)

The apache config is a little bit difficult, so i only paste the relevant 
things:

  LoadModule fastcgi_module mod_fastcgi.so
  LoadModule ldap_modulemod_ldap.so
  LoadModule vhost_ldap_module  mod_vhost_ldap.so

  LDAPSharedCacheSize 200
  LDAPCacheEntries 4096
  LDAPCacheTTL 5
  LDAPOpCacheEntries 4096
  LDAPOpCacheTTL 5

  FastCgiExternalServer /etc/httpd/fastcgi/php-fcgi-starter -socket 
/etc/httpd/fastcgi/php5-53LATEST
  Action php-fastcgi /php/php-fcgi-starter

VirtualHost _default_:80
  ServerName domainname.de
  SuexecUserGroup apache nobody
  DocumentRoot /kunden/shadow/htdocs/

  ScriptAlias /php/ /etc/httpd/fastcgi/

  VhostLDAPEnabled on
  VhostLDAPUrl ldap://localhost/cn=bla,sec=hosting,o=domain,c=de;
  VhostLdapBindDN cn=username,cn=bla,sec=hosting,o=domain,c=de
  VhostLDAPBindPassword noone
/Virtualhost

FPM Config:

;
; FPM Configuration ;
;

; All relative paths in this configuration file are relative to PHP's install
; prefix.

; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
include=/usr/local/etc/fpm.d/5-53LATEST-*.conf

;;
; Global Options ;
;;

[global]

pid = /var/run/php5-53LATEST.pid

; Error log file
; Note: the default prefix is /usr/local/var
; Default Value: log/php-fpm.log
error_log = /var/log/php-fpm.log

; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = warning

; If this number of child processes exit with SIGSEGV or SIGBUS within the time
; interval set by emergency_restart_interval then FPM will restart. A value
; of '0' means 'Off'.
; Default Value: 0
emergency_restart_threshold = 10

[default]

listen = /etc/httpd/fastcgi/5-53LATEST
user = root
group = nobody

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000

; PHP.ini Settings:

php_flag[track_errors] = Off
php_flag[allow_url_fopen] = On
php_flag[sql.safe_mode] = Off
..
tons of php_(admin)_flags



phpinfo() can be found at http://imageupgrade2.domainfactory-kunde.de/info.php

Thanks for your help


[2011-07-06 06:18:44] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


I'm sorry to bother you again. Can you please give us the apache configuration 
and 
a phpinfo() output ?

thx


[2011-07-06 01:58:43] dbetz at df dot eu

Oh sorry,

here the configure options:

./configure --with-mysql=/usr/local/mysql \
--enable-debug \
--with-mysqli \
--with-config-file-path=/usr/local/php53-fpm \
--with-openssl \
--with-gd \
--with-t1lib \
--enable-ftp \
--enable-calendar \
--with-libxml-dir \
--with-jpeg-dir=../jpeg-6b/ \
--with-freetype-dir=/usr/lib \
--with-gettext \
--with-zlib-dir=../zlib-1.1.3/ \
--with-png-dir=../libpng-1.0.6/ \
--with-gdbm \
--with-ndbm \
--enable-dba \
--with-imap=/usr/local/imap-2007e \
--with-imap-ssl=/usr/local/imap-2007e

Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)

2011-07-06 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=52569edit=1

 ID: 52569
 Comment by: dbetz at df dot eu
 Reported by:mplomer at gmx dot de
 Summary:Implement ondemand process-manager (to allow zero
 children)
 Status: Analyzed
 Type:   Feature/Change Request
 Package:FPM related
 PHP Version:5.3.3
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hi Jerome,

what config options must i have in php-fpm.conf to get this working ?
I have tried following:
pm = ondemand

pm.min_spare_servers = 1
pm.max_children = 2000
pm.process_idle_timeout = 10s
pm.min_delay_between_fork = 100


but no child starts for this pool:
[06-Jul-2011 16:32:31.031068] DEBUG: pid 3417, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool default] currently 
0 active children, 0 spare children
[06-Jul-2011 16:32:32.031349] DEBUG: pid 3417, 
fpm_pctl_perform_idle_server_maintenance(), line 362: [pool default] currently 
0 active children, 0 spare children


greets,
daniel


Previous Comments:

[2011-07-05 19:15:08] f...@php.net

I've upload 2 new versions of the patch for the ondemand PM:

1- fpm-ondemand.v7.patch applies to 5.4 SVN branch and trunk
2- fpm-ondemand.v7-5.3.patch applies to 5.3 SVN branch

it works except that the event is triggered more than once when a request is 
coming. This makes the ondemand PM to fork more than it should do.

I'll look into that but if you have an idea, don't keep it for yourself.

Can you please test it ?

thx
++ jerome


[2011-07-05 19:12:10] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-ondemand.v7-5.3.patch
Revision:   1309907530
URL:
https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v7-5.3.patchrevision=1309907530


[2011-07-05 19:08:22] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-ondemand.v7.patch
Revision:   1309907302
URL:
https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v7.patchrevision=1309907302


[2011-06-11 10:38:18] mplomer at gmx dot de

Unfortunately not, as libevent was removed from FPM in PHP 5.3.4, the patch has 
to be ported to the new simple mini event library. If you are interested to do 
the port and you are familar with C you are welcome, and I can give you a quick 
starting point.


[2011-06-11 10:22:33] denoc at gmx dot de

I tried to patch php5-5.3.5 with the last offered patch, but it did not work.

Does a patch against the current version exist?

Thanks




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

https://bugs.php.net/bug.php?id=52569


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


Bug #54488 [Fbk-Asn]: SIGSEGV in zend_assign_to_variable

2011-07-05 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Oh sorry,

here the configure options:

./configure --with-mysql=/usr/local/mysql \
--enable-debug \
--with-mysqli \
--with-config-file-path=/usr/local/php53-fpm \
--with-openssl \
--with-gd \
--with-t1lib \
--enable-ftp \
--enable-calendar \
--with-libxml-dir \
--with-jpeg-dir=../jpeg-6b/ \
--with-freetype-dir=/usr/lib \
--with-gettext \
--with-zlib-dir=../zlib-1.1.3/ \
--with-png-dir=../libpng-1.0.6/ \
--with-gdbm \
--with-ndbm \
--enable-dba \
--with-imap=/usr/local/imap-2007e \
--with-imap-ssl=/usr/local/imap-2007e \
--enable-wddx \
--enable-bcmath \
--enable-exif \
--with-curl \
--enable-inline-optimization \
--with-gnu-ld \
--with-zlib \
--with-mcrypt \
--enable-wddx \
--with-mhash \
--with-pgsql \
--enable-sockets \
--with-tidy \
--with-xmlrpc \
--enable-zip \
--with-bz2 \
--with-pdo-mysql=/usr \
--with-iconv \
--enable-soap \
--with-ldap \
--with-xsl \
--with-t1lib \
--enable-fpm \
--enable-mbstring


Previous Comments:

[2011-07-05 17:24:59] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


can you please provide the configure options you used to compile PHP please ?

thx
++ jerome


[2011-07-04 02:20:26] dbetz at df dot eu

Hello,

the problem ist only in FPM. Running php-cgi works for me.

Thx and greetings


[2011-07-02 12:49:05] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


Is it possible for you to test without FPM (with php-cgi or mod_php for apache) 
please ?

I'd like to first ensure the bug is exclusively related to FPM.

thx


[2011-04-15 10:36:04] dbetz at df dot eu

Hello,

here are some more infos

it seems **variable_ptr_ptr is empty

(gdb) print variable_ptr_ptr
$6 = (zval **) 0x9289bb4
(gdb) print *variable_ptr_ptr
$7 = (zval *) 0x5a5a5a5a
(gdb) print **variable_ptr_ptr
Cannot access memory at address 0x5a5a5a5a


(gdb) print opline
$1 = (zend_op *) 0x926d958
(gdb) print *opline
$2 = {handler = 0x865abb8 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER, result = {op_type 
= 4, u = {constant = {value = {lval = 660,
  dval = 3.2608332625522272e-321, str = {val = 0x294 Address 0x294 out 
of bounds, len = 0}, ht = 0x294, obj = {handle = 660, handlers = 0x0}},
refcount__gc = 0, type = 0 '\000', is_ref__gc = 0 '\000'}, var = 660, 
opline_num = 660, op_array = 0x294, jmp_addr = 0x294, EA = {var = 660,
type = 0}}}, op1 = {op_type = 16, u = {constant = {value = {lval = 0, 
dval = 3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht = 0x0,
  obj = {handle = 0, handlers = 0x10}}, refcount__gc = 1, type = 6 
'\006', is_ref__gc = 0 '\000'}, var = 0, opline_num = 0, op_array = 0x0,
  jmp_addr = 0x0, EA = {var = 0, type = 16}}}, op2 = {op_type = 4, u = 
{constant = {value = {lval = 640, dval = 1.6975966643924192e-313, str = {
val = 0x280 Address 0x280 out of bounds, len = 8}, ht = 0x280, 
obj = {handle = 640, handlers = 0x8}}, refcount__gc = 0, type = 0 '\000',
is_ref__gc = 0 '\000'}, var = 640, opline_num = 640, op_array = 0x280, 
jmp_addr = 0x280, EA = {var = 640, type = 8}}}, extended_value = 0,
  lineno = 403, opcode = 38 ''}
(gdb) print opline-op2
$3 = {op_type = 4, u = {constant = {value = {lval = 640, dval = 
1.6975966643924192e-313, str = {val = 0x280 Address 0x280 out of bounds, len 
= 8},
ht = 0x280, obj = {handle = 640, handlers = 0x8}}, refcount__gc = 0, 
type = 0 '\000', is_ref__gc = 0 '\000'}, var = 640, opline_num = 640,
op_array = 0x280, jmp_addr = 0x280, EA = {var = 640, type = 8}}}
(gdb) print opline-op1
$8 = (struct _znode *) 0x926d970
(gdb) print opline-op1
$9 = {op_type = 16, u = {constant = {value = {lval = 0, dval = 
3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht = 0x0, obj = {handle = 
0,
  handlers = 0x10}}, refcount__gc = 1, type = 6

Bug #54488 [Fbk-Asn]: SIGSEGV in zend_assign_to_variable

2011-07-04 Thread dbetz at df dot eu
Edit report at https://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 User updated by:dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
-Status: Feedback
+Status: Assigned
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Assigned To:fat
 Block user comment: N
 Private report: N

 New Comment:

Hello,

the problem ist only in FPM. Running php-cgi works for me.

Thx and greetings


Previous Comments:

[2011-07-02 12:49:05] f...@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.


Is it possible for you to test without FPM (with php-cgi or mod_php for apache) 
please ?

I'd like to first ensure the bug is exclusively related to FPM.

thx


[2011-04-15 10:36:04] dbetz at df dot eu

Hello,

here are some more infos

it seems **variable_ptr_ptr is empty

(gdb) print variable_ptr_ptr
$6 = (zval **) 0x9289bb4
(gdb) print *variable_ptr_ptr
$7 = (zval *) 0x5a5a5a5a
(gdb) print **variable_ptr_ptr
Cannot access memory at address 0x5a5a5a5a


(gdb) print opline
$1 = (zend_op *) 0x926d958
(gdb) print *opline
$2 = {handler = 0x865abb8 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER, result = {op_type 
= 4, u = {constant = {value = {lval = 660,
  dval = 3.2608332625522272e-321, str = {val = 0x294 Address 0x294 out 
of bounds, len = 0}, ht = 0x294, obj = {handle = 660, handlers = 0x0}},
refcount__gc = 0, type = 0 '\000', is_ref__gc = 0 '\000'}, var = 660, 
opline_num = 660, op_array = 0x294, jmp_addr = 0x294, EA = {var = 660,
type = 0}}}, op1 = {op_type = 16, u = {constant = {value = {lval = 0, 
dval = 3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht = 0x0,
  obj = {handle = 0, handlers = 0x10}}, refcount__gc = 1, type = 6 
'\006', is_ref__gc = 0 '\000'}, var = 0, opline_num = 0, op_array = 0x0,
  jmp_addr = 0x0, EA = {var = 0, type = 16}}}, op2 = {op_type = 4, u = 
{constant = {value = {lval = 640, dval = 1.6975966643924192e-313, str = {
val = 0x280 Address 0x280 out of bounds, len = 8}, ht = 0x280, 
obj = {handle = 640, handlers = 0x8}}, refcount__gc = 0, type = 0 '\000',
is_ref__gc = 0 '\000'}, var = 640, opline_num = 640, op_array = 0x280, 
jmp_addr = 0x280, EA = {var = 640, type = 8}}}, extended_value = 0,
  lineno = 403, opcode = 38 ''}
(gdb) print opline-op2
$3 = {op_type = 4, u = {constant = {value = {lval = 640, dval = 
1.6975966643924192e-313, str = {val = 0x280 Address 0x280 out of bounds, len 
= 8},
ht = 0x280, obj = {handle = 640, handlers = 0x8}}, refcount__gc = 0, 
type = 0 '\000', is_ref__gc = 0 '\000'}, var = 640, opline_num = 640,
op_array = 0x280, jmp_addr = 0x280, EA = {var = 640, type = 8}}}
(gdb) print opline-op1
$8 = (struct _znode *) 0x926d970
(gdb) print opline-op1
$9 = {op_type = 16, u = {constant = {value = {lval = 0, dval = 
3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht = 0x0, obj = {handle = 
0,
  handlers = 0x10}}, refcount__gc = 1, type = 6 '\006', is_ref__gc = 0 
'\000'}, var = 0, opline_num = 0, op_array = 0x0, jmp_addr = 0x0, EA = {
  var = 0, type = 16}}}
(gdb) print (opline-op1)-u.var
$13 = 0
(gdb) print (opline-op1)-u
$14 = {constant = {value = {lval = 0, dval = 3.3951932655444357e-313, str = 
{val = 0x0, len = 16}, ht = 0x0, obj = {handle = 0, handlers = 0x10}},
refcount__gc = 1, type = 6 '\006', is_ref__gc = 0 '\000'}, var = 0, 
opline_num = 0, op_array = 0x0, jmp_addr = 0x0, EA = {var = 0, type = 16}}


[2011-04-07 16:30:05] dbetz at df dot eu

here the php-fpm.conf:

[global]

pid = /var/run/php5-53LATEST.pid
error_log = /var/log/php-fpm.log
log_level = debug
emergency_restart_threshold = 10

[default]

listen = localhost:9000
user = nobody
group = apache

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000
pm.status_path = /status


[domain.com]

listen = /etc/httpd/fastcgi/domain.com
user = u27
group = nobody

pm = dynamic
pm.max_children = 1000
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
pm.max_requests = 1000


[2011-04-07 16:26:51] dbetz at df dot eu

Configure Command =  './configure'  '--with-mysql=/usr/local/mysql' 
'--enable-debug' '--with-mysqli' '--with-config-file-path=/usr/local/php53-fpm' 
'--with-openssl' '--with-gd' '--with-t1lib' '--enable-ftp' '--enable-calendar

[PHP-BUG] Req #54824 [NEW]: different php.ini Paths for Pools

2011-05-18 Thread dbetz at df dot eu
From: 
Operating system: Any
PHP version:  5.3.6
Package:  FPM related
Bug Type: Feature/Change Request
Bug description:different php.ini Paths for Pools

Description:

Hello,



currently there is no availability to add additional php.ini files per
pool.



It would be nice to set an PHPiniDir/PHPRC per pool in php-fpm.conf or that
fpm reads and works with env['PHPRC'] defined in pool configuration.














-- 
Edit bug report at http://bugs.php.net/bug.php?id=54824edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54824r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54824r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=54824r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54824r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54824r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54824r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=54824r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=54824r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=54824r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=54824r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=54824r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=54824r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=54824r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54824r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=54824r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=54824r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=54824r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=54824r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=54824r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=54824r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=54824r=mysqlcfg



Bug #54488 [Com]: SIGSEGV in zend_assign_to_variable

2011-04-15 Thread dbetz at df dot eu
Edit report at http://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 Comment by: dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Block user comment: N
 Private report: N

 New Comment:

Hello,



here are some more infos



it seems **variable_ptr_ptr is empty



(gdb) print variable_ptr_ptr

$6 = (zval **) 0x9289bb4

(gdb) print *variable_ptr_ptr

$7 = (zval *) 0x5a5a5a5a

(gdb) print **variable_ptr_ptr

Cannot access memory at address 0x5a5a5a5a





(gdb) print opline

$1 = (zend_op *) 0x926d958

(gdb) print *opline

$2 = {handler = 0x865abb8 ZEND_ASSIGN_SPEC_CV_VAR_HANDLER, result =
{op_type = 4, u = {constant = {value = {lval = 660,

  dval = 3.2608332625522272e-321, str = {val = 0x294 Address
0x294 out of bounds, len = 0}, ht = 0x294, obj = {handle = 660,
handlers = 0x0}},

refcount__gc = 0, type = 0 '\000', is_ref__gc = 0 '\000'}, var =
660, opline_num = 660, op_array = 0x294, jmp_addr = 0x294, EA = {var =
660,

type = 0}}}, op1 = {op_type = 16, u = {constant = {value = {lval
= 0, dval = 3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht =
0x0,

  obj = {handle = 0, handlers = 0x10}}, refcount__gc = 1, type =
6 '\006', is_ref__gc = 0 '\000'}, var = 0, opline_num = 0, op_array =
0x0,

  jmp_addr = 0x0, EA = {var = 0, type = 16}}}, op2 = {op_type = 4, u
= {constant = {value = {lval = 640, dval = 1.6975966643924192e-313, str
= {

val = 0x280 Address 0x280 out of bounds, len = 8}, ht =
0x280, obj = {handle = 640, handlers = 0x8}}, refcount__gc = 0, type = 0
'\000',

is_ref__gc = 0 '\000'}, var = 640, opline_num = 640, op_array =
0x280, jmp_addr = 0x280, EA = {var = 640, type = 8}}}, extended_value =
0,

  lineno = 403, opcode = 38 ''}

(gdb) print opline-op2

$3 = {op_type = 4, u = {constant = {value = {lval = 640, dval =
1.6975966643924192e-313, str = {val = 0x280 Address 0x280 out of
bounds, len = 8},

ht = 0x280, obj = {handle = 640, handlers = 0x8}}, refcount__gc
= 0, type = 0 '\000', is_ref__gc = 0 '\000'}, var = 640, opline_num =
640,

op_array = 0x280, jmp_addr = 0x280, EA = {var = 640, type = 8}}}

(gdb) print opline-op1

$8 = (struct _znode *) 0x926d970

(gdb) print opline-op1

$9 = {op_type = 16, u = {constant = {value = {lval = 0, dval =
3.3951932655444357e-313, str = {val = 0x0, len = 16}, ht = 0x0, obj =
{handle = 0,

  handlers = 0x10}}, refcount__gc = 1, type = 6 '\006',
is_ref__gc = 0 '\000'}, var = 0, opline_num = 0, op_array = 0x0,
jmp_addr = 0x0, EA = {

  var = 0, type = 16}}}

(gdb) print (opline-op1)-u.var

$13 = 0

(gdb) print (opline-op1)-u

$14 = {constant = {value = {lval = 0, dval = 3.3951932655444357e-313,
str = {val = 0x0, len = 16}, ht = 0x0, obj = {handle = 0, handlers =
0x10}},

refcount__gc = 1, type = 6 '\006', is_ref__gc = 0 '\000'}, var = 0,
opline_num = 0, op_array = 0x0, jmp_addr = 0x0, EA = {var = 0, type =
16}}


Previous Comments:

[2011-04-07 16:30:05] dbetz at df dot eu

here the php-fpm.conf:



[global]



pid = /var/run/php5-53LATEST.pid

error_log = /var/log/php-fpm.log

log_level = debug

emergency_restart_threshold = 10



[default]



listen = localhost:9000

user = nobody

group = apache



pm = dynamic

pm.max_children = 1000

pm.start_servers = 1

pm.min_spare_servers = 1

pm.max_spare_servers = 1

pm.max_requests = 1000

pm.status_path = /status





[domain.com]



listen = /etc/httpd/fastcgi/domain.com

user = u27

group = nobody



pm = dynamic

pm.max_children = 1000

pm.start_servers = 1

pm.min_spare_servers = 1

pm.max_spare_servers = 1

pm.max_requests = 1000


[2011-04-07 16:26:51] dbetz at df dot eu

Configure Command =  './configure'  '--with-mysql=/usr/local/mysql'
'--enable-debug' '--with-mysqli'
'--with-config-file-path=/usr/local/php53-fpm' '--with-openssl'
'--with-gd' '--with-t1lib' '--enable-ftp' '--enable-calendar'
'--with-libxml-dir' '--with-jpeg-dir=../jpeg-6b/'
'--with-freetype-dir=/usr/lib' '--with-gettext'
'--with-zlib-dir=../zlib-1.1.3/' '--with-png-dir=../libpng-1.0.6/'
'--with-gdbm' '--with-ndbm' '--enable-dba'
'--with-imap=/usr/local/imap-2007e'
'--with-imap-ssl=/usr/local/imap-2007e' '--enable-wddx'
'--enable-bcmath' '--enable-exif' '--with-curl'
'--enable-inline-optimization' '--with-gnu-ld' '--with-zlib'
'--with-mcrypt' '--enable-wddx' '--with-mhash' '--with-pgsql'
'--enable-sockets' '--with-tidy' '--with-xmlrpc' '--enable-zip'
'--with-bz2' '--with-pdo-mysql=/usr' '--with-iconv' '--enable-soap'
'--with-ldap' '--with-xsl' '--with-t1lib' '--enable-fpm'
'--enable-mbstring'


[2011-04-07

[PHP-BUG] Bug #54488 [NEW]: SIGSEGV in zend_assign_to_variable

2011-04-07 Thread dbetz at df dot eu
From: 
Operating system: Gentoo
PHP version:  5.3.6
Package:  FPM related
Bug Type: Bug
Bug description:SIGSEGV in zend_assign_to_variable

Description:

Hello,



php-fpm with apache 2.2.16 has random segfaults when making new threads in
vbulletin board.

The POST works, but the redirect segfaults i think.



Here is an backtrace of the php-fpm worker:



Program received signal SIGSEGV, Segmentation fault.

0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

662 if (Z_TYPE_P(variable_ptr) == IS_OBJECT 
Z_OBJ_HANDLER_P(variable_ptr, set)) {

(gdb) bt full

#0  0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

variable_ptr = 0x5a5a5a5a

garbage = {value = {lval = 4, dval = 1.9762625833649862e-323, str =
{val = 0x4 Address 0x4 out of bounds, len = 0}, ht = 0x4, obj = {

  handle = 4, handlers = 0x0}}, refcount__gc = 149399716, type
= 4 '\004', is_ref__gc = 175 '¯'}

#1  0x0865a6d9 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0x91207cc)
at /usr/src/php-5.3.6/Zend/zend_vm_execute.h:27337

opline = 0xad89d7f4

free_op2 = {var = 0xad8994e8}

value = 0xad8994e8

variable_ptr_ptr = 0xad882e28

#2  0x085cdc2c in execute (op_array=0x8e9fdd4) at
/usr/src/php-5.3.6/Zend/zend_vm_execute.h:107

ret = 3

execute_data = 0x91207cc

nested = 1 '\001'

original_in_execution = 0 '\000'

#3  0x085a288e in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/src/php-5.3.6/Zend/zend.c:1194

files = 0xbe65f394 

i = 1

file_handle = 0xbe6636e4

orig_op_array = 0x0

orig_retval_ptr_ptr = 0x0

#4  0x085381b5 in php_execute_script (primary_file=0xbe6636e4) at
/usr/src/php-5.3.6/main/main.c:2268

realfile =
W2Á­\000\000\000\000\070\004f¾öÿW\b0\024Å\bÌp\205\t\n\000\000\000\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000/\016X\b\001\005\000\001\000\000\000\000H\004f¾E\214f\bÌp\205\t\000s\205\t´\002\000\000¼lY\b\234ÓÝ\b´\002\000\000X\004f¾/\016X\b0\024Å\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000(\024f¾ñ\bT\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000\020\000\000\000À\213«\a/\001Ì­\000\000\000\000ø\033\002\000X\024f¾ñ\bT\b|
ÐÄ\b\024ÒÄ\b¸\004f¾|âÀ­\000\000\000\000\001\000\000\000...

__orig_bailout = 0xbe6615f8

__bailout = {{__jmpbuf = {-1379008524, 0, -1100606276, -1100606184,
-1966102021, -405377897}, __mask_was_saved = 0, __saved_mask = {__val = {

184, 0, 1302178070, 0, 1298211931, 0, 1302178636, 0,
6916987, 0, 146923508, 0, 0, 3194360904, 141417788, 3, 4, 3194360996,
137660206,

3194361112, 139709081, 4, 3194360996, 1, 1, 0, 0,
3194361112, 140936771, 0, 2915958772, 0

prepend_file_p = 0x0

append_file_p = 0x0

prepend_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,
isatty = 0,

  mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle =
0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}},

  free_filename = 0 '\000'}

append_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,
isatty = 0,

  mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle =
0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}},

  free_filename = 0 '\000'}

old_cwd = 0xbe65f3b0 /

use_heap = 0 '\000'

retval = 0

#5  0x08671d6c in main (argc=3, argv=0xbe663844) at
/usr/src/php-5.3.6/sapi/fpm/fpm/fpm_main.c:1917

status_buffer = 0x0

status_content_type = 0x0

__orig_bailout = 0x0

__bailout = {{__jmpbuf = {-1379008524, 0, 0, -1100597368,
-1929188869, -1894015849}, __mask_was_saved = 0, __saved_mask = {__val = {

0 repeats 32 times

free_query_string = 0

exit_status = 0

cgi = 0

c = -1

file_handle = {type = ZEND_HANDLE_MAPPED, filename = 0x8db4700
/var/www/testforen/domaingo/showthread.php, opened_path = 0x0,

  handle = {fd = 148727672, fp = 0x8dd6778, stream = {handle =
0x8dd6778, isatty = 0, mmap = {len = 83287, pos = 0, map = 0xadb82000,

---Type return to continue, or q return to quit---

buf = 0xadb82000 Address 0xadb82000 out of bounds,
old_handle = 0x8df61d8, old_closer = 0x85baa1d
zend_stream_stdio_closer},

  reader = 0x85ba9f4 zend_stream_stdio_reader, fsizer =
0x85baa42 zend_stream_stdio_fsizer,

  closer = 0x85bab31 zend_stream_mmap_closer}}, free_filename
= 0 '\000'}

orig_optind = 1


Bug #54488 [Com]: SIGSEGV in zend_assign_to_variable

2011-04-07 Thread dbetz at df dot eu
Edit report at http://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 Comment by: dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Block user comment: N
 Private report: N

 New Comment:

Configure Command =  './configure'  '--with-mysql=/usr/local/mysql'
'--enable-debug' '--with-mysqli'
'--with-config-file-path=/usr/local/php53-fpm' '--with-openssl'
'--with-gd' '--with-t1lib' '--enable-ftp' '--enable-calendar'
'--with-libxml-dir' '--with-jpeg-dir=../jpeg-6b/'
'--with-freetype-dir=/usr/lib' '--with-gettext'
'--with-zlib-dir=../zlib-1.1.3/' '--with-png-dir=../libpng-1.0.6/'
'--with-gdbm' '--with-ndbm' '--enable-dba'
'--with-imap=/usr/local/imap-2007e'
'--with-imap-ssl=/usr/local/imap-2007e' '--enable-wddx'
'--enable-bcmath' '--enable-exif' '--with-curl'
'--enable-inline-optimization' '--with-gnu-ld' '--with-zlib'
'--with-mcrypt' '--enable-wddx' '--with-mhash' '--with-pgsql'
'--enable-sockets' '--with-tidy' '--with-xmlrpc' '--enable-zip'
'--with-bz2' '--with-pdo-mysql=/usr' '--with-iconv' '--enable-soap'
'--with-ldap' '--with-xsl' '--with-t1lib' '--enable-fpm'
'--enable-mbstring'


Previous Comments:

[2011-04-07 16:22:38] dbetz at df dot eu

Description:

Hello,



php-fpm with apache 2.2.16 has random segfaults when making new threads
in vbulletin board.

The POST works, but the redirect segfaults i think.



Here is an backtrace of the php-fpm worker:



Program received signal SIGSEGV, Segmentation fault.

0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

662 if (Z_TYPE_P(variable_ptr) == IS_OBJECT 
Z_OBJ_HANDLER_P(variable_ptr, set)) {

(gdb) bt full

#0  0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

variable_ptr = 0x5a5a5a5a

garbage = {value = {lval = 4, dval = 1.9762625833649862e-323,
str = {val = 0x4 Address 0x4 out of bounds, len = 0}, ht = 0x4, obj =
{

  handle = 4, handlers = 0x0}}, refcount__gc = 149399716,
type = 4 '\004', is_ref__gc = 175 '¯'}

#1  0x0865a6d9 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER
(execute_data=0x91207cc) at
/usr/src/php-5.3.6/Zend/zend_vm_execute.h:27337

opline = 0xad89d7f4

free_op2 = {var = 0xad8994e8}

value = 0xad8994e8

variable_ptr_ptr = 0xad882e28

#2  0x085cdc2c in execute (op_array=0x8e9fdd4) at
/usr/src/php-5.3.6/Zend/zend_vm_execute.h:107

ret = 3

execute_data = 0x91207cc

nested = 1 '\001'

original_in_execution = 0 '\000'

#3  0x085a288e in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php-5.3.6/Zend/zend.c:1194

files = 0xbe65f394 

i = 1

file_handle = 0xbe6636e4

orig_op_array = 0x0

orig_retval_ptr_ptr = 0x0

#4  0x085381b5 in php_execute_script (primary_file=0xbe6636e4) at
/usr/src/php-5.3.6/main/main.c:2268

realfile =
W2Á­\000\000\000\000\070\004f¾öÿW\b0\024Å\bÌp\205\t\n\000\000\000\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000/\016X\b\001\005\000\001\000\000\000\000H\004f¾E\214f\bÌp\205\t\000s\205\t´\002\000\000¼lY\b\234ÓÝ\b´\002\000\000X\004f¾/\016X\b0\024Å\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000(\024f¾ñ\bT\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000\020\000\000\000À\213«\a/\001Ì­\000\000\000\000ø\033\002\000X\024f¾ñ\bT\b|
ÐÄ\b\024ÒÄ\b¸\004f¾|âÀ­\000\000\000\000\001\000\000\000...

__orig_bailout = 0xbe6615f8

__bailout = {{__jmpbuf = {-1379008524, 0, -1100606276,
-1100606184, -1966102021, -405377897}, __mask_was_saved = 0,
__saved_mask = {__val = {

184, 0, 1302178070, 0, 1298211931, 0, 1302178636, 0,
6916987, 0, 146923508, 0, 0, 3194360904, 141417788, 3, 4, 3194360996,
137660206,

3194361112, 139709081, 4, 3194360996, 1, 1, 0, 0,
3194361112, 140936771, 0, 2915958772, 0

prepend_file_p = 0x0

append_file_p = 0x0

prepend_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,
isatty = 0,

  mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle
= 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer = 0}},

  free_filename = 0 '\000'}

append_file = {type = ZEND_HANDLE_FILENAME, filename = 0x0,
opened_path = 0x0, handle = {fd = 0, fp = 0x0, stream = {handle = 0x0,
isatty = 0,

  mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle
= 0x0, old_closer = 0}, reader = 0, fsizer = 0, closer

Bug #54488 [Com]: SIGSEGV in zend_assign_to_variable

2011-04-07 Thread dbetz at df dot eu
Edit report at http://bugs.php.net/bug.php?id=54488edit=1

 ID: 54488
 Comment by: dbetz at df dot eu
 Reported by:dbetz at df dot eu
 Summary:SIGSEGV in zend_assign_to_variable
 Status: Open
 Type:   Bug
 Package:FPM related
 Operating System:   Gentoo
 PHP Version:5.3.6
 Block user comment: N
 Private report: N

 New Comment:

here the php-fpm.conf:



[global]



pid = /var/run/php5-53LATEST.pid

error_log = /var/log/php-fpm.log

log_level = debug

emergency_restart_threshold = 10



[default]



listen = localhost:9000

user = nobody

group = apache



pm = dynamic

pm.max_children = 1000

pm.start_servers = 1

pm.min_spare_servers = 1

pm.max_spare_servers = 1

pm.max_requests = 1000

pm.status_path = /status





[domain.com]



listen = /etc/httpd/fastcgi/domain.com

user = u27

group = nobody



pm = dynamic

pm.max_children = 1000

pm.start_servers = 1

pm.min_spare_servers = 1

pm.max_spare_servers = 1

pm.max_requests = 1000


Previous Comments:

[2011-04-07 16:26:51] dbetz at df dot eu

Configure Command =  './configure'  '--with-mysql=/usr/local/mysql'
'--enable-debug' '--with-mysqli'
'--with-config-file-path=/usr/local/php53-fpm' '--with-openssl'
'--with-gd' '--with-t1lib' '--enable-ftp' '--enable-calendar'
'--with-libxml-dir' '--with-jpeg-dir=../jpeg-6b/'
'--with-freetype-dir=/usr/lib' '--with-gettext'
'--with-zlib-dir=../zlib-1.1.3/' '--with-png-dir=../libpng-1.0.6/'
'--with-gdbm' '--with-ndbm' '--enable-dba'
'--with-imap=/usr/local/imap-2007e'
'--with-imap-ssl=/usr/local/imap-2007e' '--enable-wddx'
'--enable-bcmath' '--enable-exif' '--with-curl'
'--enable-inline-optimization' '--with-gnu-ld' '--with-zlib'
'--with-mcrypt' '--enable-wddx' '--with-mhash' '--with-pgsql'
'--enable-sockets' '--with-tidy' '--with-xmlrpc' '--enable-zip'
'--with-bz2' '--with-pdo-mysql=/usr' '--with-iconv' '--enable-soap'
'--with-ldap' '--with-xsl' '--with-t1lib' '--enable-fpm'
'--enable-mbstring'


[2011-04-07 16:22:38] dbetz at df dot eu

Description:

Hello,



php-fpm with apache 2.2.16 has random segfaults when making new threads
in vbulletin board.

The POST works, but the redirect segfaults i think.



Here is an backtrace of the php-fpm worker:



Program received signal SIGSEGV, Segmentation fault.

0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

662 if (Z_TYPE_P(variable_ptr) == IS_OBJECT 
Z_OBJ_HANDLER_P(variable_ptr, set)) {

(gdb) bt full

#0  0x085f95b6 in zend_assign_to_variable (variable_ptr_ptr=0xad882e28,
value=0xad8994e8, is_tmp_var=0)

at /usr/src/php-5.3.6/Zend/zend_execute.c:662

variable_ptr = 0x5a5a5a5a

garbage = {value = {lval = 4, dval = 1.9762625833649862e-323,
str = {val = 0x4 Address 0x4 out of bounds, len = 0}, ht = 0x4, obj =
{

  handle = 4, handlers = 0x0}}, refcount__gc = 149399716,
type = 4 '\004', is_ref__gc = 175 '¯'}

#1  0x0865a6d9 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER
(execute_data=0x91207cc) at
/usr/src/php-5.3.6/Zend/zend_vm_execute.h:27337

opline = 0xad89d7f4

free_op2 = {var = 0xad8994e8}

value = 0xad8994e8

variable_ptr_ptr = 0xad882e28

#2  0x085cdc2c in execute (op_array=0x8e9fdd4) at
/usr/src/php-5.3.6/Zend/zend_vm_execute.h:107

ret = 3

execute_data = 0x91207cc

nested = 1 '\001'

original_in_execution = 0 '\000'

#3  0x085a288e in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php-5.3.6/Zend/zend.c:1194

files = 0xbe65f394 

i = 1

file_handle = 0xbe6636e4

orig_op_array = 0x0

orig_retval_ptr_ptr = 0x0

#4  0x085381b5 in php_execute_script (primary_file=0xbe6636e4) at
/usr/src/php-5.3.6/main/main.c:2268

realfile =
W2Á­\000\000\000\000\070\004f¾öÿW\b0\024Å\bÌp\205\t\n\000\000\000\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000/\016X\b\001\005\000\001\000\000\000\000H\004f¾E\214f\bÌp\205\t\000s\205\t´\002\000\000¼lY\b\234ÓÝ\b´\002\000\000X\004f¾/\016X\b0\024Å\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000(\024f¾ñ\bT\bðr\205\t\210R¹\bÅ\001\000\000\000\000\000\000\000\000\000\000\020\000\000\000À\213«\a/\001Ì­\000\000\000\000ø\033\002\000X\024f¾ñ\bT\b|
ÐÄ\b\024ÒÄ\b¸\004f¾|âÀ­\000\000\000\000\001\000\000\000...

__orig_bailout = 0xbe6615f8

__bailout = {{__jmpbuf = {-1379008524, 0, -1100606276,
-1100606184, -1966102021, -405377897}, __mask_was_saved = 0,
__saved_mask = {__val = {

184, 0, 1302178070, 0, 1298211931, 0, 1302178636, 0,
6916987, 0, 146923508, 0, 0, 3194360904, 141417788, 3, 4, 3194360996,
137660206,

3194361112, 139709081