Permalink
Browse files

Finally fixed the 64bit segfault on big-endian architectures in non-t…

…racing mode
  • Loading branch information...
1 parent 7b93e7e commit da8d68f1f9a6b0f70e493d706784ef9541857608 @mitsuhiko mitsuhiko committed Oct 17, 2010
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES
  2. +1 −1 jinja2/debug.py
View
2 CHANGES
@@ -6,6 +6,8 @@ Version 2.5.4
(bugfix release, release date to be announced)
- Fixed extensions not loading properly with overlays.
+- Work around a bug in cpython for the debugger that causes segfaults
+ on 64bit big-endian architectures.
Version 2.5.3
-------------
View
2 jinja2/debug.py
@@ -259,7 +259,7 @@ class _PyObject(ctypes.Structure):
]
# python with trace
- if object.__basicsize__ != ctypes.sizeof(_PyObject):
+ if hasattr(sys, 'getobjects'):
class _PyObject(ctypes.Structure):
pass
_PyObject._fields_ = [

0 comments on commit da8d68f

Please sign in to comment.