Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362947 - Wrong uid/gid 16777214 instead of root after emerge for several packages sind March, 30th 2011
Summary: Wrong uid/gid 16777214 instead of root after emerge for several packages sind...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-10 20:52 UTC by Sascha Wuestemann
Modified: 2011-06-15 10:20 UTC (History)
1 user (show)

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


Attachments
emerge.info (emerge.info,4.74 KB, text/plain)
2011-04-10 20:54 UTC, Sascha Wuestemann
Details
sys-apps.util-linux-2.19.ls-lR (sys-apps.util-linux-2.19.ls-lR,80.95 KB, text/plain)
2011-04-11 22:23 UTC, Sascha Wuestemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Wuestemann 2011-04-10 20:52:35 UTC
Today I experienced a strange error of mount, see URL given above. I tracked it down to files belonging to 16777214:16777214 instead of root:root, e.g. /bin/mount. The oldest file is from March, /usr/bin/rsync. Reemerging an affected package creates the same problem.
Something must be broken, but how to track that down to the source?

Reproducible: Always
Comment 1 Sascha Wuestemann 2011-04-10 20:54:34 UTC
Created attachment 269389 [details]
emerge.info
Comment 2 Sascha Wuestemann 2011-04-11 01:07:29 UTC
I found the reason for the error. I had extended my /var/tmp/portage directory by mounting it via bind with another directory from another harddisk:

/etc/fstab:
/dev/sdb1               /mnt/cool       xfs             noatime         0 2
/mnt/cool/portage /var/tmp/portage none defaults,bind 0 0

When umounting /var/tmp/portage, emerging goes well.
When mounting /var/tmp/portage, the error occours.
So, WTF is causing this? It had worked for months.

Can one enlighten me, why and what is making trouble, when having /var/tmp/portage mounted via bind with another directory on at a sudden?
Comment 3 SpanKY gentoo-dev 2011-04-11 03:55:29 UTC
see what perms the file has in the image dir before it gets merged to /.  i.e. use ebuild to build/install things.  or use FEATURES=keepwork.

also try running fsck on said filesystem.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-11 04:11:04 UTC
(256 ^ 3) - 2
Comment 5 SpanKY gentoo-dev 2011-04-11 18:27:07 UTC
nothing really operates on multiples of 256, so really it would be:
(2 ^ 24) - 2
Comment 6 Sascha Wuestemann 2011-04-11 22:22:04 UTC
Umounted /var/tmp/portage, umounted the partition serving it, have run checks on it:

host ~ # xfs_check /dev/sdb1
host ~ # 

host ~ # xfs_repair /dev/sdb1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan and clear agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
Phase 5 - rebuild AG headers and trees...
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - traversing filesystem ...
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done
host ~ # mount /mnt/cool/
host ~ # mount /var/tmp/portage/
host ~ # emerge -av sys-apps/util-linux

An ls -lR /var/tmp/portage/sys-apps/util-linux-2.19/work/util-linux-2.19/ will be attached next, showing the contents right after ">>> Source prepared."
Comment 7 Sascha Wuestemann 2011-04-11 22:23:17 UTC
Created attachment 269561 [details]
sys-apps.util-linux-2.19.ls-lR
Comment 8 Sascha Wuestemann 2011-05-03 23:04:20 UTC
Meanwhile I have more information. When mounting a directory of the same harddisk from another partition which has ext3 filesystem at /var/tmp/portage and compile things in there, everything is fine.
It is only another harddisk which has xfs filesystem which makes trouble when doing the same.
So, it seems to be an error depending on the xfs filesystem when mounting with bind. But, is it an error of mount or of the xfs filesystem? Or, does the ext3 filesystem have problems with foreign filesystem mounted with bind?
Comment 9 Stratos Psomadakis (RETIRED) gentoo-dev 2011-06-14 19:02:09 UTC
Have you tried booting more recent kernels?
Comment 10 Sascha Wuestemann 2011-06-14 22:00:15 UTC
No I hadn't but I have done so now. I am running 2.6.39 gentoo sources currently and it seems the issue has gone.

Thanx for asking, I am shure we can close this, now. Do you agree?
Comment 11 Stratos Psomadakis (RETIRED) gentoo-dev 2011-06-15 10:20:35 UTC
Ok, closing, feel free to reopen if you encounter the problem again.