Skip to content

Instantly share code, notes, and snippets.

@hdevalence
Created November 24, 2021 01:49
Show Gist options
  • Save hdevalence/2f07d955040f7449eff1743773db69fc to your computer and use it in GitHub Desktop.
Save hdevalence/2f07d955040f7449eff1743773db69fc to your computer and use it in GitHub Desktop.
libgit2 segfault
2021-11-24T01:46:37.942537Z INFO get_all_crates: successfully cloned crate name="planner" completion=0.010308388299892945
2021-11-24T01:46:37.942664Z INFO get_all_crates: starting clone name="wasm-bindgen-anyref-xform" repo="https://github.com/rustwasm/wasm-bindgen/tree/master/crates/anyref-xform" clone_path="/home/hdevalence/data/crates.io/repos/wa/sm/wasm-bindgen-anyref-xform"
2021-11-24T01:46:38.162363Z INFO get_all_crates: successfully cloned crate name="tinywinstr" completion=0.010325655281969817
2021-11-24T01:46:38.162397Z INFO get_all_crates: starting clone name="keypath" repo="https://github.com/cmyr/keypath" clone_path="/home/hdevalence/data/crates.io/repos/ke/yp/keypath"
2021-11-24T01:46:38.211084Z INFO get_all_crates: successfully cloned crate name="frugalos_config" completion=0.01034292226404669
2021-11-24T01:46:38.211251Z INFO get_all_crates: starting clone name="slack-blocks" repo="https://github.com/cakekindel/slack-block-kit-rs" clone_path="/home/hdevalence/data/crates.io/repos/sl/ac/slack-blocks"
Thread 32 "tokio-runtime-w" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff3c46640 (LWP 3394256)]
__strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:101
101 ../sysdeps/x86_64/multiarch/strcmp-avx2.S: No such file or directory.
Missing separate debuginfos, use: dnf debuginfo-install libselinux-3.2-1.fc34.x86_64 pcre2-10.36-4.fc34.x86_64
(gdb) bt
#0 __strcmp_avx2 () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:101
#1 0x000055555575f6c4 in remove_service_suffix (service_suffix=0x5555557e0190 "/info/refs?service=git-upload-pack", url=0x7fff746131a0) at libgit2/src/net.c:291
#2 git_net_url_apply_redirect (url=url@entry=0x7fff746131a0, redirect_location=<optimized out>, service_suffix=0x5555557e0190 "/info/refs?service=git-upload-pack") at libgit2/src/net.c:366
#3 0x0000555555729db5 in handle_response (complete=complete@entry=0x7ffff3c43a1f, stream=stream@entry=0x7fff753d9570, response=response@entry=0x7ffff3c43aa0, allow_replay=true) at libgit2/src/transports/http.c:236
#4 0x000055555572a141 in http_stream_read (s=0x7fff753d9570, buffer=0x7fff75e05e60 "", buffer_size=65536, out_len=0x7ffff3c43b78) at libgit2/src/transports/http.c:406
#5 0x000055555572f3fb in git_smart__recv_cb (buf=0x7fff75e05e38) at libgit2/src/transports/smart.c:25
#6 0x0000555555731838 in git_smart__store_refs (t=t@entry=0x7fff75e05ca0, flushes=2) at libgit2/src/transports/smart_protocol.c:56
#7 0x000055555572fbe2 in git_smart__connect (transport=0x7fff75e05ca0, url=<optimized out>, cred_acquire_cb=0x0, cred_acquire_payload=0x0, proxy=0x7ffff3c44160, direction=0, flags=0)
at libgit2/src/transports/smart.c:257
#8 0x000055555570aa60 in git_remote__connect (remote=0x7fff751fc2d0, direction=GIT_DIRECTION_FETCH, callbacks=0x7ffff3c440d8, conn=0x7ffff3c43d60) at libgit2/src/remote.c:809
#9 0x000055555570c56b in git_remote_fetch (remote=0x7fff751fc2d0, refspecs=refspecs@entry=0x0, opts=opts@entry=0x7ffff3c440d0,
reflog_message=0x7fff746efb60 "clone: from https://github.com/rustwasm/wasm-bindgen/tree/master/crates/anyref-xform") at libgit2/src/remote.c:1153
#10 0x00005555556d5b89 in clone_into (branch=<optimized out>, co_opts=0x7ffff3c43f48, opts=0x7ffff3c43fd8, _remote=0x7fff75245180, repo=0x7fff740011e0) at libgit2/src/buffer.h:195
#11 git__clone (out=0x7ffff3c45118, url=<optimized out>, local_path=0x7fff740052a0 "/home/hdevalence/data/crates.io/repos/wa/sm/wasm-bindgen-anyref-xform", _options=<optimized out>, use_existing=<optimized out>)
at libgit2/src/clone.c:504
#12 0x00005555556c708e in git2::build::RepoBuilder::clone (self=<optimized out>, url=..., into=0x555555dd56e0) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.24/src/build.rs:280
#13 0x00005555555a083b in git2::repo::Repository::clone<std::path::PathBuf> (url=..., into=...) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.24/src/repo.rs:302
#14 0x0000555555593ba8 in get_all_crates::main::{{closure}}::{{closure}} () at src/main.rs:91
#15 tokio::runtime::blocking::task::{{impl}}::poll<closure-1,()> (self=..., _cx=<optimized out>) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/task.rs:42
#16 tokio::runtime::task::core::{{impl}}::poll::{{closure}}<tokio::runtime::blocking::task::BlockingTask<closure-1>> (ptr=0x555555dd5770)
at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:161
#17 tokio::loom::std::unsafe_cell::UnsafeCell<tokio::runtime::task::core::Stage<tokio::runtime::blocking::task::BlockingTask<closure-1>>>::with_mut<tokio::runtime::task::core::Stage<tokio::runtime::blocking::task::BlockingTask<closure-1>>,core::task::poll::Poll<()>,closure-0> (self=0x555555dd5770, f=...) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/loom/std/unsafe_cell.rs:14
#18 tokio::runtime::task::core::CoreStage<tokio::runtime::blocking::task::BlockingTask<closure-1>>::poll<tokio::runtime::blocking::task::BlockingTask<closure-1>> (self=0x555555dd5770, cx=...)
at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/core.rs:151
#19 tokio::runtime::task::harness::poll_future::{{closure}}<tokio::runtime::blocking::task::BlockingTask<closure-1>> ()
at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:461
#20 std::panic::{{impl}}::call_once<core::task::poll::Poll<()>,closure-0> (self=..., _args=<optimized out>) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:347
#21 0x000055555558baf1 in std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,core::task::poll::Poll<()>> (data=<optimized out>)
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401
#22 std::panicking::try<core::task::poll::Poll<()>,std::panic::AssertUnwindSafe<closure-0>> (f=...) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365
#23 std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,core::task::poll::Poll<()>> (f=...) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434
#24 tokio::runtime::task::harness::poll_future<tokio::runtime::blocking::task::BlockingTask<closure-1>> (core=0x555555dd5770, cx=...)
at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:449
#25 tokio::runtime::task::harness::Harness<tokio::runtime::blocking::task::BlockingTask<closure-1>, tokio::runtime::blocking::schedule::NoopSchedule>::poll_inner<tokio::runtime::blocking::task::BlockingTask<closure-1>,tokio::runtime::blocking::schedule::NoopSchedule> (self=<optimized out>) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:98
#26 tokio::runtime::task::harness::Harness<tokio::runtime::blocking::task::BlockingTask<closure-1>, tokio::runtime::blocking::schedule::NoopSchedule>::poll<tokio::runtime::blocking::task::BlockingTask<closure-1>,tokio::runtime::blocking::schedule::NoopSchedule> (self=...) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/harness.rs:53
#27 0x000055555564fcdc in tokio::runtime::task::raw::RawTask::poll (self=...) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/raw.rs:70
#28 tokio::runtime::task::UnownedTask<tokio::runtime::blocking::schedule::NoopSchedule>::run<tokio::runtime::blocking::schedule::NoopSchedule> (self=...)
at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/task/mod.rs:379
#29 tokio::runtime::blocking::pool::Inner::run (self=0x555555a8e150, worker_thread_id=<optimized out>) at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/pool.rs:264
#30 tokio::runtime::blocking::pool::{{impl}}::spawn_thread::{{closure}} () at /home/hdevalence/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.14.0/src/runtime/blocking/pool.rs:244
#31 std::sys_common::backtrace::__rust_begin_short_backtrace<closure-0,()> (f=...) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/sys_common/backtrace.rs:125
#32 0x0000555555654c88 in std::thread::{{impl}}::spawn_unchecked::{{closure}}::{{closure}}<closure-0,()> () at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/thread/mod.rs:481
#33 std::panic::{{impl}}::call_once<(),closure-0> (self=..., _args=<optimized out>) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:347
#34 std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure-0>,()> (data=<optimized out>) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:401
#35 std::panicking::try<(),std::panic::AssertUnwindSafe<closure-0>> (f=...) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:365
#36 std::panic::catch_unwind<std::panic::AssertUnwindSafe<closure-0>,()> (f=...) at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panic.rs:434
#37 std::thread::{{impl}}::spawn_unchecked::{{closure}}<closure-0,()> () at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/thread/mod.rs:480
#38 core::ops::function::FnOnce::call_once<closure-0,()> () at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227
#39 0x0000555555799797 in alloc::boxed::{{impl}}::call_once<(),FnOnce<()>,alloc::alloc::Global> () at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/alloc/src/boxed.rs:1575
#40 alloc::boxed::{{impl}}::call_once<(),alloc::boxed::Box<FnOnce<()>, alloc::alloc::Global>,alloc::alloc::Global> () at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/alloc/src/boxed.rs:1575
#41 std::sys::unix::thread::{{impl}}::new::thread_start () at library/std/src/sys/unix/thread.rs:71
#42 0x00007ffff7bd7299 in start_thread (arg=0x7ffff3c46640) at pthread_create.c:481
#43 0x00007ffff79b2353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment