Pango causing mod_wsgi to crash - Segmentation fault (11)

25 views
Skip to first unread message

pbzRPA

unread,
Oct 15, 2011, 4:20:00 PM10/15/11
to Django users, klj...@interia.pl
Hi

I was wondering if anyone had a similar problem when trying to use
pango in django running under mod_wsgi on apache.

I am running

|20:11:06|# cat /etc/debian_version
6.0.3

When I run a runserver on the same server it works fine but the moment
I "import pango" in any of my modules the mod_wsgi apache server
raises a 500 error.

I did the whole installation using apt-get and installed pygtk.

I would appreciate any help to try and debug this issue. The only
thing in my apache error.log is :

child pid 3642 exit signal Segmentation fault (11)

Thanks

Florian Apolloner

unread,
Oct 16, 2011, 12:26:40 PM10/16/11
to django...@googlegroups.com, klj...@interia.pl
Increase debug level and make sure to read the debugging docs on modwsgi.org; then you can hopefully provide more info, so we can actually help.

Cheers,
Florian

P.S.: Btw telling us which versions you use exactly would help too

pbzRPA

unread,
Oct 16, 2011, 12:59:04 PM10/16/11
to Django users
Hi Florian,

I have been working on the problem the whole weekend and after trying
all the mog_wsgi debugging method I still do not have a solution. I do
know that the error does not lie in my django code or my apache
configuration as I did the exact setup on a ubuntu machine and it
works 100%. It seems to be a problem with GTK2 on debian.

What version numbers do you need?

~$ dpkg -l | grep "apache"
ii apache2 2.2.16-6+squeeze4
Apache HTTP Server metapackage
ii apache2-mpm-worker 2.2.16-6+squeeze4
Apache HTTP Server - high speed threaded model
ii apache2-prefork-dev 2.2.16-6+squeeze4
Apache development headers - non-threaded MPM
ii apache2-utils 2.2.16-6+squeeze4
utility programs for webservers
ii apache2.2-bin 2.2.16-6+squeeze4
Apache HTTP Server common binary files
ii apache2.2-common 2.2.16-6+squeeze4
Apache HTTP Server common files
ii libapache2-mod-fcgid 1:2.3.6-1 an
alternative module compat with mod_fastcgi
ii libapache2-mod-wsgi 3.3-2
Python WSGI adapter module for Apache

|~$(127) dpkg -l | grep "gtk"
ii libgtk2.0-0 2.20.1-2
The GTK+ graphical user interface library
ii libgtk2.0-bin 2.20.1-2
The programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.20.1-2
Common files for the GTK+ graphical user interface library
rc libwxgtk2.8-0 2.8.10.1-3+b1
wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii python-gtk2 2.17.0-4
Python bindings for the GTK+ widget set

~$ dpkg -l | grep "python"
ii ipython 0.10-2
enhanced interactive Python shell
ii libgv-python 2.26.3-5
Python bindings for graphviz
ii libpython2.6 2.6.6-8+b1
Shared Python runtime library (version 2.6)
ii python 2.6.6-3+squeeze6
interactive high-level object-oriented language (default version)
ii python-cairo 1.8.8-1+b1
Python bindings for the Cairo vector graphics library
ii python-central 0.6.16+nmu1
register and build utility for Python packages
ii python-dateutil 1.4.1-3
powerful extensions to the standard datetime module
rc python-django 1.2.3-3+squeeze1
High-level Python web development framework
ii python-flup 1.0.2-1
Implements Python Web Server Gateway Interface (WSGI)
ii python-genshi 0.6-1
Python XML-based template engine
ii python-gobject 2.21.4+is.2.21.3-1
Python bindings for the GObject library
ii python-gtk2 2.17.0-4
Python bindings for the GTK+ widget set
ii python-imaging 1.1.7-2
Python Imaging Library
ii python-magic 5.04-5
File type determination library using "magic" numbers (Python
bindings)
rc python-matplotlib-data 0.99.3-1
Python based plotting system (data package)
ii python-minimal 2.6.6-3+squeeze6
minimal subset of the Python language (default version)
ii python-mysqldb 1.2.2-10+b1 A
Python interface to MySQL
ii python-numpy 1:1.4.1-5
Numerical Python adds a fast array facility to the Python language
ii python-openssl 0.10-1
Python wrapper around the OpenSSL library
ii python-pam 0.4.2-12.2 A
Python interface to the PAM library
ii python-pexpect 2.3-1
Python module for automating interactive applications
ii python-pkg-resources 0.6.14-4
Package Discovery and Resource Access using pkg_resources
rc python-pygments 1.3.1+dfsg-1
syntax highlighting package written in Python
ii python-pygraphviz 1.0-1
Python interface to the Graphviz graph layout and visualization
package
ii python-serial 2.3-1
pyserial - module encapsulating access for the serial port
ii python-setuptools 0.6.14-4
Python Distutils Enhancements (setuptools compatibility)
rc python-subversion 1.6.12dfsg-6
Python bindings for Subversion
ii python-support 1.0.10
automated rebuilding support for Python modules
ii python-twisted-bin 10.1.0-3
Event-based framework for internet applications
ii python-twisted-core 10.1.0-3
Event-based framework for internet applications
ii python-twisted-names 10.1.0-1 A
DNS protocol implementation with client and server
ii python-twisted-web 10.1.0-1 An
HTTP protocol implementation together with clients and servers
ii python-webpy 1:0.34-2
Web framework for Python applications
rc python-wxtools 2.8.10.1-3
wxWidgets Cross-platform C++ GUI toolkit (wxPython common files)
ii python-zope.interface 3.5.3-1+b1
Interfaces for Python
rc python2.5 2.5.5-11 An
interactive high-level object-oriented language (version 2.5)
rc python2.5-minimal 2.5.5-11 A
minimal subset of the Python language (version 2.5)
ii python2.6 2.6.6-8+b1 An
interactive high-level object-oriented language (version 2.6)
ii python2.6-minimal 2.6.6-8+b1 A
minimal subset of the Python language (version 2.6)

I did report this om the modwsgi group aswell if you are interested in
reading what was done there.
https://groups.google.com/group/modwsgi/browse_thread/thread/3cdf9f77b1ce6284?hl=en

Hope that helps. :)
Reply all
Reply to author
Forward
0 new messages