Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with chrooted emerge [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 353
Location: California USA

PostPosted: Sat Apr 20, 2019 12:09 am    Post subject: Reply with quote

diddly wrote:
Now that portage-2.3.62 has stabled I hit this on all my chroots as well.


Try with FEATURES="-pid-sandbox -network-sandbox -ipc-sandbox".
_________________
Zac
Back to top
View user's profile Send private message
diddly
n00b
n00b


Joined: 11 Mar 2004
Posts: 27
Location: Halifax, Nova Scotia, Canada

PostPosted: Sat Apr 20, 2019 1:14 pm    Post subject: Reply with quote

Quote:

Try with FEATURES="-pid-sandbox -network-sandbox -ipc-sandbox".


Yep, -pid-sandbox is enough to workaround. I'll retest with qemu-4 when released next week, then try to file a minimal test case for the pthread_create issue if it hasn't been fixed. Just didn't want to duplicate work if already filed, but I can't find evidence of that.
_________________
Dave Flogeras
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Thu May 16, 2019 10:37 am    Post subject: Reply with quote

qemu-4.0.0 doesn't fix the issue. Is it a qemu issue or an emerge issue? The issue should be reported somewhere.
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 353
Location: California USA

PostPosted: Thu May 16, 2019 6:39 pm    Post subject: Reply with quote

Does this test case fail under qemu (run as root)?
Code:

python -c "import portage.process; portage.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)"

_________________
Zac
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Thu May 16, 2019 10:39 pm    Post subject: Reply with quote

zmedico wrote:
Does this test case fail under qemu (run as root)?
Code:

python -c "import portage.process; portage.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)"


Code:
# python -c "import portage.process; portage.process.spawn(['echo', 'hello', 'world'], unshare_pid=True)"
qemu: qemu_thread_create: Invalid argument
root@gentoo / # hello world
Back to top
View user's profile Send private message
zmedico
Developer
Developer


Joined: 02 Jan 2004
Posts: 353
Location: California USA

PostPosted: Thu May 16, 2019 11:01 pm    Post subject: Reply with quote

Here's a test case using the util-linux unshare command (run as root):

Code:
unshare --pid -- echo hello world


If that triggers the qemu_thread_create issue, then it's a good one to use in a bug report for qemu.
_________________
Zac
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Fri May 17, 2019 12:11 am    Post subject: Reply with quote

zmedico wrote:
Here's a test case using the util-linux unshare command (run as root):

Code:
unshare --pid -- echo hello world


If that triggers the qemu_thread_create issue, then it's a good one to use in a bug report for qemu.


Code:
# unshare --pid -- echo hello world
qemu: qemu_thread_create: Invalid argument
Abort


I suspect the recent version of glibc broke qemu.

I reported the issue on https://bugs.launchpad.net/qemu/+bug/1829459
Back to top
View user's profile Send private message
millivanilli
n00b
n00b


Joined: 30 Sep 2024
Posts: 3

PostPosted: Tue Oct 01, 2024 7:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
vagran,


Code:
FEATURES="-pid-sandbox"
works here.


I had the same error as the original poster, and this seems to have fixed it. Bumping.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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