Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830526 - =www-apache/mod_wsgi-4.7.1-r1 causes segfaults with mercurial server
Summary: =www-apache/mod_wsgi-4.7.1-r1 causes segfaults with mercurial server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 831061
Blocks:
  Show dependency tree
 
Reported: 2022-01-03 11:39 UTC by Gabriel
Modified: 2022-06-19 06:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of `emerge --info` (emerge.info.txt,5.56 KB, text/plain)
2022-01-03 11:42 UTC, Gabriel
Details
backtrace (backtrace.log,4.07 KB, text/plain)
2022-01-06 00:39 UTC, rpimonitrbtch
Details
emerge --info to accompany the backtrace (emerge.info,5.51 KB, text/plain)
2022-01-06 00:44 UTC, rpimonitrbtch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel 2022-01-03 11:39:59 UTC
What the summary says, python version used was 3.9 and there was nothing interesting to see in the logs, which was:
[core:notice] [pid 28230:tid 139632084309376] AH00052: child pid 28432 exit signal Segmentation fault (11)

I tried to go back to 4.7.1, but didn't complete the test as I needed mercurial in python 3.8 as well; time constraints pushed me to add the ~amd64 keyword to 4.9.0, where things work just fine.

I also asked in #gentoo if anybody was experiencing this, but I suspect that I might be one of a select group who run the mercurial server in Gentoo, so got no answer.

I am reporting this for the record and in case somebody else bumps into the same issue. I doubt I'll be able to run any more tests in this case.
Perhaps it's time to stabilise 4.9.0?
Comment 1 Gabriel 2022-01-03 11:42:30 UTC
Created attachment 761190 [details]
Output of `emerge --info`

Last thoughts: I did forget in this instance to try compiling with -O2, perhaps this is worth trying for anybody else who bumps into this.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2022-01-03 12:06:50 UTC
Now that the need for a mod_wsgi that supports has been addressed with 4.9.0, it might make more sense to just remove 4.7.1-r1.
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2022-01-03 12:07:51 UTC
Supports 3.10, that is.

It is too early to stabilize 4.9.0, since that only entered the tree recently.
Comment 4 rpimonitrbtch 2022-01-06 00:39:40 UTC
Created attachment 761386 [details]
backtrace

Looks like it goes beyond mercurial. Getting the same crashes with a "hello world" script, and seeing them fixed on 4.9
Comment 5 rpimonitrbtch 2022-01-06 00:44:14 UTC
Created attachment 761387 [details]
emerge --info to accompany the backtrace

-O2 didn't help in my case
Comment 6 Bill Binder 2022-01-06 13:22:54 UTC
hgweb is working for me, but all my wep apps using dev-python/bottle-0.12.19 (on a local apache server) started segfaulting since ww-apache/mod_wsgi-4.7.1-r1 was rebuilt on 2022-01-03. They had been fine since June last year with this version of mod_wsgi.

It seems to be 10 of the mpm_prefork threads segfault at the same moment.

Everything is working again with www-apache/mod_wsgi-4.9.0
Comment 7 Bill Binder 2022-01-06 13:28:54 UTC
So I checked, and turns out I'm using hgweb.cgi rather than hgweb.wsgi.
Comment 8 Maksym Sditanov 2022-01-11 00:35:53 UTC
Confirm from my side, 

this segfault present with python 3.9, apache 2.4.52 and mod_wsgi 4.7.1-r1. 
It ALWAYS segfault even on hello-world python script. 

With mod_wsgi 4.9.0 no crash with hello world and with production code on servers.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-11 00:47:50 UTC
(In reply to Dirkjan Ochtman from comment #3)
> Supports 3.10, that is.
> 
> It is too early to stabilize 4.9.0, since that only entered the tree
> recently.

If 4.9.0 fixes a lot of regressions, it's fine to stable it, and better than leaving stable broken if that's the status quo (but not aware of the background here).
Comment 10 Gabriel 2022-01-11 16:07:12 UTC
For reference, we have 2 stable versions:
- One works but requires python 3.8
- The -r1 one that's broken as per this bug
The unstable version fixes everything.
And because I'm not a Gentoo developer/security/staff/etc., I can say that I would stabilise, but it's up to you folks. Rules are rules after all :-)
Comment 11 Dirkjan Ochtman (RETIRED) gentoo-dev 2022-01-12 08:42:56 UTC
I've reverted the buggy changes in 4.7.1-r1 and requested stabilization for 4.9.0 in bug 831061.