# sysvsem module: release_sysvsem_sem and lockup(semaphore leak)

- Thread: https://externals.io/message/16918
- Original archive: https://news-web.php.net/php.internals/16918
- Started by Yasuo Ohgaki on 2005-06-27T06:50:13+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16918 — Yasuo Ohgaki — 2005-06-27T06:50:13+00:00

URL: https://externals.io/message/16918#16918

Since release_sysvsem_sem has error message while releasing acquired
semaphores (both PHP_4_4 and PHP_5_1), it may end up with semaphore
leak when error handler is used.

The error message is useful for debugging, so the error message
output should be configurable with ini setting. Although this workaround
is not perfect solution, but it works in most cases. If there isn't a better
idea, I'll add new ini directive to the module.

-- 
Yasuo Ohgaki

---

## #16921 — Derick Rethans — 2005-06-27T07:11:49+00:00

URL: https://externals.io/message/16918#16921 · In reply to: #16918

> Since release_sysvsem_sem has error message while releasing acquired
> semaphores (both PHP_4_4 and PHP_5_1), it may end up with semaphore
> leak when error handler is used.
> 
> The error message is useful for debugging, so the error message
> output should be configurable with ini setting. Although this workaround
> is not perfect solution, but it works in most cases. If there isn't a better
> idea, I'll add new ini directive to the module.

We should not add more ini settings, we've enough of them already.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16945 — Yasuo Ohgaki — 2005-06-27T18:58:15+00:00

URL: https://externals.io/message/16918#16945 · In reply to: #16921

Derick Rethans wrote:
> 
> 
> 
> > […]
> 
> 
> We should not add more ini settings, we've enough of them already.
> 
> Derick
> 

I'll just comment out problematic line that may cause
server lockup.

-- 
Yasuo Ohgaki

---

## #17021 — Andi Gutmans — 2005-06-29T23:59:12+00:00

URL: https://externals.io/message/16918#17021 · In reply to: #16918

Yasuo,

Isn't it possible to resolve this in the code directly?

At 09:11 AM 6/27/2005 +0200, Derick Rethans wrote:
>
>
> > […]
> better
> > […]
>
>We should not add more ini settings, we've enough of them already.
>
>Derick
>
>--
>Derick Rethans
>http://derickrethans.nl | http://ez.no | http://xdebug.org
