Description of problem: top doesn't show all threads if using pid option and turn on show threads interactively, where it works just fine if using the command line option to turn threads Version-Release number of selected component (if applicable): broken in fc11 3.2.7 and rawhide 3.2.28 How reproducible: easy Steps to Reproduce: 1. find a threaded app pid=$( ps -e -o 'nlwp pid' | sort -n | awk '{ print $2 }' | tail -1 ) 2. run top with that pid with "show threads" from command line top -p $pid -H 3. run top with that pid with "show threads" turn on after it's started top -p (while running type "H") Actual results: the threads enter one by one, on refresh Expected results: all threads show up immediately
Created attachment 363318 [details] proposed patch hello, after a bit of investigation I found a solution to this issue. I can include this in rawhide and let's also see what the upstream says about it...
Created attachment 363809 [details] new version of the patch unfortunately, I found that the first version of the patch introduces a little memory leak, so I have to enhance it a bit.
fixed in rawhide: procps-3.2.8-3.fc13