This bug bit me when I tried to call adduser from within samba. (Obviously, I didn't do it right, but still an endless loop seems too hard a punishment for me...). A simpler way to reproduce is: adduser foo < /dev/null