Bug #81027 [Asn]: WeakReference will cause memory leaks

From: Date: Tue, 11 May 2021 06:28:36 +0000
Subject: Bug #81027 [Asn]: WeakReference will cause memory leaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233772@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
 Updated by:         krakjoe@php.net
 Reported by:        gy dot dlcs at gmail dot com
 Summary:            WeakReference will cause memory leaks
 Status:             Assigned
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Linux
 PHP Version:        8.0.6
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I can't reproduce this either.

In addition, I see no possible path to a leak.


Previous Comments:
------------------------------------------------------------------------
[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)?

------------------------------------------------------------------------
[2021-05-10 15:31:37] gy dot dlcs at gmail dot com

emmm, I reproduced it with a clean container, this is the video:

https://user-images.githubusercontent.com/14296262/117684531-ab093080-b1e7-11eb-8db8-f9dc4405bbf4.mp4

------------------------------------------------------------------------
[2021-05-10 15:15:05] nikic@php.net

I can't reproduce this.

------------------------------------------------------------------------
[2021-05-10 14:58:47] cmb@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

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


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


Thread (14 messages)

« previous php.bugs (#233772) next »