Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11664 - kdemultimedia, kdebase, kdepim, kdegames, kdeadmin, kdegraphics, kdeutils, kdetoys, kdeedu access violation
Summary: kdemultimedia, kdebase, kdepim, kdegames, kdeadmin, kdegraphics, kdeutils, kd...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 15078 15115 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-06 02:05 UTC by Justin Patrin
Modified: 2004-02-07 09:28 UTC (History)
1 user (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 Justin Patrin 2002-12-06 02:05:03 UTC
When running emerge kde on a nearly fresh install, it dies at kdemultimedia and kdebase with:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-kdebase-3.0.4-r3-5720.log"

mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
mkdir:     /root/.kde
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-12-06 10:36:19 UTC
That's odd, I thought I fixed that in kde.eclass. I don't quite see how it could still occur 
with the fix there. 
Hmm. I will have to think about it, don't have any ideas right away. 
 
Could you please give me an  ls -laR of /var/tmp/portage/kdebase-3.0.4-r3/temp. 
 
If you want to, disable the sandbox for now (the access to ~/.kde is harmless) but be 
prepared to test possible fixes for me later :-) 
Comment 2 Justin Patrin 2002-12-10 04:09:48 UTC
When compiling kdeutils, I noticed that some (all?) of the access violations were within the configure....
Comment 3 Justin Patrin 2002-12-10 04:42:05 UTC
ls -laR /var/tmp/portage/kdebase-3.0.4-r3/temp                                                               /home/papercrane
/var/tmp/portage/kdebase-3.0.4-r3/temp:
total 58
drwxr-xr-x    3 root     root          192 Dec  9 13:38 ./
drwxr-xr-x    3 root     root          104 Dec  9 21:06 ../
-rw-r--r--    1 root     root        41088 Dec 10 09:48 eclass-debug.log
drwxr-xr-x    4 root     root           96 Dec  6 01:07 fakehome/
-rw-r--r--    1 root     root          405 Dec  9 13:38 kde
-rwxr-xr-x    1 root     root           34 Dec  9 13:38 kde-3.0.4
-rw-r--r--    1 root     root           48 Dec  9 13:38 kscreensaver

/var/tmp/portage/kdebase-3.0.4-r3/temp/fakehome:
total 2
drwxr-xr-x    4 root     root           96 Dec  6 01:07 ./
drwxr-xr-x    3 root     root          192 Dec  9 13:38 ../
drwxr-xr-x    2 root     root           48 Dec  6 01:07 .kde/
drwxr-xr-x    2 root     root          120 Dec  6 02:30 .qt/

/var/tmp/portage/kdebase-3.0.4-r3/temp/fakehome/.kde:
total 1
drwxr-xr-x    2 root     root           48 Dec  6 01:07 ./
drwxr-xr-x    4 root     root           96 Dec  6 01:07 ../

/var/tmp/portage/kdebase-3.0.4-r3/temp/fakehome/.qt:
total 5
drwxr-xr-x    2 root     root          120 Dec  6 02:30 ./
drwxr-xr-x    4 root     root           96 Dec  6 01:07 ../
-rw-------    1 root     root            0 Dec  6 02:30 .qt_plugins_3.0rc.lock
-rw-r--r--    1 root     root          487 Dec  6 02:30 qt_plugins_3.0rc
Comment 4 Justin Patrin 2002-12-10 16:01:57 UTC
Another note. I'm running this in a sudo -s environment, so my $HOME is not /root.
Comment 5 Justin Patrin 2002-12-10 16:38:25 UTC
I'm not completely sure yet, but I think I found a way around this problem. Instead of using a sudo -s shell, I'm using an su shell. The packages seem to be installing fine, confirmation to come once my system finishes compiling.

I think the reason the hack in kde.eclass didn't work is that with sudo -s I'm not 'really' root. I still have my own environment, so the install script (or shell or something else) recreates the home directory (probably from /etc/passwd). su makes me the 'real' superuser, so it trusts $HOME.
Comment 6 Justin Patrin 2002-12-10 17:46:06 UTC
I was right. kdeedu just installed without a hitch. I'm going to continue 
installing kde now, but I assume it's all going to work just fine now.

So I've found a way around the problem....but why is the kde install trying to 
create a /root/.kde?
Comment 7 Dan Armak (RETIRED) gentoo-dev 2003-01-28 06:59:54 UTC
It's doing that to write to some config files and to upset me... 
The new/upcoming user-mode compiling feature of emerge should help here. An access denied 
message from the filesystem shouldn't abort compilation, only our sandbox code does that. 
Hopefully that will finally close this set of problems... 
 
About sudo , I'm not sure I understand how it can stop me from exporting 
HOME=$T/fakehome and having access redirected there. Hm... 
Comment 8 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-05 18:08:55 UTC
*** Bug 15078 has been marked as a duplicate of this bug. ***
Comment 9 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-05 20:30:43 UTC
*** Bug 15115 has been marked as a duplicate of this bug. ***
Comment 10 Caleb Tennis (RETIRED) gentoo-dev 2003-05-12 23:10:26 UTC
Any update on this?  I think the changes in portage since the initial bug report *should* have 
fixed this problem. 
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2003-06-13 13:33:36 UTC
Closing as fixed, as it's old and there's been no update in correspondance for some time. 
Comment 12 Braden 2003-11-23 03:30:47 UTC
Is this bug actually fixed...?  I am having the same problem when using sudo.  I haven't gotten the chance to use it with just 'su' yet, but the symptoms are all the same.
Comment 13 Joe Stroller 2004-02-07 09:21:26 UTC
Nope, it ain't fixed. See also #38442