svn diff
Index: src/exceptions.c
===================================================================
--- src/exceptions.c	(revision 7925)
+++ src/exceptions.c	(working copy)
@@ -53,6 +53,8 @@
     va_start(arglist, format);
     vfprintf(stderr, format, arglist);
     fprintf(stderr, "\n");
+    /* caution against output swap (with PDB_backtrace) */
+    fflush(stderr);
     va_end(arglist);
     Parrot_exit(exitcode);
 }
@@ -269,6 +271,8 @@
     }
     if (m)
         string_cstring_free(m);
+    /* caution against output swap (with PDB_backtrace) */
+    fflush(stderr);
     if (print_location)
         PDB_backtrace(interpreter);
     /*
