Bug #79973 [Com]: Segfault in php-fpm

From: Date: Wed, 19 Aug 2020 06:40:14 +0000
Subject: Bug #79973 [Com]: Segfault in php-fpm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228665@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79973&edit=1

 ID:                 79973
 Comment by:         php at mni dot de
 Reported by:        php at mni dot de
 Summary:            Segfault in php-fpm
 Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   CentOS 7.8.2003
 PHP Version:        7.4.9
 Block user comment: N
 Private report:     N

 New Comment:

Sorry but i don't have a script to reproduce the error because we only use third-party
components like Wordpress (5.4.2), Woocommerce (4.3.2) and some Plugins.

The error happens during login, example:

"POST /my-account/ HTTP/1.1" 302 5 "https://staging.renderpeople.com/my-account/"

"GET /my-account/ HTTP/1.1" 502 559 "https://staging.renderpeople.com/my-account/"

One of the affected carts is:

meta_key: _woocommerce_persistent_cart_1
meta_value:
a:1:{s:4:"cart";a:2:{s:32:"2f00b4f18ac4c685904b5df21bd3375c";a:11:{s:3:"key";s:32:"e1272f71b59ec211ff46e3cb8f6ae85a";s:10:"product_id";i:385498;s:12:"variation_id";i:385519;s:9:"variation";a:1:{s:24:"attribute_pa_file-format";s:13:"cinema-4d-obj";}s:8:"quantity";i:1;s:9:"data_hash";s:32:"6337484db59620a170393f98c3bb108d";s:13:"line_tax_data";a:2:{s:8:"subtotal";a:1:{i:12;d:7.98;}s:5:"total";a:1:{i:12;d:7.98;}}s:13:"line_subtotal";d:39.9;s:17:"line_subtotal_tax";d:7.98;s:10:"line_total";d:39.9;s:8:"line_tax";d:7.98;}s:32:"9715628f446e13a984e34e6de9ec003b";a:6:{s:3:"key";s:32:"9715628f446e13a984e34e6de9ec003b";s:10:"product_id";i:423648;s:12:"variation_id";i:423657;s:9:"variation";a:1:{s:24:"attribute_pa_file-format";s:16:"cinema-4d-obj-fr";}s:8:"quantity";i:1;s:9:"data_hash";s:32:"ec7d1c0d8094a952d31aca630b029fab";}}}

I already tried to modify the cart and the products by changing the price to 40, same error. After
deleting this cart from a user he is able to login normally.

 
Please let me know if i can provide you with additional information.

Thank you


Previous Comments:
------------------------------------------------------------------------
[2020-08-18 15:50:16] requinix@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Do you have something about the shopping cart that tries to sort it? Can you find and post that
code? From the backtrace it looks like the sorting is done through usort() or related, but then the
comparison function itself also tries to do a sort.

------------------------------------------------------------------------
[2020-08-18 15:31:24] php at mni dot de

Yes, this is a recursion

------------------------------------------------------------------------
[2020-08-18 15:03:19] requinix@php.net

Line 3721 is the beginning of the function.

#32-24 and #23-15 are identical. How deep does the backtrace go? Is this recursion?

------------------------------------------------------------------------
[2020-08-18 14:10:53] php at mni dot de

Just tested it on a Debian 10.5 Box with PHP 7.3.19, same Problem.

------------------------------------------------------------------------
[2020-08-16 19:26:09] nikic@php.net

No, this is almost certainly an issue with PHP or a PHP extension, just the place where it crashes
is pretty harmless, so it's hard to guess at the root cause here.

------------------------------------------------------------------------


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


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


Thread (14 messages)

« previous php.bugs (#228665) next »