Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poco::NamedEvent does not release System V semaphore on Linux #2971

Open
ColovicAleksandar opened this issue Apr 2, 2020 · 3 comments · May be fixed by #4357
Open

Poco::NamedEvent does not release System V semaphore on Linux #2971

ColovicAleksandar opened this issue Apr 2, 2020 · 3 comments · May be fixed by #4357

Comments

@ColovicAleksandar
Copy link

Repro steps: create array of e.g. 256 Poco::NamedEvent instances. You'll get an error e.g.
System exception : cannot create named mutex ... semget() failed, errno=28

The Linux system allows up to 128 semaphore Ids and Poco::NamedEvent does not release semaphore id of the destructed Poco::NamedEvent instance.

I think in the NamedEvent_UNIX.cpp NamedEventImpl::~NamedEventImpl() there should be a call:

#if (POCO_OS == POCO_OS_LINUX)
// remove semaphores
semctl (semid, 0, IPC_RMID);
...

@github-actions
Copy link

This issue is stale because it has been open for 365 days with no activity.

@github-actions github-actions bot added the stale label Oct 22, 2021
@github-actions
Copy link

This issue was closed because it has been inactive for 60 days since being marked as stale.

@aleks-f aleks-f reopened this Jul 7, 2022
@aleks-f aleks-f modified the milestones: Release 1.12.0, Release 1.13.0 Jul 7, 2022
@aleks-f aleks-f removed the stale label Jul 7, 2022
@github-actions
Copy link

This issue is stale because it has been open for 365 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
4 participants