php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80050 msg_receive is awakened by error code 43
Submitted: 2020-09-03 16:04 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: milan dot matejcek at gmail dot com Assigned:
Status: Open Package: Semaphore related
PHP Version: Irrelevant OS: raspbian / ubuntu
Private report: No CVE-ID: None
 [2020-09-03 16:04 UTC] milan dot matejcek at gmail dot com
Description:
------------
sysvmsg extension

I tested on arm raspbian buster 10, 32 bit (php 7.3.19) and ubuntu 20.04, 64 bit (php 7.4.9), both are same.

I have long running process, which is executed by supervisor, where is passive waiting for message from queue, but this waiting is sometimes awakened by error code 43.

I checked that the supervisor runs only one php process and the PID is still the same.

Is there anything what clean resources or queues?

If i have two processes and different queue key, than both return error 43 in same time.






Test script:
---------------
I create repository on Github: https://github.com/h4kuna/msg

Expected result:
----------------
Passive waiting without awakened


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-08-06 13:35 UTC] milan dot matejcek at gmail dot com
Hello, you can close this issue, because i found bug. I forgot to use ftok() for first parameter for method msg_get_queue($key).

I'm sorry.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 13:01:29 2024 UTC