Skip Menu |

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 61946
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

Owner: cpan [...]
Requestors: kallies [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Ran into unknown state (hex char: 29)
Date: Wed, 06 Oct 2010 23:40:02 +0200
To: bug-Proc-ProcessTable [...]
From: Bernd Kallies <kallies [...]>
Download (untitled) / with headers
text/plain 911b
On our current systems running Linux Proc::ProcessTable-0.45 warns about "Ran into unknown state (hex char: 29)" for a number of processes. The corresponding process properties are undefined, including the pid. It turns out that this is due to the comm field in /proc/[pid]/stat, which may contain additional braces. In our case the comm field reads like e.g. "(ib_fmr(mlx4_0))". This breaks the parser code in Linux.c:get_proc_stat(). The problem should be fixed by changing the call to strchr at line 320 into strrchr, which works around the assumption that file names of executables don't contain braces. I hope it is OK that I don't attach a patch for this, since the source code change consists of one single character, only. -- Dr. Bernd Kallies Konrad-Zuse-Zentrum für Informationstechnik Berlin Takustr. 7 14195 Berlin Tel: +49-30-84185-270 Fax: +49-30-84185-311 e-mail:
fixed in github repository.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to