Attempt to start app fails now, gdb says:
```
245 (0xffff8000042ca040) /libhttpserver. cpu0 waiting    
sched::thread::join() at core/sched.cc:1310 vruntime  6.97405e-18
    joining on 0xffff8000042ca040
```
Httpserver selfdestruction attempt failed ;)

I guess the magic "a->runtime().use_count() == 3" is not good enough in 
this particular case.

```
(gdb) osv thr 245
(gdb) bt
#0  sched::thread::switch_to (this=0xffff800001d85040) at 
arch/x64/arch-switch.hh:75
#1  0x00000000005ba7de in sched::cpu::reschedule_from_interrupt 
(this=0xffff8000017bb040, called_from_yield=false, preempt_after=...) at 
core/sched.cc:339
#2  0x00000000005ba042 in sched::cpu::schedule () at core/sched.cc:228
#3  0x00000000005bdd79 in sched::thread::wait (this=0xffff800004220040) at 
core/sched.cc:1213
#4  0x00000000005c2b59 in 
sched::thread::do_wait_until<sched::noninterruptible, 
sched::thread::dummy_lock, 
sched::thread::join()::__lambda18>(sched::thread::dummy_lock &, 
sched::thread::__lambda18) (mtx=..., pred=...) at include/osv/sched.hh:1052
#5  0x00000000005c1687 in 
sched::thread::wait_until<sched::thread::join()::__lambda18>(sched::thread::__lambda18)
 
(pred=...) at include/osv/sched.hh:1063
#6  0x00000000005be0f2 in sched::thread::join (this=0xffff800004220040) at 
core/sched.cc:1310
#7  0x000000000068a308 in pthread_private::pthread::join 
(this=0xffffa000020d27b0, retval=0x0) at libc/pthread.cc:156
#8  0x000000000068a71b in pthread_join (thread=18446638520627701680, 
retval=0x0) at libc/pthread.cc:245
#9  0x00000000006239a4 in osv::application::join (this=0xffffa00002103f18) 
at core/app.cc:249
#10 0x0000000000622a60 in osv::app_registry::join_terminated 
(this=0x149e440 <osv::application::apps>) at core/app.cc:72
#11 0x000000000062838b in osv::application::join_terminated () at 
include/osv/app.hh:105
#12 0x0000000000623016 in osv::run_background (args=std::vector of length 
2, capacity 2 = {...}) at core/app.cc:158
#13 0x0000100000ca1cbf in exec_app (cmnd_line="/sleep.so 5") at 
api/app.cc:39
...
```


-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to