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

Segmentation fault #2845

Closed
crackfan opened this issue Aug 9, 2021 · 2 comments
Closed

Segmentation fault #2845

crackfan opened this issue Aug 9, 2021 · 2 comments
Labels

Comments

@crackfan
Copy link

crackfan commented Aug 9, 2021

docker alpine rust
/app/diesel_demo # cargo -V
cargo 1.54.0 (5ae8d74b3 2021-06-22)
/app/diesel_demo # rustc -V
rustc 1.54.0 (a178d0322 2021-07-26)

/app/diesel_demo # diesel setup
Segmentation fault
/app/diesel_demo # diesel migration generate create_posts
Creating migrations/2021-08-07-020132_create_posts/up.sql
Creating migrations/2021-08-07-020132_create_posts/down.sql

/app/diesel_demo # diesel migration run
Segmentation fault

(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff7dffe18 in std::sync::once::Once::call_once::$u7b$$u7b$closure$u7d$$u7d$::h7ef22fafc02ce748 ()
#2 0x00007ffff7ce57cc in std::sync::once::Once::call_inner () at library/std/src/sync/once.rs:418
#3 0x00007ffff7e01357 in diesel::mysql::connection::raw::RawConnection::new ()
#4 0x00007ffff7e0280c in <diesel::mysql::connection::MysqlConnection as diesel::connection::Connection>::establish ()
#5 0x00007ffff7d56ac2 in diesel::database::setup_database ()
#6 0x00007ffff7d032ea in diesel::main ()
#7 0x00007ffff7d1c6d3 in std::sys_common::backtrace::__rust_begin_short_backtrace ()
#8 0x00007ffff7d1c6e9 in std::rt::lang_start::
$u7b$$u7b$closure$u7d$$u7d$::h6f4638e0e0b67534 ()
#9 0x00007ffff7e9a0f9 in core::ops::function::impls::{{impl}}::call_once<(),Fn<()>> ()
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:259
#10 std::panicking::try::do_call<&Fn<()>,i32> () at library/std/src/panicking.rs:401
#11 std::panicking::try<i32,&Fn<()>> () at library/std/src/panicking.rs:365
#12 std::panic::catch_unwind<&Fn<()>,i32> () at library/std/src/panic.rs:434
#13 std::rt::lang_start_internal () at library/std/src/rt.rs:34
#14 0x00007ffff7d07a22 in main ()

@crackfan crackfan added the bug label Aug 9, 2021
@weiznich
Copy link
Member

weiznich commented Aug 9, 2021

@crackfan Thanks for filling this issue here. Filling out the issue template is required, otherwise we miss important information. Please add the the necessary information, otherwise this issue will likely be closed as cannot reproduce.

@weiznich
Copy link
Member

@crackfan I've another short look at this. It seems like this is triggered by this function, which only calls a libmysqlclient function internally. This indicates that the issue is likely not in diesel itself, but in your version of libmysqlient. Please provide further information which exact version of libmysqlclient you use, otherwise there is really not much left to do here. If that information is not added I will likely close this issue next week as cannot reproduce.

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

No branches or pull requests

2 participants