Comment 18 for bug 805423

Till Klampaeckel (till-php) wrote :

Hey,

I tried your code:

1. $USER doesn't seem to be set in this context so it runs regardless. ;-) At least it doesn't seem to be set during the login.

2. Whenever I add strace, it magically works – without, it defuncts.

I looked around further and it took me a while to figure this out – so the offending code in my case is in here:
/usr/lib/python2.6/dist-packages/landscape/lib/sysstats.py

and imports getProcessOutputAndValue from here:
/usr/share/pyshared/twisted/internet/utils.py

I couldn't figure out how this would block, but essentially it looks like you could pass callbacks to the function which is currently not happending.

I was wondering if there is a way to debug this in Python. E.g. my skills are currently limited to putting "print" into files. But that doesn't work to well. ;-)

Till