Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173574 - dev-php5/php-gtk-2.0.0_alpha sandbox violation for /session_mm_cli0.sem
Summary: dev-php5/php-gtk-2.0.0_alpha sandbox violation for /session_mm_cli0.sem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Anant Narayanan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 15:47 UTC by Andrew
Modified: 2007-04-18 22:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew 2007-04-06 15:47:58 UTC
When PHP has been built with the shared-memory session storage engine, it creates a file similar to session_mm_cli0.sem on startup. This results in a sandbox violation when building dev-php5/php-gtk 2.0.0-alpha.

Reproducible: Always

Steps to Reproduce:
1. Emerge PHP with the sharedmem USE flag. This enables the shared-memory session storage engine.
2. Attempt to emerge php-gtk 2.0.0-alpha

Actual Results:  
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-php5_-_php-gtk-2.0.0_alpha-11228.log"

unlink:    /session_mm_cli0.sem
open_wr:   /session_mm_cli0.sem
unlink:    /session_mm_cli0.sem
--------------------------------------------------------------------------------

Expected Results:  
>>> dev-php5/php-gtk-2.0.0_alpha merged.

I fix this by:

andrewm@ds38-3 /usr/portage/dev-php5/php-gtk $ diff php-gtk-2.0.0_alpha.ebuild php-gtk-2.0.0_alpha.ebuild.new 
68a69,70
>       addpredict /session_mm_cli0.sem
>

andrewm@ds38-3 $ ebuild /usr/portage/dev-php5/php-gtk/php-gtk-2.0.0_alpha.ebuild digest

andrewm@ds38-3 $ emerge dev-php5/php-gtk
Comment 1 Anant Narayanan (RETIRED) gentoo-dev 2007-04-18 10:45:56 UTC
Thanks for reporting, will look into this ASAP.
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2007-04-18 15:32:51 UTC
Ahh yeah, php-gtk doesn't use the php-ext-eclasses src_compile/install methods, thus this still affects it, to solve it just add addpredict /session_mm_cli0.sem, as the bugreporter already did, that's the correct fix. Just FYI, this only happens when you compiled PHP with sharedmem USE flag (it has to do with the mm storage of the sessions module).
Best regards, CHTEKK.
Comment 3 Anant Narayanan (RETIRED) gentoo-dev 2007-04-18 22:58:51 UTC
Thanks, fixed in CVS.