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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MacOS cargo run -p libra_swarm -- -s error with "os_error":"Too many open files" #81

Open
tnpxu opened this issue Jun 19, 2019 · 0 comments
Labels
bug

Comments

@tnpxu
Copy link

@tnpxu tnpxu commented Jun 19, 2019

馃悰 Bug

** Stack trace/error message **

stack backtrace:
   0: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:65
   1: std::net::addr::resolve_socket_addr
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/result.rs:1283
             at src/libstd/sys_common/net.rs:396
             at src/libstd/net/tcp.rs:743
   2: std::path::Components::parse_next_component_back
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/result.rs:1283
             at src/libstd/sys/unix/pipe.rs:89
             at src/libstd/process.rs:1443
   3: std::path::Components::parse_next_component_back
             at src/libstd/sys/unix/fd.rs:49
             at src/libstd/sys/unix/pipe.rs:60
             at src/libstd/process.rs:288
             at src/libstd/io/mod.rs:376
             at src/libstd/io/mod.rs:356
             at src/libstd/io/mod.rs:639
             at src/libstd/process.rs:1435
   4: std::sync::once::Once::call_once::{{closure}}
             at src/libstd/sync/once.rs:220
   5: std::path::Components::parse_next_component_back
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/raw_vec.rs:223
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/raw_vec.rs:708
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/raw_vec.rs:718
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:195
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:195
             at src/libstd/process.rs:1454
   6: std::path::Components::parse_next_component_back
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:195
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/mem.rs:621
             at src/libstd/process.rs:1352
             at src/libstd/process.rs:1448
   7: std::io::Initializer::nop
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libstd/thread/mod.rs:462
   8: core::ptr::swap_nonoverlapping_bytes
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:0
   9: core::ptr::real_drop_in_place
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:195
  10: <libra_swarm::Args as structopt::StructOpt>::from_clap::{{closure}}
             at libra_swarm/src/main.rs:8
  11: std::path::Components::parse_next_component_back
             at src/libstd/sys/unix/pipe.rs:118
             at src/libstd/sys/unix/pipe.rs:104
             at src/libstd/process.rs:1443
  12: std::sys::unix::process::process_common::Command::capture_env
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/collections/btree/node.rs:465
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/collections/btree/node.rs:1165
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/collections/btree/map.rs:1858
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/collections/btree/map.rs:1585
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/liballoc/collections/btree/map.rs:1189
             at src/libstd/sys_common/process.rs:63
             at src/libstd/sys_common/process.rs:97
             at src/libstd/sys/unix/process/process_common.rs:177
  13: std::sync::once::Once::call_once::{{closure}}
             at src/libstd/sync/once.rs:388
  14: structopt::StructOpt::from_args
             at /Users/x/.cargo/registry/src/github.com-1ecc6299db9ec823/structopt-0.2.16/src/lib.rs:0
  15: core::ptr::real_drop_in_place
             at /rustc/50a0defd5a93523067ef239936cc2e0755220904/src/libcore/ptr.rs:195

Expected Behavior

Loading client successfully

System information

Libra
rustc 1.36.0-nightly
MacOS Mojave

Please complete the following information:

  • check number of open descriptors
ulimit -a
  • changing max number of open descriptors
ulimit -n 4096

Additional context

You need to increasing the max number of open descriptors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can鈥檛 perform that action at this time.