This appears to be a duplicate of bug #50791. I have posted an explanation attempt there which may or may not be correct. -- kdesu fails when invoked immediately after sudo from terminal https://launchpad.net/bugs/72545