Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Deadlock when receiving kill-signal from child process



On Wed, Aug 5, 2015 at 6:52 PM, Bart Schaefer wrote:
}
} However, don't you delete it just yet from your test build.  Instead,
} add this patch and see what you get.

The freezes are now much less frequent, but I still managed to get it
to lock up with a slightly different gdb trace this time around.

Output:

./deadlock.zsh:15: no job table entry for pid 6501
./deadlock.zsh:15: no job table entry for pid 6500
./deadlock.zsh:15: no job table entry for pid 6503
./deadlock.zsh:15: no job table entry for pid 6505
./deadlock.zsh:15: no job table entry for pid 6509
TRAPUSR1:1: no job table entry for pid 6507
.....

gdb:

#0  0x00007fff8abf95da in syscall_thread_switch ()
#1  0x00007fff853a982d in _OSSpinLockLockSlow ()
#2  0x00007fff896e1635 in szone_force_lock ()
#3  0x00007fff896e15e6 in _malloc_fork_prepare ()
#4  0x00007fff82cb8097 in fork ()
#5  0x00000001036447d0 in zfork ()
#6  0x000000010364825d in execcmd ()
#7  0x00000001036432c0 in execpline ()
#8  0x000000010364286a in execlist ()
#9  0x0000000103642692 in execode ()
#10 0x0000000103646297 in runshfunc ()
#11 0x0000000103645d82 in doshfunc ()
#12 0x000000010368a8c7 in dotrapargs ()
#13 0x0000000103689a2a in handletrap ()
#14 0x0000000103689328 in zhandler ()
#15 <signal handler called>
#16 0x00007fff896dad62 in tiny_free_list_add_ptr ()
#17 0x00007fff896d9e7f in szone_free_definite_size ()
#18 0x000000010365e89a in inputsetline ()
#19 0x000000010365e1e7 in ingetc ()
#20 0x000000010366425b in zshlex ()
#21 0x0000000103679980 in parse_event ()
#22 0x000000010365add4 in loop ()
#23 0x000000010365dc2c in zsh_main ()
#24 0x00007fff8610c5c9 in start ()



Messages sorted by: Reverse Date, Date, Thread, Author