|
From: <sv...@va...> - 2009-06-09 22:46:47
|
Author: njn
Date: 2009-06-09 23:46:32 +0100 (Tue, 09 Jun 2009)
New Revision: 10285
Log:
Avoid recursion in VG_(exit).
Modified:
trunk/coregrind/m_libcassert.c
Modified: trunk/coregrind/m_libcassert.c
===================================================================
--- trunk/coregrind/m_libcassert.c 2009-06-09 22:31:00 UTC (rev 10284)
+++ trunk/coregrind/m_libcassert.c 2009-06-09 22:46:32 UTC (rev 10285)
@@ -107,7 +107,10 @@
# error Unknown OS
#endif
/*NOTREACHED*/
- VG_(core_panic)("VG_(exit) didn't work?");
+ // We really shouldn't reach here. Just in case we do, use some very crude
+ // methods to force abort
+ __builtin_trap();
+ *(volatile Int*)0 = 'x';
}
// Print the scheduler status.
|