Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A file that makes rustc have an internal error (task failed at 'Unsupported constant expr') and the backtrace log from the compiler. The file compile.log was created using `rustc bitmapped-vector-trie.rs --test &> compile.log`.
struct Level1<A> {
data : @mut [@A * 5]
, mut current : int
}
struct Level2<A> {
data : @mut [@Level1<A> * 32]
, mut current : int
}
struct Level3<A> {
data : @mut [@Level2<A> * 32]
, mut current : int
}
trait Sequence<A> {
fn append(&self, a:@A) -> ();
fn last(&self) -> @A;
}
impl<A:Copy> Level1<A>:Sequence<A> {
fn append(&self, a:@A) -> () {
self.data[self.current] = a;
self.current += 1;
}
fn last(&self) -> @A { self.data[self.current - 1] }
}
extern mod std;
#[cfg(test)]
mod tests {
#[test]
fn insert_value() {
let bvt : Level1<int> = Level1 { data : @mut([@0,..@31]), current : 0};
bvt.append(@5);
}
}
fn main() {
io::println("Hello");
}
rust: task failed at 'Unsupported constant expr', /home/leah/rust-0.5/src/librustc/middle/const_eval.rs:238
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb647de4a]
/usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb647df46]
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb647dfb2]
/usr/local/bin/../lib/librustrt.so(upcall_s_fail+0x53)[0xb6480103]
/usr/local/bin/../lib/librustrt.so(+0x2bf8f)[0xb6492f8f]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x18c)[0xb648091c]
/usr/local/bin/../lib/librustrt.so(rust_upcall_fail+0x2b)[0xb6480a5b]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN3sys6rustrt16rust_upcall_fail17_905a6473a4b75bd83_05E+0x45)[0xb75f6e75]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1fbb)[0xb75f6fbb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x2ba96)[0xb7580a96]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle10const_eval15eval_const_expr16_2dfb6548de3cf1d3_05E+0xb8)[0xb66c2328]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle2ty17eval_repeat_count17_c444beccc4cfe0fe3_05E+0x5c)[0xb677434c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x4ee551)[0xb69b1551]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x4eef1e)[0xb69b1f1e]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x4eb422)[0xb69ae422]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x50bcf3)[0xb69cecf3]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x4f8cdb)[0xb69bbcdb]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x51dd67)[0xb69e0d67]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x51f0c9)[0xb69e20c9]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x41d1dc)[0xb68e01dc]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x495197)[0xb6958197]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x493655)[0xb6956655]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x48f731)[0xb6952731]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/libsyntax-84efebcb12c867a2-0.5.so(+0xb10a8)[0xb70c50a8]
/usr/local/bin/../lib/libsyntax-84efebcb12c867a2-0.5.so(+0xb0c70)[0xb70c4c70]
/usr/local/bin/../lib/libsyntax-84efebcb12c867a2-0.5.so(+0xb1400)[0xb70c5400]
/usr/local/bin/../lib/libsyntax-84efebcb12c867a2-0.5.so(+0xb0c70)[0xb70c4c70]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle6typeck5check16check_item_types16_ef87a212ee1c1893_05E+0x535)[0xb6951d75]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle6typeck11check_crate16_a6cae69efbc89b13_05E+0x1d0)[0xb6ab67a0]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver12compile_upto17_b151657a4240fde03_05E+0x1abe)[0xb6da77ee]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver13compile_input17_7b32cdb7224418ef3_05E+0xbc)[0xb6dad81c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN12run_compiler17_ddc4abe87a436fd43_05E+0x27c6)[0xb6de4e46]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929ae2)[0xb6decae2]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x928807)[0xb6deb807]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x9275ed)[0xb6dea5ed]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x744ac)[0xb75c94ac]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb322c)[0xb760822c]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0xb647e7d1]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/leah/rust-0.5/src/librustc/rustc.rc:425
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb647de4a]
/usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb647df46]
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb647dfb2]
/usr/local/bin/../lib/librustrt.so(upcall_s_fail+0x53)[0xb6480103]
/usr/local/bin/../lib/librustrt.so(+0x2bf8f)[0xb6492f8f]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x18c)[0xb648091c]
/usr/local/bin/../lib/librustrt.so(rust_upcall_fail+0x2b)[0xb6480a5b]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN3sys6rustrt16rust_upcall_fail17_905a6473a4b75bd83_05E+0x45)[0xb75f6e75]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1fbb)[0xb75f6fbb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x2ba96)[0xb7580a96]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb322c)[0xb760822c]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN7monitor17_3dc9d53d274031c13_05E+0x2d6f)[0xb6de947f]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(+0x929d88)[0xb6decd88]
/usr/local/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN4main16_2fb85b4a659c4103_05E+0x85)[0xb6deca05]
rustc(_rust_main+0x31)[0x80489b1]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0xb647e7d1]
rust: domain main @0x946c2d8 root task failed
rust: task failed at 'killed', /home/leah/rust-0.5/src/libcore/task/mod.rs:570
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_j+0x5a)[0xb647de4a]
/usr/local/bin/../lib/librustrt.so(rust_task_fail+0x36)[0xb647df46]
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEPKcS1_j+0x32)[0xb647dfb2]
/usr/local/bin/../lib/librustrt.so(upcall_s_fail+0x53)[0xb6480103]
/usr/local/bin/../lib/librustrt.so(+0x2bf8f)[0xb6492f8f]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x18c)[0xb648091c]
/usr/local/bin/../lib/librustrt.so(rust_upcall_fail+0x2b)[0xb6480a5b]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN3sys6rustrt16rust_upcall_fail17_905a6473a4b75bd83_05E+0x45)[0xb75f6e75]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1fbb)[0xb75f6fbb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x2ba96)[0xb7580a96]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN4task5yield17_56812fae66173efd3_05E+0xc8)[0xb75addf8]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x905c5)[0xb75e55c5]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN7private11weaken_task17_ababfc7d1239606c3_05E+0xdb)[0xb75e53fb]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x902c6)[0xb75e52c6]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x8db70)[0xb75e2b70]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb322c)[0xb760822c]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x744ac)[0xb75c94ac]
/usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb322c)[0xb760822c]
/usr/local/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0xb647e7d1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment