An important fix has been committed to the ptlib SVN to fix a bug in windows where nonAutoDelete threads where autoDeleting causing strange segfault at the end of a call.
If you are experiencing the issue please apply this patch.
Thanks to Josh Mercier for debugging this and getting it fixed in ptlib.
Simon