Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271053 - emerge dev-php5/pecl-http -- sandbox violation
Summary: emerge dev-php5/pecl-http -- sandbox violation
Status: RESOLVED DUPLICATE of bug 282768
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 12:34 UTC by crucify
Modified: 2010-04-05 22:29 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,74.17 KB, text/plain)
2009-05-26 18:16 UTC, Justin Lecher (RETIRED)
Details
php.ini (php.ini,44.29 KB, text/plain)
2009-05-26 18:16 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crucify 2009-05-24 12:34:14 UTC
if php.ini default session.save_file not found.
then php make session_mm*.sem file to /

emerge pecl-http try `php-cgi -m`
php-cgi will make /session_mm_cgi-fcgi0.sem , access violation by sandbox

I suggest php.ini default session.save_path to /tmp

thank you.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-05-26 14:48:20 UTC
I cannot reproduce it here.

if you really have a bug, please attach more information like emerge --info, and the build.log including the sandbox violation
Comment 2 crucify 2009-05-26 15:23:04 UTC
1. USE="-apache cli cgi -threads sharedmem sharedext" emerge php
2. php.ini session.save_file remove
3. emerge dev-php5/pecl-http

answer is session.save_file = /tmp
I wish add to php.ini default value.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-05-26 18:14:37 UTC
Okay I have it here too.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2009-05-26 18:16:21 UTC
Created attachment 192525 [details]
build.log
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-05-26 18:16:47 UTC
Created attachment 192526 [details]
php.ini
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2010-04-05 21:39:30 UTC
Hm, this seems to be a general problem. You only get it if you USE="-apache2". Every other SAPI fails. ***3 hours later***
I've figured it out: the sandbox violation is caused by mm_* calls. This suggests a problem with libmm trying to write your session files. Setting USE="-sharedmem" (and uninstalling libmm) seem to fix the problem. Also, setting session.save_path explicitly in php.ini fixes the issue.

This is also reported upstream (with pointers): http://bugs.php.net/bug.php?id=49401

I'm not exactly sure WHY this is happening, but i'll update the bug if i find out.

Meanwhile, setting session.save_path explicitly sounds like a good work around. I don't consider this a fix, as the default IS '/tmp/' already and the fact php isn't honoring that is a bug.
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-04-05 22:29:02 UTC
Seems we have multiple bugs with this one.

*** This bug has been marked as a duplicate of bug 282768 ***