Author: Armin Rigo <ar...@tunes.org>
Branch: stm-gc
Changeset: r52656:8c8b4968177b
Date: 2012-02-19 21:03 +0100
http://bitbucket.org/pypy/pypy/changeset/8c8b4968177b/

Log:    Bah, the problem was not about the 'traceback' argument. Proper fix.

diff --git a/pypy/rlib/debug.py b/pypy/rlib/debug.py
--- a/pypy/rlib/debug.py
+++ b/pypy/rlib/debug.py
@@ -20,11 +20,13 @@
         hop.genop('debug_assert', vlist)
 
 def fatalerror(msg):
+    # print the RPython traceback and abort with a fatal error
     from pypy.rpython.lltypesystem import lltype
     from pypy.rpython.lltypesystem.lloperation import llop
     llop.debug_print_traceback(lltype.Void)
     llop.debug_fatalerror(lltype.Void, msg)
 fatalerror._dont_inline_ = True
+fatalerror._annenforceargs_ = [str]
 
 def fatalerror_notb(msg):
     # a variant of fatalerror() that doesn't print the RPython traceback
@@ -32,6 +34,7 @@
     from pypy.rpython.lltypesystem.lloperation import llop
     llop.debug_fatalerror(lltype.Void, msg)
 fatalerror_notb._dont_inline_ = True
+fatalerror_notb._annenforceargs_ = [str]
 
 
 class DebugLog(list):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to