Seems to be somewhere in the curl backend, gdb backtrace would be helpful.
B-ZaR, I suggest setting pndman_set_color(0); since it makes pnd.out look not fun.
(or better, log the messages to seperate log file yourself with the hooks.)
Also, I'm suprised there are still invalid XML's...