为什么编译rust-crypto会导致堆栈溢出?

时间:2018-11-19 17:29:21

标签: rust rust-crypto

我正在尝试在Mac OS 10.10上编译rust-crypto。我将堆栈大小设置为65532 KB的硬限制,但出现堆栈溢出错误:

sh-3.2$ cargo build --verbose                                                       

Compiling rust-crypto v0.2.36                                                                                               
Running `rustc --crate-name crypto /Users/adminuser/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-crypto-0.2.36/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=532b3e4fff823a9b -C extra-filename=-532b3e4fff823a9b --out-dir /Users/adminuser/abc/target/debug/deps -L dependency=/Users/adminuser/abc/target/debug/deps --extern libc=/Users/adminuser/abc/target/debug/deps/liblibc-3ffb3aaa3935201b.rlib --extern rand=/Users/adminuser/abc/target/debug/deps/librand-59170c5140920682.rlib --extern rustc_serialize=/Users/adminuser/abc/target/debug/deps/librustc_serialize-05a36c10a732afd3.rlib --extern time=/Users/adminuser/abc/target/debug/deps/libtime-d920778de8a0916a.rlib --cap-lints allow -L native=/Users/adminuser/abc/target/debug/build/rust-crypto-6abe0ddd90a37e77/out -l static=_rust_crypto_helpers`                                    

thread 'main' has overflowed its stack                                          
fatal runtime error: stack overflow                                             
error: Could not compile `rust-crypto`.                                         

Caused by:
  process didn't exit successfully: `rustc --crate-name crypto /Users/adminuser/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-crypto-0.2.36/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=532b3e4fff823a9b -C extra-filename=-532b3e4fff823a9b --out-dir /Users/adminuser/abc/target/debug/deps -L dependency=/Users/adminuser/abc/target/debug/deps --extern libc=/Users/adminuser/abc/target/debug/deps/liblibc-3ffb3aaa3935201b.rlib --extern rand=/Users/adminuser/abc/target/debug/deps/librand-59170c5140920682.rlib --extern rustc_serialize=/Users/adminuser/abc/target/debug/deps/librustc_serialize-05a36c10a732afd3.rlib --extern time=/Users/adminuser/abc/target/debug/deps/libtime-d920778de8a0916a.rlib --cap-lints allow -L native=/Users/adminuser/abc/target/debug/build/rust-crypto-6abe0ddd90a37e77/out -l static=_rust_crypto_helpers` (signal: 6, SIGABRT: process abort signal)

0 个答案:

没有答案