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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 1 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 23:01:29 2024 UTC