Skip to content
This repository
Browse code

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

…racing mode
  • Loading branch information...
commit da8d68f1f9a6b0f70e493d706784ef9541857608 1 parent 7b93e7e
Armin Ronacher authored

Showing 2 changed files with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 0  CHANGES
  2. +1 1  jinja2/debug.py
2  CHANGES
@@ -6,6 +6,8 @@ Version 2.5.4
6 6 (bugfix release, release date to be announced)
7 7
8 8 - Fixed extensions not loading properly with overlays.
  9 +- Work around a bug in cpython for the debugger that causes segfaults
  10 + on 64bit big-endian architectures.
9 11
10 12 Version 2.5.3
11 13 -------------
2  jinja2/debug.py
@@ -259,7 +259,7 @@ class _PyObject(ctypes.Structure):
259 259 ]
260 260
261 261 # python with trace
262   - if object.__basicsize__ != ctypes.sizeof(_PyObject):
  262 + if hasattr(sys, 'getobjects'):
263 263 class _PyObject(ctypes.Structure):
264 264 pass
265 265 _PyObject._fields_ = [

0 comments on commit da8d68f

Please sign in to comment.
Something went wrong with that request. Please try again.