wohali commented on issue #2437: Hung beam.smp sitting at 100% CPU
URL: https://github.com/apache/couchdb/issues/2437#issuecomment-576404587
 
 
   @nickva sure looks like scheduler failure. I wish I knew why :(
   
   I also want to be sure that the 100% hung beam.smp issue is the same as the 
"error 32" problem we're seeing on failing to launch `couchjs` correctly. They 
seem related...but can't be sure.
   
   We looked at the source code for 21.x and 22.x for 
https://github.com/erlang/otp/commits/master/erts/emulator/sys/unix/erl_child_setup.c
 and didn't see anything in those releases. There's more recent commits but 
nothing released yet (per GH tags).
   
   Here's the most recent commit, which landed in OTP-21.0.9. This would be the 
most likely culprit... 
https://github.com/erlang/otp/commit/da4c24bf8fc7bb2ee0d0a66d9fcfe6344d7c0c8a#diff-d0f4c5a298602460b21bc50914237807
   
   ```
   erl_child_setup program ignores TERM signals as of ERTS version
   10.0 (cff8dce). This setting was unfortunately inherited by
   port programs. This commit restores handling of TERM signals
   in port programs to the default behavior. That is, terminate the
   process.
   ```
   
   🤔 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to