Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panicked at '"__mbstate_t_union_(unnamed_at_/usr/include/bits/types/__mbstate_t_h_16_3)" is not a valid Ident', #1122

Closed
mingjunyang opened this issue Apr 25, 2023 · 6 comments

Comments

@mingjunyang
Copy link

I upgrade my project code from pgx v0.7.4 to pgrx v0.8.0.
I build and run my code on another Linux CentOS Stream 9 5.14.0-295.el9.aarch64 server, It's work well.
And build on my local Fedora38 machine, It's panic here.

the system info

Linux fedora 6.2.11-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023 x86_64 GNU/Linux

rustup toolchain list
nightly-x86_64-unknown-linux-gnu (default)

rustc 1.71.0-nightly (f5559e338 2023-04-24)

clang version 16.0.0 (Fedora 16.0.0-2.fc38)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

pg_config --version
PostgreSQL 15.2

the panic info

cargo b --release
   Compiling pgrx-pg-sys v0.8.0
error: failed to run custom build command for `pgrx-pg-sys v0.8.0`

Caused by:
  process didn't exit successfully: `$WORKDIR/target/release/build/pgrx-pg-sys-ebd30a92e4c10c34/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=DOCS_RS
  cargo:rerun-if-env-changed=PGRX_BUILD_VERBOSE
  cargo:rerun-if-env-changed=CARGO_FEATURE_CSHIM
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-env-changed=CARGO_CFG_PLRUSTC
  cargo:rerun-if-env-changed=RUSTC
  cargo:rerun-if-env-changed=CARGO_MANIFEST_DIR
  cargo:rerun-if-env-changed=OUT_DIR
  cargo:rerun-if-env-changed=PGRX_PG_CONFIG_PATH
  cargo:rerun-if-env-changed=PGRX_PG_CONFIG_AS_ENV
  cargo:rerun-if-env-changed=LLVM_CONFIG_PATH
  cargo:rerun-if-env-changed=LIBCLANG_PATH
  cargo:rerun-if-env-changed=LIBCLANG_STATIC_PATH
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-changed=include
  cargo:rerun-if-changed=cshim
  cargo:rerun-if-changed=$HOMEDIR/pgrx/config.toml
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG11
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG12
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG13
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG14
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG15
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_TARGET_INFO_PATH_PG15_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_TARGET_INFO_PATH_PG15
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_PG15_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_PG15
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_BINDGEN_NO_DETECT_INCLUDES_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_BINDGEN_NO_DETECT_INCLUDES

  --- stderr
  build_paths=BuildPaths { manifest_dir: "$HOMEDIR/cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.0", out_dir: "$WORKDIR/target/release/build/pgrx-pg-sys-a9d347c3bd09d9e0/out", src_dir: "$HOMEDIR/cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.0/src", shim_src: "$HOMEDIR/cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.0/cshim", shim_dst: "$WORKDIR/target/release/build/pgrx-pg-sys-a9d347c3bd09d9e0/out/cshim" }
  Generating bindings for pg15
  clang diag: /usr/local/pgsql15/include/server/port.h:212:70: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:214:55: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:216:58: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:218:43: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:173:40: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:174:49: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:177:30: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:177:56: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:179:43: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:180:52: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:182:47: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:186:31: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:186:57: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:189:30: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:189:56: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:191:41: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:194:31: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:194:57: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:208:48: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:239:54: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:468:47: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/palloc.h:155:44: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/palloc.h:156:80: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/lib/stringinfo.h:96:67: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/lib/stringinfo.h:107:78: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  thread '<unnamed>' panicked at '"__mbstate_t_union_(unnamed_at_/usr/include/bits/types/__mbstate_t_h_16_3)" is not a valid Ident', $HOMEDIR/cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/fallback.rs:811:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  thread 'main' panicked at 'thread panicked while generating bindings: Any { .. }', $HOMEDIR/cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.0/build.rs:192:41

Cargo.toml

[package]
name = "XXXX"
version = "1.10.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[features]
default = ["pg15"]
pg15 = ["pgrx/pg15", "pgrx-tests/pg15"]
pg_test = []

[dependencies]
pgrx = { version = "0.8", features = ["time-crate"], default-features = false }
....

[dev-dependencies]
pgrx-tests = { version = "0.8" }

[profile.dev]
lto = "thin"
panic = "unwind"

[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 3
panic = "unwind"
@eeeebbbbrrrr
Copy link
Contributor

This is definitely something I haven't seen before.

Did you try doing a cargo clean? Also, can you detail the steps you performed to get this error? What are all the commands you executed?

@mingjunyang
Copy link
Author

I try to run cargo clean clean my project workspace and rm -rf $HOME/.cargo/registry.
Did not fix this issue.

I guess that is my system is too new, the clang or the system include path has some changed, or the /usr/include/bits/types/__mbstate header file has some changed.

My another server work well, the issue did not crash my work. The Issue machine just a experiment server.

I will continue to research for this issue.

@eeeebbbbrrrr
Copy link
Contributor

I don't know if this is helpful, but we have a Fedora 36 Dockerfile we use for CI: https://github.com/tcdi/pgrx/tree/master/.github/docker

That's known to work, so maybe there's something there that'll point you in the right direction?

@mingjunyang
Copy link
Author

I think my issuse same the clang16 and bindgen issuse.
rust-lang/rust-bindgen#2312
rust-lang/rust-bindgen#2488
rust-lang/rust-bindgen#2316

RUST_BACKTRACE=full cargo b --release
   Compiling pgrx-pg-sys v0.8.1
error: failed to run custom build command for `pgrx-pg-sys v0.8.1`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `$WORKDIR/target/release/build/pgrx-pg-sys-b6cc13a16ba52cdf/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=DOCS_RS
  cargo:rerun-if-env-changed=PGRX_BUILD_VERBOSE
  cargo:rerun-if-env-changed=CARGO_FEATURE_CSHIM
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-env-changed=CARGO_CFG_PLRUSTC
  cargo:rerun-if-env-changed=RUSTC
  cargo:rerun-if-env-changed=CARGO_MANIFEST_DIR
  cargo:rerun-if-env-changed=OUT_DIR
  cargo:rerun-if-env-changed=PGRX_PG_CONFIG_PATH
  cargo:rerun-if-env-changed=PGRX_PG_CONFIG_AS_ENV
  cargo:rerun-if-env-changed=LLVM_CONFIG_PATH
  cargo:rerun-if-env-changed=LIBCLANG_PATH
  cargo:rerun-if-env-changed=LIBCLANG_STATIC_PATH
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-changed=include
  cargo:rerun-if-changed=cshim
  cargo:rerun-if-changed=$HOME.pgrx/config.toml
  cargo:rerun-if-env-changed=PGRX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG11
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG12
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG13
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG14
  cargo:rerun-if-env-changed=CARGO_FEATURE_PG15
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_TARGET_INFO_PATH_PG15_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_TARGET_INFO_PATH_PG15
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_PG15_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_PG15
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_INCLUDEDIR_SERVER
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=PGRX_BINDGEN_NO_DETECT_INCLUDES_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PGRX_BINDGEN_NO_DETECT_INCLUDES

  --- stderr
  build_paths=BuildPaths { manifest_dir: "$HOME.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.1", out_dir: "$WORKDIR/target/release/build/pgrx-pg-sys-228015a05c1249dd/out", src_dir: "$HOME.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.1/src", shim_src: "$HOME.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.1/cshim", shim_dst: "$WORKDIR/target/release/build/pgrx-pg-sys-228015a05c1249dd/out/cshim" }
  Generating bindings for pg15
  clang diag: /usr/local/pgsql15/include/server/port.h:212:70: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:214:55: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:216:58: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/port.h:218:43: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:173:40: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:174:49: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:177:30: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:177:56: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:179:43: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:180:52: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:182:47: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:186:31: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:186:57: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:189:30: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:189:56: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:191:41: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:194:31: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:194:57: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:208:48: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:239:54: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/elog.h:468:47: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/palloc.h:155:44: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/utils/palloc.h:156:80: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/lib/stringinfo.h:96:67: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  clang diag: /usr/local/pgsql15/include/server/lib/stringinfo.h:107:78: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes]
  thread '<unnamed>' panicked at '"__mbstate_t_union_(unnamed_at_/usr/include/bits/types/__mbstate_t_h_16_3)" is not a valid Ident', $HOME.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/fallback.rs:811:9
  stack backtrace:
     0:     0x55c4318526e3 - std::backtrace_rs::backtrace::libunwind::trace::h6e4c3ff5deb44997
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
     1:     0x55c4318526e3 - std::backtrace_rs::backtrace::trace_unsynchronized::he3e7c373d8655f6e
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
     2:     0x55c4318526e3 - std::sys_common::backtrace::_print_fmt::h774256cf97fa2301
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:65:5
     3:     0x55c4318526e3 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h36eaa86a8ee6a367
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:44:22
     4:     0x55c43187afbf - core::fmt::write::h3c0ebeb8db84710a
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/fmt/mod.rs:1247:17
     5:     0x55c43184fc71 - std::io::Write::write_fmt::ha0a9fca2cc6c86f4
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/io/mod.rs:1712:15
     6:     0x55c4318524f5 - std::sys_common::backtrace::_print::he1934fb1298af79f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:47:5
     7:     0x55c4318524f5 - std::sys_common::backtrace::print::h22b3a24893f55e19
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:34:9
     8:     0x55c4318542d7 - std::panicking::default_hook::{{closure}}::h4cfc297c99c00c80
     9:     0x55c4318540c5 - std::panicking::default_hook::h38264502a1c86629
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:288:9
    10:     0x55c431854781 - std::panicking::rust_panic_with_hook::h1e1e5ea0c75de1ac
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:691:13
    11:     0x55c431854679 - std::panicking::begin_panic_handler::{{closure}}::h2379137c31bb488f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:582:13
    12:     0x55c431852b26 - std::sys_common::backtrace::__rust_end_short_backtrace::hddc17ca8f1eab55e
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:150:18
    13:     0x55c4318543d2 - rust_begin_unwind
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:578:5
    14:     0x55c4312443d3 - core::panicking::panic_fmt::h47f993741866bd18
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/panicking.rs:67:14
    15:     0x55c43181acc4 - proc_macro2::fallback::validate_ident::h7fb1bbd5aff7c8b3
    16:     0x55c43181aac1 - proc_macro2::fallback::Ident::_new::h0f8a9c3cb699574b
    17:     0x55c43181ab35 - proc_macro2::fallback::Ident::new::h9996e62b88b66603
    18:     0x55c43180753c - proc_macro2::imp::Ident::new::h243d7be72aeed675
    19:     0x55c4318033eb - proc_macro2::Ident::new::ha832907f78279df2
    20:     0x55c43160cb0f - bindgen::ir::context::BindgenContext::rust_ident_raw::hd2729f9a7c7407aa
    21:     0x55c43160c6e5 - bindgen::ir::context::BindgenContext::rust_ident::h006d892c0c5ac1f5
    22:     0x55c431528560 - <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen::h86546c74a75da1d4
    23:     0x55c43159c9ce - <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen::he5fa9d6ab2c212f3
    24:     0x55c431574df1 - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::h7f08852246a9e008
    25:     0x55c43152be9c - <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen::h86546c74a75da1d4
    26:     0x55c43159c9ce - <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen::he5fa9d6ab2c212f3
    27:     0x55c431574df1 - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::h7f08852246a9e008
    28:     0x55c43159c3ba - <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}::h0df275874ab6a6c2
    29:     0x55c431558724 - <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::h509599d78681ed7c
    30:     0x55c431574dd6 - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::h7f08852246a9e008
    31:     0x55c4315b0771 - bindgen::codegen::codegen::{{closure}}::ha74e9010f0861aab
    32:     0x55c43160ef02 - bindgen::ir::context::BindgenContext::gen::h0b00193bab38a31e
    33:     0x55c4315afd8d - bindgen::codegen::codegen::h1b86b188e75de47d
    34:     0x55c4315d6496 - bindgen::Bindings::generate::hdd75045426c045b5
    35:     0x55c4315d32a9 - bindgen::Builder::generate::hd05b90a30637043c
    36:     0x55c431270cd0 - build_script_build::run_bindgen::haef28b4cd3c89389
    37:     0x55c43126f993 - build_script_build::get_bindings::h737cae214cfc1bf6
    38:     0x55c43126a28f - build_script_build::generate_bindings::h8ff33a88bf95929d
    39:     0x55c431269a62 - build_script_build::main::{{closure}}::{{closure}}::{{closure}}::h141b71f5982307ab
    40:     0x55c431276f76 - std::sys_common::backtrace::__rust_begin_short_backtrace::h01eea9443c38e4af
    41:     0x55c4312785a1 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h05a9e40849a830ac
    42:     0x55c43125c391 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hd86de01ec992053e
    43:     0x55c4312603d6 - std::panicking::try::do_call::hc4d4987288bd04c9
    44:     0x55c4312638db - __rust_try
    45:     0x55c431260290 - std::panicking::try::h37014be90acc25ae
    46:     0x55c43127840f - std::thread::Builder::spawn_unchecked_::{{closure}}::hdff9257cbbfce7ea
    47:     0x55c43127ee76 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hef2eb6a480efa757
    48:     0x55c43185a2e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::heda7e3f0ddfef0e0
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/alloc/src/boxed.rs:1962:9
    49:     0x55c43185a2e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h8175f644b868a011
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/alloc/src/boxed.rs:1962:9
    50:     0x55c43185a2e5 - std::sys::unix::thread::Thread::new::thread_start::hcd7d2cf5c9a6a624
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys/unix/thread.rs:108:17
    51:     0x7f40df8e7c57 - start_thread
    52:     0x7f40df96da70 - __clone3
    53:                0x0 - <unknown>
  thread 'main' panicked at 'thread panicked while generating bindings: Any { .. }', $HOME.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-pg-sys-0.8.1/build.rs:192:41
  stack backtrace:
     0:     0x55c4318526e3 - std::backtrace_rs::backtrace::libunwind::trace::h6e4c3ff5deb44997
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
     1:     0x55c4318526e3 - std::backtrace_rs::backtrace::trace_unsynchronized::he3e7c373d8655f6e
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
     2:     0x55c4318526e3 - std::sys_common::backtrace::_print_fmt::h774256cf97fa2301
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:65:5
     3:     0x55c4318526e3 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h36eaa86a8ee6a367
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:44:22
     4:     0x55c43187afbf - core::fmt::write::h3c0ebeb8db84710a
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/fmt/mod.rs:1247:17
     5:     0x55c43184fc71 - std::io::Write::write_fmt::ha0a9fca2cc6c86f4
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/io/mod.rs:1712:15
     6:     0x55c4318524f5 - std::sys_common::backtrace::_print::he1934fb1298af79f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:47:5
     7:     0x55c4318524f5 - std::sys_common::backtrace::print::h22b3a24893f55e19
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:34:9
     8:     0x55c4318542d7 - std::panicking::default_hook::{{closure}}::h4cfc297c99c00c80
     9:     0x55c4318540c5 - std::panicking::default_hook::h38264502a1c86629
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:288:9
    10:     0x55c431854781 - std::panicking::rust_panic_with_hook::h1e1e5ea0c75de1ac
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:691:13
    11:     0x55c431854679 - std::panicking::begin_panic_handler::{{closure}}::h2379137c31bb488f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:582:13
    12:     0x55c431852b26 - std::sys_common::backtrace::__rust_end_short_backtrace::hddc17ca8f1eab55e
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/sys_common/backtrace.rs:150:18
    13:     0x55c4318543d2 - rust_begin_unwind
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:578:5
    14:     0x55c4312443d3 - core::panicking::panic_fmt::h47f993741866bd18
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/panicking.rs:67:14
    15:     0x55c431244883 - core::result::unwrap_failed::h795be29db77fad40
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/result.rs:1651:5
    16:     0x55c431281678 - core::result::Result<T,E>::expect::hffbd80f865e2917e
    17:     0x55c431269a9b - build_script_build::main::{{closure}}::{{closure}}::hed8d79745414d706
    18:     0x55c43125dc29 - core::iter::adapters::map::map_fold::{{closure}}::hc5b22740673771ff
    19:     0x55c431254b30 - core::iter::traits::iterator::Iterator::fold::ha8b452b960fc8174
    20:     0x55c43125bc12 - <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold::h8d1f35cca649c820
    21:     0x55c43125d1e2 - core::iter::traits::iterator::Iterator::for_each::hd83d38103e060a0f
    22:     0x55c43124e463 - alloc::vec::Vec<T,A>::extend_trusted::h1f3e0c1b768b0fe8
    23:     0x55c431251496 - <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend::hb1e299bcc20c2059
    24:     0x55c43124db83 - <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter::h90236b2973eb7548
    25:     0x55c43124f8f8 - alloc::vec::in_place_collect::<impl alloc::vec::spec_from_iter::SpecFromIter<T,I> for alloc::vec::Vec<T>>::from_iter::h1978b11be5c06206
    26:     0x55c4312512e7 - <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter::h5f4a4c2d0075fad9
    27:     0x55c43125ce5d - core::iter::traits::iterator::Iterator::collect::hdf0b785b59a12636
    28:     0x55c431269944 - build_script_build::main::{{closure}}::h34c8b77f3287bbec
    29:     0x55c43125fec6 - std::thread::scoped::scope::{{closure}}::hef5881e7a29aaa64
    30:     0x55c43125c351 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hc196026775c336b4
    31:     0x55c431260376 - std::panicking::try::do_call::h3fa9fc294a08a072
    32:     0x55c4312638db - __rust_try
    33:     0x55c4312601e0 - std::panicking::try::h14d28cb7dd1d3c85
    34:     0x55c43125fc4a - std::thread::scoped::scope::h0d19e4605bb82a96
    35:     0x55c43126821a - build_script_build::main::h753763c9fca23848
    36:     0x55c43127f113 - core::ops::function::FnOnce::call_once::hc1aa0c6d261a9369
    37:     0x55c431276f86 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcd7b5290848c5e88
    38:     0x55c43125c3e9 - std::rt::lang_start::{{closure}}::hf3f8f54f23f60e9b
    39:     0x55c43184ad82 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::habf7c85cdb489fe7
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/core/src/ops/function.rs:284:13
    40:     0x55c43184ad82 - std::panicking::try::do_call::h68f298ecbb120a65
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:485:40
    41:     0x55c43184ad82 - std::panicking::try::hcc25d2862cdab6f6
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:449:19
    42:     0x55c43184ad82 - std::panic::catch_unwind::h35a0d11921ca1977
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panic.rs:140:14
    43:     0x55c43184ad82 - std::rt::lang_start_internal::{{closure}}::hf0358303124be5a0
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/rt.rs:148:48
    44:     0x55c43184ad82 - std::panicking::try::do_call::hdc0d9a3bc1c1da03
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:485:40
    45:     0x55c43184ad82 - std::panicking::try::he1a9c3a324e9582f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panicking.rs:449:19
    46:     0x55c43184ad82 - std::panic::catch_unwind::hd002e8d45332df9f
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/panic.rs:140:14
    47:     0x55c43184ad82 - std::rt::lang_start_internal::h0fcbc5c9ca7a8639
                                 at /rustc/1a6ae3d692cfb52b21d0f45ba50b659486e53d6c/library/std/src/rt.rs:148:20
    48:     0x55c43125c3c7 - std::rt::lang_start::hf59ff1dc1ad063aa
    49:     0x55c431275995 - main
    50:     0x7f40df882b4a - __libc_start_call_main
    51:     0x7f40df882c0b - __libc_start_main@@GLIBC_2.34
    52:     0x55c431244bb5 - _start
    53:                0x0 - <unknown>

@thomcc
Copy link
Contributor

thomcc commented May 3, 2023

This should be fixed in latest bindgen.

@eeeebbbbrrrr
Copy link
Contributor

Closing this with the assumption bindgen has resolved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants