Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 624048

Summary: sys-apps/sandbox-2.10-r4: mkdir/2 test failed: mkdir("/", 777) = errno = EACCES:13 [Permission denied] (wanted EEXIST:17 [File exists])
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED NEEDINFO    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-apps:sandbox-2.10-r4:20170706-192524.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-07-06 19:29:04 UTC
  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-gnome_20170706-211748

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Comment 1 Toralf Förster gentoo-dev 2017-07-06 19:29:07 UTC
Created attachment 481466 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-06 19:29:10 UTC
Created attachment 481468 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-06 19:29:13 UTC
Created attachment 481470 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-06 19:29:16 UTC
Created attachment 481472 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-06 19:29:19 UTC
Created attachment 481474 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-06 19:29:22 UTC
Created attachment 481476 [details]
sys-apps:sandbox-2.10-r4:20170706-192524.log
Comment 7 Toralf Förster gentoo-dev 2017-07-06 19:29:25 UTC
Created attachment 481478 [details]
temp.tbz2
Comment 8 SpanKY gentoo-dev 2021-10-22 04:37:54 UTC
from the log:
FAIL: mkdir("/", 777) = -1 (wanted -1); errno = EACCES:13 [Permission denied] (wanted EEXIST:17 [File exists])

that's weird because we have logic to check to see if paths exist and return EEXIST explicitly first.  that failing would imply some path checks aren't working.
[s] vapier@vapier $ ./mkdir-0 -1,EEXIST / 777
 * absolute_path: .../sandbox/tests/mkdir-0
 * resolved_path: .../sandbox/tests/mkdir-0
 * ACCESS ALLOWED:  execve:       .../sandbox/tests/mkdir-0
 * EARLY FAIL: mkdir(/[/]) @ lstat: Success
PASS: mkdir("/", 1411) = -1 (wanted -1); errno = EEXIST:17 [File exists] (wanted EEXIST:17 [File exists])

does this failure happen consistently for you ?  please re-open if so, and we can dig deeper into your setup.