[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    Re: [Trac] Apache Segfaults with 1.5.4 on Ubuntu 22.04
From:       Steven Ellis <steven.ellis () gmail ! com>
Date:       2023-05-04 4:56:39
Message-ID: 2e73a978-4e81-4c95-9543-4ea6c64d4169n () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.



[Attachment #5 (text/html)]

Thanks for the tip. I've switched my configuration over and I'm no longer seeing the \
segfaults.<br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">On \
Thursday, 4 May 2023 at 06:39:23 UTC+12 Jun Omae wrote:<br/></div><blockquote \
class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, \
204); padding-left: 1ex;">On Thu, May 4, 2023 at 2:27 AM Steven Ellis &lt;<a href \
data-email-masked rel="nofollow">steven...@gmail.com</a>&gt; wrote: <br>&gt;
<br>&gt; Moving this conversation over from the dev-list
<br>&gt;
<br>&gt; I&#39;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. \
<br>&gt; <br>&gt; I&#39;m seeing a number of segfaults when I&#39;m modifying \
existing tickets <br>&gt;
<br>&gt; [Tue May 02 15:23:46.436233 2023] [core:notice] [pid 591] AH00052: child pid \
602 exit signal Segmentation fault (11) <br>&gt;
<br>&gt; Trac was install under Python 3.10 using pip as per the install notes and \
the existing Trac environments we&#39;re upgraded. Everything is front-ended via \
Apache and I use sqlite backed with no additional plugins. <br>&gt;
<br>&gt; Overall Ubuntu install is fairly generic, and  my base configuring for \
apache is <br>&gt;
<br>&gt;         SetHandler mod_python
<br>&gt;         Require all granted
<br>&gt;         PythonHandler trac.web.modpython_frontend
<br>&gt;         PythonOption TracEnvParentDir /var/trac
<br>&gt;         PythonOption TracUriRoot /
<br>&gt;         PythonOption PYTHON_EGG_CACHE /var/trac/.cache
<br>&gt;         PythonOption TracLocale en_US.UTF8
<br>&gt;
<br>&gt; I do have one other odd error apache due to a python packaging issue on \
22.04 <br>&gt;
<br>&gt; /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 <br>&gt;   warnings.warn(
<br>&gt;
<br>&gt; I&#39;d appreciate any additional pointers to help debug this as I&#39;m not \
seeing a lot in my apache logs other than Segfaults. <br>&gt;
<br>&gt; Steven
<br>
<br>I recommend to use mod_wsgi instead of mod_python. Also, mod_python
<br>with Python 3.9+ appears to be buggy, according to
<br><a href="https://github.com/grisha/mod_python/issues" target="_blank" \
rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&amp;q=https:/ \
/github.com/grisha/mod_python/issues&amp;source=gmail&amp;ust=1683262575954000&amp;usg=AOvVaw1PN9iO1EhNqEyxHQ6TJ1Zq">https://github.com/grisha/mod_python/issues</a> \
or Ubuntu bug tracker. <br>
<br>Please report it to <a href="https://github.com/grisha/mod_python/issues" \
target="_blank" rel="nofollow" \
data-saferedirecturl="https://www.google.com/url?hl=en-GB&amp;q=https://github.com/gri \
sha/mod_python/issues&amp;source=gmail&amp;ust=1683262575954000&amp;usg=AOvVaw1PN9iO1EhNqEyxHQ6TJ1Zq">https://github.com/grisha/mod_python/issues</a> \
with <br>backtrace of the core dump.
<br>
<br>-- 
<br>Jun Omae &lt;<a href data-email-masked rel="nofollow">jun...@gmail.com</a>&gt; \
(大前 潤) <br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/2e73a978-4e81-4c95-9543-4ea6c64d416 \
9n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/ \
msgid/trac-users/2e73a978-4e81-4c95-9543-4ea6c64d4169n%40googlegroups.com</a>.<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic