floehopper / containers-from-scratch

An attempt at a Ruby version of Liz Rice's containers-from-scratch project
1 stars 0 forks source link

warning: pthread_create failed for timer: Invalid argument, scheduling broken #1

Open floehopper opened 6 years ago

floehopper commented 6 years ago

I think the following warning started to occur when I added the CLONE_NEWPID flag to the call to unshare. It doesn't seem to cause a problem at the moment, but it may well be a hidden danger.

root@ubuntu-xenial:/vagrant# ./container run /bin/bash
run: Running ["/bin/bash"]
child: Running ["/bin/bash"]
/var/lib/gems/2.4.0/gems/childprocess-0.8.0/lib/childprocess/unix/fork_exec_process.rb:20: warning: pthread_create failed for timer: Invalid argument, scheduling broken
root@container:/# 
floehopper commented 6 years ago

Maybe this is related: https://github.com/jemalloc/jemalloc/issues/1006

It might be worth upgrading Ruby to v2.5 when the Brightbox package is available.