After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 610488 - Intermittent sabayon-apply failure in Editor, wrong $HOME directory
Intermittent sabayon-apply failure in Editor, wrong $HOME directory
Status: RESOLVED FIXED
Product: sabayon
Classification: Deprecated
Component: general
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainers of sabayon
Maintainers of sabayon
Depends on:
Blocks:
 
 
Reported: 2010-02-19 19:40 UTC by Warren Togami
Modified: 2010-02-20 04:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Diff of debuglog between WORKING and BROKEN (8.62 KB, patch)
2010-02-19 21:17 UTC, Warren Togami
none Details | Review

Description Warren Togami 2010-02-19 19:40:51 UTC
sabayon-2.29.5

When running the Sabayon Editor on an existing profile, there is an intermittent issue where sabayon-apply appears to fail to apply files and directories in a peculiar way.

http://wtogami.fedorapeople.org/temp/sabayon-wtf.png
GNOME and nautilus appears to see the files/directories applied by the Sabayon profile, but ls -l in a terminal fails to see it.

http://wtogami.fedorapeople.org/temp/sabayon-wtf2.png
Here we see what is actually going on.  nautilus believes its home directory is different from the environment that the terminal sees.

Sometimes it works properly where the environments patch.  Sometimes it fails in the above way.  There appears to be some timing issue or race condition going on.
Comment 1 Warren Togami 2010-02-19 19:41:37 UTC
s/patch/match/
Comment 2 Warren Togami 2010-02-19 21:17:16 UTC
Created attachment 154248 [details] [review]
Diff of debuglog between WORKING and BROKEN

 MainThread (usermod): Executing ['/usr/sbin/usermod', '-d', '/tmp/sabayon-temp-home-TEMPHOMEDIR', 'sabayon']
+usermod: user sabayon is currently logged in
 MainThread (proto-session): Clobbering existing processes running as user 'sabayon': ['/usr/bin/pkill', '-u', 'sabayon']

Then things go downhill from here.  Looking at shadow-utils source next.
Comment 3 Warren Togami 2010-02-20 04:51:42 UTC
commit b4414f41c2c671ba1aa5853f46ed795362163d7e
Author: Warren Togami <wtogami@redhat.com>
Date:   Fri Feb 19 23:48:16 2010 -0500

    Bug #610488: Kill previous sabayon processes, wait at most 30 seconds for the processes to die.
    Even without the kill it seems to take at most 5 seconds.

Eh... good enough.  Clean it up more if you want.