Bug #81027 [Com]: WeakReference will cause memory leaks
| From: | dharman@php.net | Date: | Fri, 14 May 2021 12:08:18 +0000 |
| Subject: | Bug #81027 [Com]: WeakReference will cause memory leaks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233827@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81027&edit=1
ID: 81027
Comment by: dharman@php.net
Reported by: gy dot dlcs at gmail dot com
Summary: WeakReference will cause memory leaks
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Linux
PHP Version: 8.0.6
Block user comment: N
Private report: N
New Comment:
I can't reproduce it with 8.0.3 but I can reproduce it with the current snapshot from GIT
Previous Comments:
------------------------------------------------------------------------
[2021-05-13 11:11:13] gy dot dlcs at gmail dot com
The above test script takes about 1 minute to reproduce the problem, Have you waited long enough?
------------------------------------------------------------------------
[2021-05-11 09:26:31] cmb@php.net
Thanks for the valgrind report, but unfortunately this is useless.
The warnings at the top are bogus, and everything after the SIGINT
is irrelevant. Sorry for requesting it!
I wouldn't know how to proceed with this issue.
------------------------------------------------------------------------
[2021-05-11 06:28:36] krakjoe@php.net
I can't reproduce this either.
In addition, I see no possible path to a leak.
------------------------------------------------------------------------
[2021-05-10 16:56:04] gy dot dlcs at gmail dot com
I create a clean VM on Digitalocean, and reproduced it, this is the video and valgrind test result:
https://github.com/LuttyYang/php-bug-81027
------------------------------------------------------------------------
[2021-05-10 15:43:13] cmb@php.net
For me there is no difference whether ther is
$wr->get(),
!$wr->get(), or neither; memory consumption increases until GC
kicks in.
Are there any leaks reported when you're running under valgrind
(set USE_ZEND_ALLOC=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=81027
--
Edit this bug report at https://bugs.php.net/bug.php?id=81027&edit=1