in reply to Debugging forking perl script? GDB?

So is it a fork bomb or is it a fork bomb? Is it swapping?
  • Comment on Re: Debugging forking perl script? GDB?

Replies are listed 'Best First'.
Re^2: Debugging forking perl script? GDB?
by cavac (Prior) on Nov 18, 2019 at 13:40 UTC

    No fork bomb. Just sometimes one of the children decides to loop forever somewhere...

    perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

      Include the PID and workload information (request url, rpc method name, queue item details, etc) in your logs along with start/end timestamps for processing the work.

      You can then look up the PID in the logs and find out what that pesky pegged worker is up to.