php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70886 shmop/tests/002.phpt doesn't release shared memory
Submitted: 2015-11-10 07:36 UTC Modified: -
From: mbeccati@php.net Assigned:
Status: Closed Package: Testing related
PHP Version: 7.0Git-2015-11-10 (Git) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mbeccati@php.net
New email:
PHP Version: OS:

 

 [2015-11-10 07:36 UTC] mbeccati@php.net
Description:
------------
In my CI, I've noticed the test failing more and more often. When I've checked, the user that runs the builds had 700+ shared memory segments allocated. It appears that the test above doesn't release the segments it allocates, so at each run, "ipcs -m" reports 2-3 more segments.

Test script:
---------------
php run-tests.php ext/shmop/tests/002.phpt > /dev/null; ipcs -m | grep 0x | wc -l
php run-tests.php ext/shmop/tests/002.phpt > /dev/null; ipcs -m | grep 0x | wc -l


Expected result:
----------------
0
0

Actual result:
--------------
3
5

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-10 08:10 UTC] mbeccati@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6fa9b76342a924b2438621deba732c270a0d2859
Log: Fix bug #70886 in shmop/tests/002.phpt
 [2015-11-10 08:10 UTC] mbeccati@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:35 UTC] davey@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6fa9b76342a924b2438621deba732c270a0d2859
Log: Fix bug #70886 in shmop/tests/002.phpt
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 02:01:23 2019 UTC