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

Stackoverflow if JIRA connection is not successful #2

Closed
FabianEmmes opened this issue Feb 26, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@FabianEmmes
Copy link

commented Feb 26, 2019

I tried running PREvant with an existing jira.host but invalid jira.user and jira.password entries.

This results in a crash:

thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow

Debugging with gdb shows that the stack overflow is caused when calling Display::fmt while handling the JIRA connection error. So this might be actually a bug in gojira, but I didn't investigate further. The last 50 frames of the backtrace are:

#8552 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de1410) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8553 0x0000555556423351 in _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hab2c588cb2ff96a6 (self=0x7ffff5de15b8, f=0x7ffff5de1410) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:1914
#8554 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8555 0x00005555570e7574 in _$LT$core..fmt..Formatter$LT$$u27$_$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h7ba70738e2d20026 () at src/libcore/fmt/mod.rs:1457
#8556 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de17d0) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8557 0x0000555556423351 in _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hab2c588cb2ff96a6 (self=0x7ffff5de1978, f=0x7ffff5de17d0) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:1914
#8558 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8559 0x00005555570e7574 in _$LT$core..fmt..Formatter$LT$$u27$_$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h7ba70738e2d20026 () at src/libcore/fmt/mod.rs:1457
#8560 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de1b90) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8561 0x0000555556423351 in _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hab2c588cb2ff96a6 (self=0x7ffff5de1d38, f=0x7ffff5de1b90) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:1914
#8562 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8563 0x00005555570e7574 in _$LT$core..fmt..Formatter$LT$$u27$_$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h7ba70738e2d20026 () at src/libcore/fmt/mod.rs:1457
#8564 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de1f50) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8565 0x0000555556423351 in _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hab2c588cb2ff96a6 (self=0x7ffff5de20f8, f=0x7ffff5de1f50) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:1914
#8566 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8567 0x00005555570e7574 in _$LT$core..fmt..Formatter$LT$$u27$_$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h7ba70738e2d20026 () at src/libcore/fmt/mod.rs:1457
#8568 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de2310) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8569 0x0000555556423351 in _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::hab2c588cb2ff96a6 (self=0x7ffff5de24b8, f=0x7ffff5de2310) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:1914
#8570 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8571 0x00005555570e7574 in _$LT$core..fmt..Formatter$LT$$u27$_$GT$$u20$as$u20$core..fmt..Write$GT$::write_fmt::h7ba70738e2d20026 () at src/libcore/fmt/mod.rs:1457
#8572 0x0000555556425a0a in _$LT$goji..errors..Error$u20$as$u20$core..fmt..Display$GT$::fmt::h171be065a9d38fda (self=0x7ffff5de4480, f=0x7ffff5de26b0) at /home/femmes/.cargo/git/checkouts/goji-ec72f4121a706f3e/1d72ffe/src/errors.rs:60
#8573 0x00005555570e67cc in write () at src/libcore/fmt/mod.rs:1016
#8574 0x00005555570dcef5 in write_fmt<alloc::string::String> () at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/fmt/mod.rs:195
#8575 format () at src/liballoc/fmt.rs:563
#8576 0x0000555555bee0a1 in _$LT$prevant..tickets..ListTicketsError$u20$as$u20$core..convert..From$LT$goji..errors..Error$GT$$GT$::from::hc876269c76613fea (err=...) at src/tickets.rs:130
#8577 0x0000555555bef4dd in prevant::tickets::tickets::h248b126a29b82ded (config_state=...) at src/tickets.rs:88
#8578 0x0000555555bf02fb in prevant::tickets::rocket_route_fn_tickets::h26f05a56abb009e3 (__req=0x7ffff5de67d0, __data=...) at src/tickets.rs:40
#8579 0x0000555556dc7132 in core::ops::function::Fn::call::h96f9b42f34102e2a () at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libcore/ops/function.rs:69
#8580 0x0000555556d0ab2b in _$LT$F$u20$as$u20$rocket..handler..Handler$GT$::handle::hecbfd541df6c042d (self=0x555557902420, req=0x7ffff5de67d0, data=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.0/src/handler.rs:177
#8581 0x0000555556d8c754 in rocket::rocket::Rocket::route::hd5d163bc739b93f9 (self=0x7ffff0000940, request=0x7ffff5de67d0, data=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.0/src/rocket.rs:289
#8582 0x0000555556d8b825 in rocket::rocket::Rocket::route_and_process::h30001a1bbc98e465 (self=0x7ffff0000940, request=0x7ffff5de67d0, data=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.0/src/rocket.rs:238
#8583 0x0000555556d8ad75 in rocket::rocket::Rocket::dispatch::hfce17b7ea7d3e7d1 (self=0x7ffff0000940, request=0x7ffff5de67d0, data=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.0/src/rocket.rs:217
#8584 0x0000555556d882a6 in _$LT$rocket..rocket..Rocket$u20$as$u20$hyper..server..Handler$GT$::handle::h765a792c52a7c3bc (self=0x7ffff0000940, hyp_req=..., res=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.4.0/src/rocket.rs:82
#8585 0x0000555556de2576 in _$LT$hyper..server..Worker$LT$H$GT$$GT$::keep_alive_loop::hd74f79866bb41605 (self=0x7ffff0000940, rdr=0x7ffff5de8fe0, wrt=0x7ffff5de9018, addr=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.10.15/src/server/mod.rs:340
#8586 0x0000555556de30cd in _$LT$hyper..server..Worker$LT$H$GT$$GT$::handle_connection::hc3e67a7f14dd3a0c (self=0x7ffff0000940, stream=0x7ffff5de92a4) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.10.15/src/server/mod.rs:282
#8587 0x0000555556de79c0 in hyper::server::handle::_$u7b$$u7b$closure$u7d$$u7d$::hbdac986038268840 (stream=...) at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.10.15/src/server/mod.rs:242
#8588 0x0000555556d690a5 in hyper::server::listener::spawn_with::_$u7b$$u7b$closure$u7d$$u7d$::h4276ccc1d6115c86 () at /home/femmes/.cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.10.15/src/server/listener.rs:50
#8589 0x0000555556d3ef41 in std::sys_common::backtrace::__rust_begin_short_backtrace::ha5f1fcd20c4a1f19 (f=...) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/sys_common/backtrace.rs:135
#8590 0x0000555556dc23e3 in std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hbad2720fedaca4fb () at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/thread/mod.rs:469
#8591 0x0000555556d70183 in _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hbdca7c39fb798f5b (self=..., _args=()) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/panic.rs:309
#8592 0x0000555556d7558a in std::panicking::try::do_call::h440449bc129af952 (data=0x7ffff5de9710 "\002\000") at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/panicking.rs:297
#8593 0x00005555570ceb8a in __rust_maybe_catch_panic () at src/libpanic_unwind/lib.rs:87
#8594 0x0000555556d75330 in std::panicking::try::h23c6d94cbd867ee2 (f=...) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/panicking.rs:276
#8595 0x0000555556d75233 in std::panic::catch_unwind::h3f90842fc1a1a35e (f=...) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/panic.rs:388
#8596 0x0000555556dc219a in std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::h45e570fd19e3df98 () at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/libstd/thread/mod.rs:468
#8597 0x0000555556dce471 in _$LT$F$u20$as$u20$alloc..boxed..FnBox$LT$A$GT$$GT$::call_box::hd2e81aee5cf443be (self=0x7ffff0001820, args=()) at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/liballoc/boxed.rs:749
#8598 0x00005555570cdf0e in call_once<(),()> () at /rustc/00aae71f503b1ab592f48de47dd30912f3858748/src/liballoc/boxed.rs:759
#8599 start_thread () at src/libstd/sys_common/thread.rs:14
#8600 thread_start () at src/libstd/sys/unix/thread.rs:81
#8601 0x00007ffff70b2494 in start_thread (arg=0x7ffff5deb700) at pthread_create.c:333
#8602 0x00007ffff6bddacf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.