Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent timeout/crash in /html/dom/reflection-embedded.html #11100

Open
cbrewster opened this issue May 9, 2016 · 27 comments
Open

Intermittent timeout/crash in /html/dom/reflection-embedded.html #11100

cbrewster opened this issue May 9, 2016 · 27 comments
Labels
C-disabled The issue describes an intermittent failure in a test, which has been temporarily disabled I-intermittent Problem reproduces intermittently.

Comments

@cbrewster
Copy link
Contributor

▶ TIMEOUT [expected OK] /html/dom/reflection-embedded.html
  │ 
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', ../src/libstd/rand/mod.rs:159
  │ stack backtrace:
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', ../src/libstd/rand/mod.rs:159
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x1073866e9 - std::rand::thread_rng::THREAD_RNG_KEY::__init::h536e3917997a1628
  │    8:        0x10736d98c - std::rand::thread_rng::h789d00d1fce4f79b
  │    9:        0x105d81121 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   10:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   11:        0x10737ef0b - __rust_try
  │   12:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   13:        0x105d7f87d - _<F as std..boxed..FnBox<A>>::call_box::hca0e8efc2dc5954d
  │   14:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   15:     0x7fff8bd4d059 - _pthread_body
  │   16:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x1073866e9 - std::rand::thread_rng::THREAD_RNG_KEY::__init::h536e3917997a1628
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │    8:        0x10736d98c - std::rand::thread_rng::h789d00d1fce4f79b
  │    9:        0x105d81121 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   10:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   11:        0x10737ef0b - __rust_try
  │   12:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │   13:        0x105d7f87d - _<F as std..boxed..FnBox<A>>::call_box::hca0e8efc2dc5954d
  │   14:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   15:     0x7fff8bd4d059 - _pthread_body
  │   16:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', /Users/servo/.cargo/registry/src/github.com-88ac128001ac3a9a/rand-0.3.14/src/lib.rs:873
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _<F as std..boxed..FnBox<A>>::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │ thread 'http_loader for http://web-platform.test:8000/html/dom/test-valueOf' panicked at 'could not initialize thread_rng: Too many open files (os error 24)', ../src/libstd/rand/mod.rs:159
  │    1:        0x10737f</span><span class="stdout">ca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │ thread &#39;http_loader for http://web-platform.test:8000/html/dom/test-valueOf&#39; panicked at &#39;could not initialize thread_rng: Too many open files (os error 24)&#39;, ../src/libstd/rand/mod.rs:159
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x10718656f - rand::thread_rng::THREAD_RNG_KEY::__init::h95086aa3feb19f11
  │    8:        0x1071863ac - rand::thread_rng::h685796b33c6d5157
  │    9:        0x106b67842 - uuid::Uuid::new_v4::hf5742953332a48bd
  │   10:        0x105d81bb9 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   11:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   12:        0x10737ef0b - __rust_try
  │   13:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   14:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   15:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   16:     0x7fff8bd4d059 - _pthread_body
  │   17:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x1073866e9 - std::rand::thread_rng::THREAD_RNG_KEY::__init::h536e3917997a1628
  │    8:        0x10736d98c - std::rand::thread_rng::h789d00d1fce4f79b
  │    9:        0x105d81121 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   10:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   11:        0x10737ef0b - __rust_try
  │   12:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd</span><span class="stdout">
  │   13:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   14:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   15:     0x7fff8bd4d059 - _pthread_body
  │   16:     0x7fff8bd4cfd6 - _pthread_start
  │ stack backtrace:
  │    1:        0x10737fca8 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
  │    2:        0x1073860c5 - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
  │    3:        0x107385cde - std::panicking::default_hook::hc2c969e7453d080c
  │    4:        0x106b2e892 - util::panicking::initiate_panic_hook::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h0bad41b0b38a855d
  │    5:        0x10736d388 - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
  │    6:        0x10736ecbe - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
  │    7:        0x1073866e9 - std::rand::thread_rng::THREAD_RNG_KEY::__init::h536e3917997a1628
  │    8:        0x10736d98c - std::rand::thread_rng::h789d00d1fce4f79b
  │    9:        0x105d81121 - net::http_loader::load::h68b5ac4fbf09d0a1
  │   10:        0x105d7e79d - std::sys_common::unwind::try::try_fn::h94855ca93006dd22
  │   11:        0x10737ef0b - __rust_try
  │   12:        0x10737ee93 - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
  │   13:        0x105d7f87d - _&lt;F as std..boxed..FnBox&lt;A&gt;&gt;::call_box::hca0e8efc2dc5954d
  │   14:        0x107385148 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
  │   15:     0x7fff8bd4d059 - _pthread_body
  └   16:     0x7fff8bd4cfd6 - _pthread_start
@Ms2ger
Copy link
Contributor

Ms2ger commented May 13, 2016

I suspect this has something to do with the increased parallelism for wpt runs. @metajack ?

@metajack
Copy link
Contributor

I checked all the linked PRs. This intermittent appears isolated to mac-rel-wpt.

@metajack
Copy link
Contributor

I don't see anything in relection-embedded.html that would create files. Am I missing something? I can understand why we'd run out of file descriptors, but why always on this specific test?

@Ms2ger
Copy link
Contributor

Ms2ger commented May 13, 2016

That's the one that handles iframe and img.

@metajack
Copy link
Contributor

All instances seem to be on servo-mac3 or servo-macpro1.

@metajack
Copy link
Contributor

On linux we seem to be happy with the default number of file descriptors (1024). We also run many more simultaneous tests on linux since there are more processors.

On the mac, we attempt to set the limit to 30k via sysctl, but according to http://superuser.com/questions/302754/increase-the-maximum-number-of-open-file-descriptors-in-snow-leopard this is no longer enough. launchctl limit shows us limited to 256.

I have manually run launchctl limit maxfiles 1024 unlimited on servo-mac1, servo-mac2, servo-mac3, and servo-macpro1, to see if this problem is alleviated.

Is there any reason why OS X runs would want more file descriptors than linux runs?

@larsbergstrom
Copy link
Contributor

Aha, I recently had to pave mac3 and macpro1 and I must have done something similarly manual that we haven't properly automated in salt yet that I didn't do when restoring them. Thanks!

I thought that our linux machines were defaulting to unlimited the last time I checked.

@metajack
Copy link
Contributor

ulimit -a and launchctl limit showed 10240 and 256 respectively. I guess ulimit just lies on OS X now.

@metajack
Copy link
Contributor

Note that this was consistent across servo-mac1, servo-mac2, servo-mac3, and servo-macpro1. I didn't find any configuration differences, but it is possible I missed something.

@larsbergstrom
Copy link
Contributor

This is what I used to do, pre-salt:

echo 'kern.maxfiles=60000\nkern.maxfilesperproc=20000\nkern.ipc.somaxconn=2048' | sudo tee -a /etc/sysctl.conf
echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 10240' | sudo tee -a /etc/profile

@metajack
Copy link
Contributor

launchd.conf only exists on servo-mac2. All of them seem to have the /etc/profile change, and they also all had the sysctl.conf change (salt manages that one currently).

@metajack
Copy link
Contributor

I wonder if we used to run mac-rel-wpt on servo-mac2 before? That would explain why this popped up.

@larsbergstrom
Copy link
Contributor

@metajack Almost all our macs except for -mac2 have been paved in the last few weeks. I would not call OSX a stable OS for long-running automated systems :-)

@metajack
Copy link
Contributor

I'm unsure whether my changes were in effect for #11173, but it seems to have failed :(

@metajack
Copy link
Contributor

I spent some time investigating this to see whether it was opening excessive numbers of files. Here's a dtrace script I used:

#!/usr/sbin/dtrace -s

#pragma D option quiet

syscall::open*:entry,
syscall::socket*:entry,
syscall::accept*:entry,
syscall::socketpair*:entry,
syscall::pipe*:entry
/execname == "servo"/
{
  @calls[execname,probefunc] = count();
  printf("%s %s %s\n", execname, probefunc, copyinstr(arg0));
ustack();
}

syscall::open*:return,
syscall::socket*:return,
syscall::pipe*:return
/execname == "servo" && arg0 == -1/
{
  @errors[execname, probefunc] = count();
}

syscall::close:entry
/execname == "servo"/
{
  @calls[execname,probefunc] = count();
  printf("%s %s\n", execname, probefunc);
}

This seems to show it does open a lot more files than say /html/dom/elements/elements-in-the-dom/unknown-element.html but it seems to be all the threads initializing their RNG from /dev/urandom. I didn't measure concurrent fd counts, and I may have missed some syscalls that create fds.

@KiChjang
Copy link
Contributor

KiChjang commented Nov 18, 2016

Consider disabling this since it's been hitting #14227 4 times in a row.

nox added a commit to nox/servo that referenced this issue Nov 19, 2016
bors-servo pushed a commit that referenced this issue Nov 19, 2016
Use FnvHasher in http_loader::load

Should help with #11100.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14284)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 20, 2016
Use FnvHasher in http_loader::load

Should help with #11100.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14284)
<!-- Reviewable:end -->
@Ms2ger Ms2ger added the C-disabled The issue describes an intermittent failure in a test, which has been temporarily disabled label Nov 20, 2016
@Ms2ger
Copy link
Contributor

Ms2ger commented Nov 20, 2016

Disabling in #14293.

bors-servo pushed a commit that referenced this issue Nov 20, 2016
Disable reflection-embedded.html.

CC #11100

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14293)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 20, 2016
Disable reflection-embedded.html.

CC #11100

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14293)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 21, 2016
Disable reflection-embedded.html.

CC #11100

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14293)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 21, 2016
Disable reflection-embedded.html.

CC #11100

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14293)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-disabled The issue describes an intermittent failure in a test, which has been temporarily disabled I-intermittent Problem reproduces intermittently.
Projects
None yet
Development

No branches or pull requests

8 participants