fluent / sigdump

Use signal to show stacktrace of a Ruby process without restarting it
Apache License 2.0
188 stars 27 forks source link

Validate if `thread.backtrace` is not nil #8

Closed yui-knk closed 7 years ago

yui-knk commented 8 years ago

Becuase in MRI Thread#backtrace returns Array or nil, check if thread.backtrace is not nil to avoid NoMethodError: undefined methodeach' for nil:NilClass`

ref: https://github.com/ruby/ruby/blob/v2_3_1/vm_backtrace.c#L894-L895

frsyuki commented 7 years ago

👍

yui-knk commented 7 years ago

Thx :)