freezes after "fg"ing suspended sleep
Created by: matthiaskrgr
repo @ 96d5b5d2
in the ion shell, I did
sleep 5
*ctrl-z*
^Zion: bg [0] 19401
ion: ([0] 19401) exited with 0
*shell hangs*
ctrl-c or ctrl-d did not terminate ion or got rid of the hang
I tried to attach gdb to the process and this is what I got:
#0 0x00007fee5e3ed260 in nanosleep () from /usr/lib/libpthread.so.0
#1 0x0000562b21af9941 in std::sys::unix::thread::Thread::sleep () at libstd/sys/unix/thread.rs:163
#2 std::thread::sleep () at libstd/thread/mod.rs:700
#3 0x0000562b21a54b77 in liner::history::History::new::{{closure}} () at /home/matthias/.cargo/registry/src/github.com-1ecc6299db9ec823/liner-0.4.4/src/history.rs:74
#4 0x0000562b21a52dd3 in std::sys_common::backtrace::__rust_begin_short_backtrace (f=...) at /checkout/src/libstd/sys_common/backtrace.rs:136
#5 0x0000562b21a76607 in std::thread::Builder::spawn::{{closure}}::{{closure}} () at /checkout/src/libstd/thread/mod.rs:406
#6 0x0000562b21a75723 in <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once (self=..., _args=()) at /checkout/src/libstd/panic.rs:296
#7 0x0000562b21a7682d in std::panicking::try::do_call (data=0x7fee5d5feae8 "@\361a]\356\177\000") at /checkout/src/libstd/panicking.rs:306
#8 0x0000562b21b18e6f in __rust_maybe_catch_panic () at libpanic_unwind/lib.rs:102
#9 0x0000562b21a76739 in std::panicking::try (f=...) at /checkout/src/libstd/panicking.rs:285
#10 0x0000562b21a75d3a in std::panic::catch_unwind (f=...) at /checkout/src/libstd/panic.rs:361
#11 0x0000562b21a76463 in std::thread::Builder::spawn::{{closure}} () at /checkout/src/libstd/thread/mod.rs:405
#12 0x0000562b21a7853f in <F as alloc::boxed::FnBox<A>>::call_box (self=0x7fee5d621150, args=()) at /checkout/src/liballoc/boxed.rs:783
#13 0x0000562b21b10d1c in _$LT$alloc..boxed..Box$LT$alloc..boxed..FnBox$LT$A$C$$u20$Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$::call_once::hcd0ea510185709fe () at /checkout/src/liballoc/boxed.rs:793
#14 std::sys_common::thread::start_thread () at libstd/sys_common/thread.rs:24
#15 std::sys::unix::thread::Thread::new::thread_start () at libstd/sys/unix/thread.rs:90
#16 0x00007fee5e3e308c in start_thread () from /usr/lib/libpthread.so.0
#17 0x00007fee5df03e7f in clone () from /usr/lib/libc.so.6
meta:
Linux t470 4.14.24-1-MANJARO #1 SMP PREEMPT Sun Mar 4 21:28:02 UTC 2018 x86_64 GNU/Linux
rustc 1.26.0-nightly (2789b067d 2018-03-06)