You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The length of found is set based on the length of the old variable. In some edge cases the id value can be equal to the length of found, but since found is 0-based as an array that causes the index out of range panic.
I've merged this fix into my branch, which identifies when the panic conditions are present and uses append() to append the values to the end of found instead of inserting into an invalid index.
if id >= len(old) {
log.Errorf("ID is out of bounds. Old len: %v, ID: %v", len(old), id)
found = append(found, p.PID)
} else {
found[id] = p.PID
}
I'll get a PR generated in the next few days against this repo.
I have installed passenger_exporter on ubuntu 16.04 system and the process kills itself after some random time.
The text was updated successfully, but these errors were encountered: