Report: php5 segfault cause of stack overflow
-
Hi, this is more a report than a support question. I don’t need help.
We got segfault from php5-fpm (fastcgi) behind a nginx and researched what’s going on.
If the browser sends the cookie wordpress_logged_in_[HASH], then there was the segfault. This cookie was expired. Tracing the function calls within wp shows us a recursion loop. This ends up in an stack overflow. Yes, this is wrong on many levels.Here is a function trace and the reason, I write these message.
wp-includes/pluggable.php: wp_validate_auth_cookie() -> action:auth_cookie_expired
better-wp-security/core/modules/hide-backend/class-itsec-hide-backend.php: action:auth_cookie_expired -> auth_cookie_expired()
better-wp-security/core/modules/hide-backend/class-itsec-hide-backend.php: auth_cookie_expired() -> wp_clear_auth_cookie()
wp-includes/pluggable.php: wp_clear_auth_cookie() -> get_current_user_id()
wp-includes/user.php: get_current_user_id() -> wp_get_current_user() -> _wp_get_current_user()
wp-includes/user.php: _wp_get_current_user() -> filter:determine_current_user
wp-includes/default-filters.php: filter:determine_current_user -> wp_validate_logged_in_cookie()
wp-includes/user.php: wp_validate_logged_in_cookie() -> wp_validate_auth_cookie()
Have fun, bye..
- The topic ‘Report: php5 segfault cause of stack overflow’ is closed to new replies.