racer-rust / racer

Rust Code Completion utility
MIT License
3.36k stars 279 forks source link

Segfault when completing #480

Closed Wilfred closed 8 years ago

Wilfred commented 8 years ago

Given the file:

use quickcheck::quickcheck;

use quickcheck::TestResult;

fn foo() {
    let r = TestResult::
}

racer segfaults:

$ RUST_SRC_PATH=/home/wilfred/src/rustc-1.5.0/src ~/src/racer/target/release/racer complete 6 24 /tmp/racer_crash.rs
PREFIX 24,24,

thread 'searcher' has overflowed its stackSegmentation fault (core dumped)

This occurs on both release and debug builds.

jwilm commented 8 years ago

I've started looking into this in #479

charlag commented 8 years ago

Possible dublicate: https://github.com/phildawes/racer/issues/354

Wilfred commented 8 years ago

Yeah, looks very similar to #354. Note that I have use quickcheck::quickcheck. similar to the example in #354. Sounds like a good workaround is avoiding use foo::foo for now.

jwilm commented 8 years ago

Closing this in favor of making #354 the canonical issue for this problem