Bug 610482
Summary: | [abrt] crash in policycoreutils-python-2.0.82-31.fc13: sandbox:97:copyfile:IndexError: list index out of range | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | cyrushmh <cyrusyzgtt> | ||||
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 13 | CC: | casmls, dwalsh, mgrepl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | abrt_hash:d25a9550 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-09-22 12:06:20 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
cyrushmh
2010-07-02 08:21:41 UTC
Created attachment 428762 [details]
File: backtrace
Package: policycoreutils-python-2.0.82-31.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. start firefox (not in a sandbox) and make sure the lock file is there 2. start firefox within a sandbox with '-i ~/.mozilla' as parameter Comment ----- Somehow it is expected that firefox is not able to run twice (lock file), but I guess the sandbox should not crash. If you edit /usr/bin/sandbox and change File "/usr/bin/sandbox", line 97, in copyfile sys.stderr.write(e[1]) to sys.stderr.write(str(e[1]) It will fix the code. Fixed in policycoreutils-2.0.83-18 rpm -qa policycoreutils policycoreutils-2.0.83-25.fc13.x86_64 sandbox X -t sandbox_web_t -H tmp -T tmp1 firefox Traceback (most recent call last): File "/usr/bin/sandbox", line 431, in <module> rc = sandbox.main() File "/usr/bin/sandbox", line 418, in main self.__setup_dir() File "/usr/bin/sandbox", line 374, in __setup_dir self.__copyfiles() File "/usr/bin/sandbox", line 216, in __copyfiles copyfile(f, homedir, self.__homedir) File "/usr/bin/sandbox", line 90, in copyfile sys.stderr.write(str(e[1])) IndexError: list index out of range There is a missing '-' before the X, but I guess it shouldn't produce a traceback in all circumstances. I can't get this error to happen. I get a message sandbox X -t sandbox_web_t -H tmp -T tmp1 firefox Unrecognized option: -H use: X [:<display>] [option] -a # default pointer acceleration (factor) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file -br create root window with black background +bs enable any backing store support -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class -nocursor disable the cursor -core generate core dump on fatal error -dpi int screen resolution in dots per inch -dpms disables VESA DPMS monitor control ... Which indicates it is trying to start X with -H qualifier It took me some time but I hope I got the trigger now: tempdir must contain a socket file ll foo/ total 0 srwxrwxr-x. 1 user user 0 Sep 10 13:14 bar sandbox echo -T foo/ Traceback (most recent call last): File "/usr/bin/sandbox", line 431, in <module> rc = sandbox.main() File "/usr/bin/sandbox", line 418, in main self.__setup_dir() File "/usr/bin/sandbox", line 374, in __setup_dir self.__copyfiles() File "/usr/bin/sandbox", line 216, in __copyfiles copyfile(f, homedir, self.__homedir) File "/usr/bin/sandbox", line 90, in copyfile sys.stderr.write(str(e[1])) IndexError: list index out of range Fixed in policycoreutils-2.0.83-26 |