[uWSGI] [Fixed] python on debian arm (raspberrypi and sheevaplug)

Roberto De Ioris roberto at unbit.it
Fri Oct 11 04:57:22 CEST 2013

When building uWSGI >= 1.4 on debian arm (most notably on raspberrypi and
sheevaplug) with the python plugin embedded you got:

Fatal Python error: exceptions bootstrapping error.

or a general segfault with python3

This has been reported more than one year ago, but only now i have been
able to correctly catch it.

The problem is caused by a buf of the python debian package with the
Py_ENABLE_SHARED value that is reported as 0 even if python is built with
--enable-shared (there is a bug-report for debian of decembr 2012)

The problem is that uWSGI >= 1.4 can be compiled with a python static
library too and contains a workaround for heroku systems that caused a .so
object to be linked instead of libpythonXXX.a.

Giving precedence to the .a variant fixed both the python initialization
error and the segfault

The patch will be in 1.9.18 release (still a couple of hours before
official release)

Roberto De Ioris

More information about the uWSGI mailing list