Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libsandbox hanging?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Jimbythemonkey
n00b
n00b


Joined: 19 Jun 2002
Posts: 8
Location: Poughkeepsie NY

PostPosted: Tue Jul 30, 2002 8:23 pm    Post subject: libsandbox hanging? Reply with quote

well it seems that once bootstrap starts, and it recompile bash gcc and python it just hangs so i did and strace on bootstrap.sh here is the last few
linesrt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
_llseek(255, -1609, [1389], SEEK_CUR) = 0
fork() = 6386
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x42e5dc, [], 0}, {0x42e5dc, [], 0}, 8) = 0
close(4) = 0
read(3,


looks like it wants to read something. also python hangs too check this out :
getpid() = 6388
rt_sigaction(SIGRT_0, {0x4002ef90, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x4002eea4, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x4002efe4, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0x7ffff628, 36, (nil), 0}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0) = 0x4d0d10
brk(0x4d0d40) = 0x4d0d40
brk(0x4d1000) = 0x4d1000
brk(0x4d2000) = 0x4d2000
brk(0x4d3000) = 0x4d3000
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([]

it seems that now sleep does not return either :
getpid() = 6390
rt_sigaction(SIGRT_0, {0x401f6f90, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x401f6ea4, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x401f6fe4, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RT_0], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0x7ffff638, 36, (nil), 0}) = 0
gettimeofday({1028062953, 173035}, NULL) = 0
brk(0) = 0x404108
brk(0x404138) = 0x404138
brk(0x405000) = 0x405000
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([]


notice anything strage? it seems that the sigsuspend never returns. is this overwrriten in libsandbox? i couldnt figure it out am i over looking something?
Back to top
View user's profile Send private message
tsuru
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2002
Posts: 99
Location: Nashville, Tennessee, USA

PostPosted: Tue Jul 30, 2002 11:03 pm    Post subject: Reply with quote

I've had a similar problem in the past too but not in the bootstrap phase. It usually happens if an emerge crashes. Luckily enough after searching the forums I've found the answer... granted this is on a regular x86 not a big iron s390...

check to see if there is a /tmp/sandboxpids.tmp.... if there is.... delete that sucka! :) then try again.

That solved my problem...I hope that helps in some way :)
Back to top
View user's profile Send private message
Jimbythemonkey
n00b
n00b


Joined: 19 Jun 2002
Posts: 8
Location: Poughkeepsie NY

PostPosted: Wed Jul 31, 2002 1:35 pm    Post subject: Reply with quote

Thanks for the tip but alas it did not fix the problem everything is still the same and do you love the smile faces in my last post ???? :-)
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Sat Apr 19, 2003 3:13 pm    Post subject: Reply with quote

sandbox is a bad hack... it wraps glibc functions and is evil.. I would honestly disable sandbox, and if you're concerned about ebuilds messing with the real filesystem, then setup userpriv style sandboxing
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum