Artifact
1f17a6350dfe3ac6cc46b519e2b042930541dac22c2d3845a21154e6f24aff72:
Ticket change
[1f17a6350d]
- New ticket
[be38540b321769e5|be38540b32] <i>Deadlock during fork in TclpAlloc</i>.
by
christian.nassau on
2020-08-18 09:40:15.
D 2020-08-18T09:40:15.076
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment We\sare\sseeing\sthe\sfollowing\sstack\strace\sfor\sa\schild\sprocess\sstarted\svia\sfork;\sit\sseems\sto\sbe\spermanently\sstuck\sin\sthe\scall\sto\s"Tcl_MutexLock(allocMutexPtr);"\s(implicitly\striggered\sby\sTCL_TSD_INIT(&dataKey)\swhen\sthere\sis\snot\syet\sthread\sspecific\sdata\sfor\sthe\sdataKey):\r\n\r\n#0\s0x00007f2c4e21a54d\sin\s__lll_lock_wait\s()\sfrom\s/lib64/libpthread.so.0\r\n#1\s0x00007f2c4e215e9b\sin\s_L_lock_883\s()\sfrom\s/lib64/libpthread.so.0\r\n#2\s0x00007f2c4e215d68\sin\spthread_mutex_lock\s()\sfrom\s/lib64/libpthread.so.0\r\n#3\s0x00007f2c49c59efc\sin\sTclpAlloc\s()\sfrom\slibtcl8.6.so\r\n#4\s0x00007f2c49b83088\sin\sTcl_Alloc\s()\sfrom\slibtcl8.6.so\r\n#5\s0x00007f2c49c59738\sin\sTcl_GetThreadData\s()\sfrom\slibtcl8.6.so\r\n#6\s0x00007f2c49c7a12c\sin\sAtForkChild\s()\sfrom\slibtcl8.6.so\r\n#7\s0x00007f2c48d44a9e\sin\sfork\s()\sfrom\s/lib64/libc.so.6\r\n\r\nMy\sguess\sis\sthat\sthe\sfork\shappened\sat\sa\svery\sunfortunate\smoment\swhere\sthe\s"allocMutexPtr"\sin\sthe\sparent\sprocess\swas\stemporarily\slocked.\sShould\sthere\snot\sbe\sa\scall\sat\sthe\sbeginning\sof\s"AtForkChild"\sthat\sforces\s"allocInit"\sback\sto\szero?
J foundin 8.6.5
J is_private 0
J login christian.nassau
J priority 5\sMedium
J private_contact 3b279cda57135cd36d2c32c66396637342913651
J resolution None
J severity Important
J status Open
J submitter christian.nassau
J subsystem 49.\sThreading
J title Deadlock\sduring\sfork\sin\sTclpAlloc
J type Bug
K be38540b321769e53e36e8d03b1a867a1df4675f
U christian.nassau
Z 247053d395ad4aac3e74addce1c83694