Mailing List Archive

Apache Segfaults with 1.5.4 on Ubuntu 22.04
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

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/98ccee1c-4a1a-4110-8c2a-e21a860c07b6n%40googlegroups.com.
Re: Apache Segfaults with 1.5.4 on Ubuntu 22.04 [ In reply to ]
On Thu, May 4, 2023 at 2:27?AM Steven Ellis <steven.ellis@gmail.com> wrote:
>
> 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

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 <jun66j5@gmail.com> (?? ?)

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/CAEVLMajbDN%3D3w4iTCTTVRYAGhUOo1oEzu9v9ej0EEOupin%2B9tg%40mail.gmail.com.
Re: Apache Segfaults with 1.5.4 on Ubuntu 22.04 [ In reply to ]
Thanks for the tip. I've switched my configuration over and I'm no longer
seeing the segfaults.

On Thursday, 4 May 2023 at 06:39:23 UTC+12 Jun Omae wrote:

> On Thu, May 4, 2023 at 2:27?AM Steven Ellis <steven...@gmail.com> wrote:
> >
> > 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
>
> 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> (?? ?)
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/2e73a978-4e81-4c95-9543-4ea6c64d4169n%40googlegroups.com.