Apache Segfaults with 1.5.4 on Ubuntu 22.04

21 views
Skip to first unread message

Steven Ellis

unread,
May 3, 2023, 1:27:43 PM5/3/23
to Trac Users
Moving this conversation over from the dev-list

I've been using Trac for many many years and as part of upgrading to Ubuntu 22.04 I migrated my Trac 1.4 environment to the latest 1.5.4 Dev release.

I'm seeing a number of segfaults when I'm modifying existing tickets

[Tue May 02 15:23:46.436233 2023] [core:notice] [pid 591] AH00052: child pid 602 exit signal Segmentation fault (11)

Trac was install under Python 3.10 using pip as per the install notes and the existing Trac environments we're upgraded. Everything is front-ended via Apache and I use sqlite backed with no additional plugins.

Overall Ubuntu install is fairly generic, and  my base configuring for apache is

        SetHandler mod_python
        Require all granted
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnvParentDir /var/trac
        PythonOption TracUriRoot /
        PythonOption PYTHON_EGG_CACHE /var/trac/.cache
        PythonOption TracLocale en_US.UTF8

I do have one other odd error apache due to a python packaging issue on 22.04

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(

I'd appreciate any additional pointers to help debug this as I'm not seeing a lot in my apache logs other than Segfaults.

Steven

Jun Omae

unread,
May 3, 2023, 2:39:23 PM5/3/23
to trac-...@googlegroups.com
I recommend to use mod_wsgi instead of mod_python. Also, mod_python
with Python 3.9+ appears to be buggy, according to
https://github.com/grisha/mod_python/issues or Ubuntu bug tracker.

Please report it to https://github.com/grisha/mod_python/issues with
backtrace of the core dump.

--
Jun Omae <jun...@gmail.com> (大前 潤)

Steven Ellis

unread,
May 4, 2023, 7:31:44 AM5/4/23
to Trac Users
Thanks for the tip. I've switched my configuration over and I'm no longer seeing the segfaults.
Reply all
Reply to author
Forward
0 new messages