Skip to content

Instantly share code, notes, and snippets.

Avatar

bstrie bstrie

View GitHub Profile
@bstrie
bstrie / gist:1786879
Created Feb 10, 2012
Rust unexpected failure backtrace
View gist:1786879
$ RUST_LOG=rustc=0,::rt::backtrace rustc .rustic.scratch.rs
rust: "parse_buf(): buf is empty"
rust: upcall fail 'explicit failure', src/libcore/u64.rs:118
/usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7ffed3e1d5f5]
/usr/local/bin/../lib/librustrt.so(+0x2cd39)[0x7ffed3e30d39]
/usr/local/bin/../lib/librustrt.so(upcall_fail+0x39)[0x7ffed3e20ad9]
/usr/local/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3u648from_str17_2c4beb2ad58728b6E+0x1bd)[0x7ffed49be7dd]
/usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6syntax5parse5lexer11scan_number17_65325a3305b5b6dfE+0x9b4)[0x7ffed421ecb4]
/usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6syntax5parse5lexer16next_token_inner17_dead4c7f3aca7ac9E+0xac)[0x7ffed421f29c]
/usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6syntax5parse5lexer10next_token17_806c2ab64b9237bbE+0xc7)[0x7ffed421f1b7]
@bstrie
bstrie / block-hangs-forever.rs
Created Feb 22, 2012
Rustc infinite compiler hang
View block-hangs-forever.rs
// This program hangs in the compilation phase.
// The only difference is that the closure in #macro is replaced with a block
use std;
import std::rand;
import std::io::println;
iface is_even { fn is_even() -> bool; }
impl of is_even for int { fn is_even() -> bool { self % 2 == 0 } }
View Rust build failure
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/run.rs:193
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x39)[0x407ff2f9]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_s_fail+0x7f)[0x4080227f]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x2ba2f)[0x40815a2f]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x11c)[0x408060fc]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3run13start_program17_7bb4cfb4c42147b4E+0x11e)[0x4008127e]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3run14program_output17_ccbd99aa2cad80d2E+0x49)[0x40081969]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.1.so(_ZN4back4link11link_binary17_c669d7cca4dd05b7E+0x4746)[0x404ef326]
/home/ben/rust/i686-unknown-
View gist:2050083
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/run.rs:193
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x39)[0x410ce099]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_s_fail+0x7f)[0x410d0b3f]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x277ef)[0x410e27ef]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x11c)[0x410d2cec]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3run13start_program17_271a60acf7ca259dE+0x27a)[0x4006b1ca]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3run14program_output17_ccbd99aa2cad80d2E+0x49)[0x4006bc79]
/home/ben/rust/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.1.so(_ZN4back4link11link_binary17_f5fad0d7cfef21f2E+0x46bc)[0x40798a1c]
/home/ben/rust/i686-unknown-
View gist:2305469
$ RUST_LOG=rustc=0,::rt::backtrace make check
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
cfg: including dist rules
cfg: including test rules
@bstrie
bstrie / syntest.rs
Last active Oct 2, 2015
Rust syntax highlighter numeric literal stress test
View syntest.rs
fn main() {
//let bar = (~@&@~&~&@&~@&@&~&@&~@&~@&~@&~@&{ foo: 123.0f64 }).foo;
let _Aa1: int = 6789;
let _Ab1: int = 6__78__9__;
let _Ac1: int = 0xA6b2cDa;
let _Ad1: int = 0x__A6__b2__cD__A__;
let _Ae1: int = 0b0110010;
let _Af1: int = 0b__0__110__10__;
@bstrie
bstrie / gist:2324612
Created Apr 7, 2012 — forked from jamorton/gist:2323598
Pygments Test File
View gist:2324612
/** Comment
Thing / * * /
*/ /* */
// /* test
// TEST
// \\ / Comment \/ // */
View gist:2715752
ben@seleniac:~/rust [master]
⌁ RUST_LOG=rustc=0,::rt::backtrace make -j2
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so
View gist:2715815
ben@seleniac:~/rust [master]
⌁ RUST_LOG=rustc::back::link make -j2
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no pandoc found, omitting doc/rust.pdf
cfg: no llnextgen found, omitting grammar-verification
cfg: no pandoc found, omitting library doc build
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so
View RUST_LOG=rustc::back::link