Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42809 - Installing vim-core-6.2-r7 (probably others as well) on sparc over serial terminal results in access violation on /dev/tts/0
Summary: Installing vim-core-6.2-r7 (probably others as well) on sparc over serial ter...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: Sparc Linux
: High normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 14:35 UTC by Mike Culbertson
Modified: 2007-01-21 14:56 UTC (History)
2 users (show)

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 Mike Culbertson 2004-02-24 14:35:58 UTC
The same action via ssh sorks fine.  Narrowed this down to a portage bug.  Package in question is vim, but this would probably happen with anything trying to access /dev/tts/0 during install

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-editors_-_vim-core-6.2-r7-5210.log"

chmod:     /dev/tts/0
--------------------------------------------------------------------------------

Portage 2.0.50-r1 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.3_pre20040207-r0, 2.6.3)
Comment 1 Mike Culbertson 2004-02-24 14:37:18 UTC
s/sorks/works/ :P
Comment 2 Nathan Lutchansky 2004-12-01 09:23:19 UTC
This also occurs on x86 (stage3 install from 2004.3 using Portage snapshot) with vim-core-6.3-r2 and vim-6.3-r1 using Portage-2.0.51-r2.   For some reason, when running emerge from the serial console, the tty permission check in the configure script is trying to do a chmod() on the controlling terminal (/dev/tts/0) and of course this results in a sandbox violation.

Workaround: emerge vim </dev/null
Comment 3 Bryan Halter 2005-07-27 20:31:14 UTC
This also happens with vim-6.3.084, a workaround is also `FEATURES="-sandbox"
emerge vim`
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-07-28 16:34:13 UTC
Az, do you want to add an exception for /dev/tts/*, are there currently
exceptions for /dev/tty*?  Or punt the bug to vim-core and have them fix their
configure script?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-01 07:02:34 UTC
Done, will be in next release.
Comment 6 Dan Ost 2006-05-30 08:46:36 UTC
Why is this bug still open?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-08-19 15:17:49 UTC
What's the status here?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-01-21 14:56:09 UTC
@sparc folks - please test this thing and reopen if needed, sandbox maintainer is completely MIA again.