Thread 1 "bindgen" received signal SIGSEGV, Segmentation fault. 0x0000555557d40fd6 in core::ptr::const_ptr::{impl#0}::is_aligned_to (self=0x7ffff7ea5bf0, align=8) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1605 1605 pub const fn is_aligned_to(self, align: usize) -> bool { (gdb) bt #0 0x0000555557d40fd6 in core::ptr::const_ptr::{impl#0}::is_aligned_to (self=0x7ffff7ea5bf0, align=8) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1605 #1 0x0000555557d3e7b0 in core::ptr::const_ptr::{impl#0}::is_aligned (self=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1494 #2 0x0000555557fb54c1 in core::intrinsics::is_aligned_and_not_null (ptr=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/intrinsics.rs:2564 #3 0x0000555557fc0dd9 in core::ptr::read::runtime (src=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1213 #4 core::ptr::read (src=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1211 #5 0x0000555558132de0 in core::mem::replace (dest=0x7ffff7ea5bf0, src=1) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:921 #6 0x0000555557d8bf8e in core::cell::Cell::replace (self=0x7ffff7ea5bf0, val=1) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cell.rs:473 #7 0x0000555557d8b8c4 in core::cell::Cell::set (self=0x7ffff7ea5bf0, val=1) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cell.rs:412 #8 0x00005555574bc9d4 in core::cell::BorrowRef::new (borrow=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cell.rs:1389 #9 0x00005555574bad22 in core::cell::RefCell>>::try_borrow>> (self=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cell.rs:988 #10 0x00005555574bc7f3 in core::cell::RefCell>>::borrow>> (self=0x7ffff7ea5bf0) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cell.rs:953 #11 0x00005555573375c4 in clang_sys::with_library::{closure#0} clang_sys::CXCursor, clang_sys::clang_getCursorReferenced::{closure_env#0}> (l=0x7ffff7ea5bf0) at src/link.rs:133 #12 0x000055555739f2e5 in std::thread::local::LocalKey>>>::try_with>>, clang_sys::with_library::{closure_env#0} clang_sys::CXCursor, clang_sys::clang_getCursorReferenced::{closure_env#0}>, core::option::Option clang_sys::CXCursor>> ( self=0x555558bee0c0 , f=...) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:270 #13 0x00005555573828ef in std::thread::local::LocalKey>>>::with>>, clang_sys::with_library::{closure_env#0} clang_sys::CXCursor, clang_sys::clang_getCursorReferenced::{closure_env#0}>, core::option::Option clang_sys::CXCursor>> ( self=0x555558bee0c0 , f=...) at /home/boydjohnson/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:246 #14 0x000055555732ee9e in clang_sys::with_library clang_sys::CXCursor, clang_sys::clang_getCursorReferenced::{closure_env#0}> (f=...) at src/link.rs:132 #15 0x000055555735da00 in clang_sys::clang_getCursorReferenced (cursor=...) at src/link.rs:145 #16 0x00005555568184d8 in bindgen::clang::Cursor::referenced (self=0x7ffff5ff8520) at bindgen/clang.rs:442 #17 0x00005555568171dc in bindgen::clang::{impl#2}::is_dependent_on_template_parameter::visitor (