Project

General

Profile

Actions

Bug #350

closed

pfiles crashes when inspecting itself

Added by Rich Lowe over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
2010-10-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

As filed long ago with Sun, pfiles will crash in getflock() if caused to inspect itself, thanks to assuming that the Pstatus(Pr) will return non-NULL.

cd /proc; pfiles *

In the case where Pr is NULL it should skip the word-size logic, since in that case we're looking at ourselves, and it can't help but match.

Note that, if testing in the above manner, pfiles will also wedge if it ecounters a smbd, it seems to block forever attempting to grab it, a separate bug which I'm still trying to gather sufficient info about to record.

Actions #1

Updated by Garrett D'Amore over 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Fixed in f5d04b62b0f0

Actions

Also available in: Atom PDF