Thanks, sometimes one needs just two proper words to feed Google.
I e.g. found this one: Script crashes when parsing XML But the hints found there (to replace Thread with threads and use safe_parsefile) didn't help. Still "Free to wrong pool..." error. And on other forums this error msg is unanswered as well. I'll keep digging, though.