Red Hat Bugzilla – Bug 491508
"Utrace:" line in /proc/$pid/status has unusual format, breaks parsing in yum
Last modified: 2009-03-24 05:11:09 EDT
Description of problem:
All lines in /proc/$pid/status use a colon and a tab to separate the key from value(s). The only exception in the "Utrace: " line which uses a space instead of the tab.
This breaks yum's show_lock_owner function which parses this file and expects the key/value separator to be ':\t'.
yum could be made more robust here, but it's better if the kernel keeps the format of the lines consistent, because who knows what other software may have the same expectation.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Look at /proc/self/status with a hex editor
2. See the "Utrace: " line.
The character after the colon is a space (0x20).
The character after the colon should be a tab (0x9).
The faulty line is printed in kernel/utrace.c:task_utrace_proc_status(), it comes from linux-2.6-utrace.patch.
Should be fixed in the next rawhide kernel build.
*** Bug 491482 has been marked as a duplicate of this bug. ***
It works now. Thanks.