#325 Print more info about hanging processes
Closed: Dropped by tkopecek. Opened by tkopecek.

When some process is killed via koji, there is very little info which can be investigated later. Maybe we can print some more info about these processes instead of just PID (arg[0], ...)

WARNING util.py:116:  Process ID 1250 still running in chroot. Killing...
WARNING util.py:116:  Process ID 3952 still running in chroot. Killing...

Another proposal: ps axjf filtered to just the tasks in the chroot (descendents of the rpmbuild) would be indeed very useful

Reference shell code for printing process subtree:

1
2
3
4
5
6
7
8
#!/bin/sh
pids=$1
allpids=
while [ -n "$pids" ]; do
  allpids=${allpids:+${allpids},}$pids
  pids=$(echo `ps -h -o pid --ppid=$pids | sed 's/ //g'` | sed 's/ /,/g')
done
ps -j -f --pid=$allpids

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue close_status updated to: Dropped
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/325

Please continue any further discussion there.

Metadata