Skip to content

Instantly share code, notes, and snippets.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ddef28 in _dl_map_object_from_fd () from /lib64/ld-linux-x86-64.so.2
#0 0x00007ffff7ddef28 in _dl_map_object_from_fd () from /lib64/ld-linux-x86-64.so.2
#1 0x00007ffff7de181c in _dl_map_object () from /lib64/ld-linux-x86-64.so.2
#2 0x00007ffff7de60d0 in openaux () from /lib64/ld-linux-x86-64.so.2
#3 0x00007ffff7de8754 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#4 0x00007ffff7de633f in _dl_map_object_deps () from /lib64/ld-linux-x86-64.so.2
#5 0x00007ffff7ddc6d2 in dl_main () from /lib64/ld-linux-x86-64.so.2
#6 0x00007ffff7df0afe in _dl_sysdep_start () from /lib64/ld-linux-x86-64.so.2
#7 0x00007ffff7ddaae8 in _dl_start () from /lib64/ld-linux-x86-64.so.2
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/home/dhobsd/fuchsia/third_party/rust-crates/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/home/dhobsd/fuchsia/third_party/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/home/dhobsd/fuchsia/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/home/dhobsd/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/home/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/google/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/local/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /usr/Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspace: find_root - trying /Cargo.toml
DEBUG 2018-09-11T19:08:11Z: cargo::core::workspa
INFO 2018-09-07T19:56:49Z: jobserver::imp: created a jobserver: Client { read: File { fd: 3, path: "pipe:[78185924]", read: true, write: false }, write: File { fd: 4, path: "pipe:[78185924]", read: false, write: true } }
INFO 2018-09-07T19:56:49Z: rustc_driver: codegen backend candidate: /usr/local/google/home/cramertj/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends
INFO 2018-09-07T19:56:49Z: rustc_driver: probing /usr/local/google/home/cramertj/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends for a codegen backend
INFO 2018-09-07T19:56:50Z: rustc_metadata::creader: resolving crate `extern crate std as std`
INFO 2018-09-07T19:56:50Z: rustc_metadata::creader: falling back to a load
INFO 2018-09-07T19:56:50Z: rustc_metadata::locator: lib candidate: /usr/local/google/home/cramertj/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-fuchsia/lib/libstd-dcfd40c2ad884e65.rlib
I
[1931/7535] ACTION //third_party/rust-crates/rustc...build-third-party(//build/toolchain/fuchsia:arm64)
FAILED: rust_third_party/deps_data.json
/usr/bin/env ../../build/rust/compile_3p_crates.py --cargo /usr/local/google/home/raggi/remote-fuchsia/buildtools/linux-x64/rust/bin/cargo --crate-root /usr/local/google/home/raggi/remote-fuchsia/third_party/rust-crates/rustc_deps --out-dir /usr/local/google/home/raggi/remote-fuchsia/out/arm64/rust_third_party --out-deps-data /usr/local/google/home/raggi/remote-fuchsia/out/arm64/rust_third_party/deps_data.json --rustc /usr/local/google/home/raggi/remote-fuchsia/buildtools/linux-x64/rust/bin/rustc --cmake-dir /usr/local/google/home/raggi/remote-fuchsia/buildtools/cmake/bin --shared-libs-root /usr/local/google/home/raggi/remote-fuchsia/out/arm64/arm64-shared --target aarch64-fuchsia --sysroot /usr/local/google/home/raggi/remote-fuchsia/out/arm64/sdks/zircon_sysroot/arch/arm64/sysroot --clang_prefix /usr/local/google/home/raggi/remote-fuchsia/buildtools/linux-x64/clang/b
error: linking with `/usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/clang/bin/clang` failed: exit code: 1
|
= note: "/usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/clang/bin/clang" "-m64" "-L" "/usr/local/google/home/cramertj/src/fuchsia/buildtools/linux-x64/rust/lib/rustlib/x86_64-fuchsia/lib" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.109wfc5tx2q1c3d0.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.18ddw0uw29nbjrva.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.1c1992z8rzx6eanp.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.1dgt4g6dxikgzouq.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.1dgt4g6dxikgzouq.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/out/release-x64/rust_crates/rolldice.1e5nhmc8vck3kj0r.rcgu.o" "/usr/local/google/home/cramertj/src/fuchsia/o
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/third_party/rust-crates/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/third_party/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/fuchsia/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/src/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/cramertj/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/home/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/google/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/local/Cargo.toml
DEBUG 2018-08-24T00:31:07Z: cargo::core::workspace: find_root - trying /usr/Carg
; ModuleID = 'main0-317d481089b8c8fe83113de504472633.rs'
source_filename = "main0-317d481089b8c8fe83113de504472633.rs"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--fuchsia"
%"core::fmt::Arguments" = type { [0 x i64], { [0 x { [0 x i8]*, i64 }]*, i64 }, [0 x i64], { i64*, i64 }, [0 x i64], { [0 x { i8*, i8* }]*, i64 }, [0 x i64] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [2 x i64], [0 x i64] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@vtable.0 = private unnamed_addr constant { void (i8**)*, i64, i64, i32 (i8**)*, i32 (i8**)*, i32 (i8*)* } { void (i8**)* @_ZN4core3ptr13drop_in_place17h34262f1889056112E, i64 8, i64 8, i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h8e9769335058ccddE", i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h8e9769335058ccddE", i32 (i8*)* @_ZN4core3ops8function6FnOnce9call_on
; ModuleID = 'main0-317d481089b8c8fe83113de504472633.rs'
source_filename = "main0-317d481089b8c8fe83113de504472633.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"core::fmt::Arguments" = type { [0 x i64], { [0 x { [0 x i8]*, i64 }]*, i64 }, [0 x i64], { i64*, i64 }, [0 x i64], { [0 x { i8*, i8* }]*, i64 }, [0 x i64] }
%"unwind::libunwind::_Unwind_Exception" = type { [0 x i64], i64, [0 x i64], void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [0 x i64], [6 x i64], [0 x i64] }
%"unwind::libunwind::_Unwind_Context" = type { [0 x i8] }
@vtable.0 = private unnamed_addr constant { void (i8**)*, i64, i64, i32 (i8**)*, i32 (i8**)*, i32 (i8*)* } { void (i8**)* @_ZN4core3ptr13drop_in_place17h2f1aa87fe2ee6613E, i64 8, i64 8, i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h20a9a6e32dc32665E", i32 (i8**)* @"_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h20a9a6e32dc32665E", i32 (i8*)* @_ZN4core3ops8function6FnOnce9call_once17h6
@cramertj
cramertj / main.rs
Created August 4, 2018 00:34
Simple Executor
#![feature(async_await, await_macro, futures_api, pin)]
use std::future::{Future, FutureObj};
use std::mem::PinMut;
use std::sync::{Arc, Mutex};
use std::sync::mpsc::{sync_channel, SyncSender, SendError, Receiver};
use std::task::{
self,
Executor as ExecutorTrait,
local_waker_from_nonlocal,
cargo-features = ["edition"]
[package]
name = "foo"
edition = "2018"
version = "0.1.0"
[dependencies]
rand = "0.5"