- Package:
- apache2-mpm-event
- Source:
- apache2
- Submitter:
- lkcl
- Date:
- 2025-08-01 21:27:02 UTC
- Severity:
- important
- Tags:
i have a slightly off-the-beaten-track setup on a live-running i386 (not amd64) server which has (had) apache-mpm-event activated using the standard debian configuration for that module. there was (is) absolutely NO threading modules enabled or in use with the exception of google's mod_pagespeed, where the developers inform me that they do regular testing of mod_pagespeed in both the mpm-event and mpm-worker configuration the modules utilised for the main web serving are mod-fcgid (WSGI) and standard CGI-bin for running PGP (not the normal way to do it but it works very well with mpm_worker and mpm_event). the FCGI application is a python2.7 WSGI web service NOT USING ANY FRAMEWORK. it uses absolutely standard python 2.7 modules that come *with* python, such as the cgi module and other standard HTML-parsing and processing modules, where absolutely no use of threading is made whatsover. mysql access is performed with python-mysqldb, and, again, does not use any threading of any kind. unfortunately it is not... convenient... to do experimentation on the live server. this is more of an "informational" report that "Something Bad Happened" - apache2 segfaulted and left the customer completely without service... twice.... and switching off apache2-mpm-event and going back to apache2-mpm-prefork "solved" the problem. it's also worth noting that absolutely no problems whatsoever have been noted with prefork. stable as a rock, both before mod_pagespeed was deployed and after.
ok so a little more info here: the segfault occurs *directly* after a logrotate-inspired signal is received. [Sat Aug 19 06:25:37.746265 2017] [mpm_event:notice] [pid 21345:tid 3074504512] AH00493: SIGUSR1 received. Doing graceful restart [Sat Aug 19 06:25:39.647852 2017] [core:notice] [pid 21345] AH00060: seg fault or similar nasty error detected in the parent process an attempt to get more information by using mod_pagespeed's crash handler *failed*. one of the developers mentioned that there's an option to get stack trace output put into the error logs, but bizarrely (no explanation yet) we got.... absolutely no output when the segfault occurred: just the standard apache2 AH00060 notice. this is all very strange.... and i can't keep risking a live-running client's system by using unstable software. so, apologies, i'm going to have to return to using mpm_prefork (i.e. can't risk doing further tests with mpm_event on the live system). performance was *significantly* degraded around the time of the segfault.
Apparently this can be caused by something like logrotate sending many "reload" signals to apache in quick succession: <https://access.redhat.com/solutions/2626601> I experienced such an apache crash this morning when the logs were rotated. I've now adjusted my logrotate config to only reload apache once (despite many sections for different web site's logs, some of which have specifically different user/group settings for the files) and will see if that avoids another crash tomorrow.
mpm-event based apache has now survived two nightly runs of logrotate doing '/etc/init.d/apache2 reload' since I ensured it will only do that once per run. So what is it about mpm-event that causes apache2 to crash when multiple '/etc/init.d/apache2 reload' invocations happen in very quick succession ? Smells like an upstream bug, yes ? Not that I can seem to reproduce this with: COUNT=1 ; while [ $COUNT -lt 80 ] ; do ( /etc/init.d/apache2 reload &); COUNT=`expr $COUNT + 1` ; done Perhaps it's not just the rapid reloads, but combining those with needing to create new log files ? Although it does leave me with only processes like: /usr/sbin/apache2 -k graceful running, rather than the more usual: /usr/sbin/apache2 -k start And some instances of the init.d script complaining "Apache2 is not running" on subsequent invocations.
Laba diena, Noriu Jus informuoti apie šių metų pasikeitimą dėl atnaujintos visos Lietuvos įmonių bazės 2018 metų sausio vidurio. Visi juridiniai asmenys pateikti bazėje yra veikiantys, realiai vykdantys veiklą, turintys įdarbintų darbuotojų. Duomenys pagal Sodrą, Registrų centrą. Bazėje nurodoma ir apyvarta, darbuotojų atlyginimai, darbuotojų skaičius, transporto skaičius ir daug kitų duomenų, kuriuos matysite pavyzdyje. Duomenis galima filtruoti pagal veiklas, miestus ir kitus duomenis. Šią bazę verta turėti visoms įmonėms. Pateiksiu priežastis: 1) Kontaktai pateikti bazėje direktorių ir kitų atsakingų asmenų, didelė tikimybė Jums surasti naujų klientų, partnerių, tiekėjų, kai tiesiogiai bendrausite su direktoriais, komercijos vadovais. 2) Konkurentų analizavimas, tiekėjų atsirinkimas pagal Jums reikalingus kriterijus, galite atsifiltruoti pagal įmonės dydį, bazėje nurodoma kiek įmonės skolingos Sodrai. 3) Lengva, greita ir patogu dirbti su šia baze, elektroninius pašto adresus galite importuoti į elektroninių laiškų siuntimo programas ar sistemas iš kurių siunčiate elektroninius laiškus. Taip pat galite importuoti mobiliųjų telefonų numerius į SMS siuntimo programas. Išsirinkite iš "Veiklų sąrašo" veiklas kurių Jums reikia. ( Sąrašas prisegtas laiške excel faile ) Parašykite, kurias veiklas išsirinkote ir atsiųsime pavyzdį ir pasiūlymą su sąlygomis įmonių bazei įsigyti Pagarbiai, Tadas Giedraitis Tel. nr. +37067881041
This sounds a lot like https://bugzilla.redhat.com/show_bug.cgi?id=1376835 which includes a potential patch (unfortunately no indication if this got upstreamed, or whether it's reproducible with newer Apache releases).
In case that helps, I just noticed a similar error.
I have a maintenance script that
- modifies a config file to put the application in maintenance mode
- systemctl reload apache2
- performs database maintenance
- sets the old config back
- systemctl reload apache2
When using this on a new installation where the DB is empty, the
maintenance task takes an instant, and the script basically does
systemctl reload apache2; systemctl reload apache2
which is enough to reproduce the crash.
Jeremy Stanley wrote:
This bug report reads :
However, I'm using Debian Stretch's 2.4.25-3+deb9u6 so AFAIU, this
should include the patch.
Unless there is something specific to my configuration, the issue can be
easily reproduced with
systemctl reload apache2; systemctl reload apache2
When adding a sleep of a few hundreds milliseconds in between, the crash
does not happen.
Also worth noting that despite the error message, apache is up and
running at the end of the process, so AFAICT, this is just noise in the
logs.
Hello, Our partners referred your company to us. Regarding your great products. Please see required products, quantity and specifications as attached. Kindly give us your lowest possible prices for FCL shipment. Best Regards, Wanda Rodriguez Purchase Assistant Hidroconta Trading Ltd. Av. de Sta. Catalina, 60, 30012 Murcia, Spain Phone: +34 968 26 77 66 Fax: +34 968 26 77 06
Good day, My associate from China wants to discuss a business investment deal with you. I awaiting your response to enable us discuss about this business investment Nael M. Al Homoud Executive Director & High Investment Committee Member@ The Arab Investment Co www.taic.com [1] Links: ------ [1] http://www.taic.com
Dzień dobry, kontaktuję się z Państwem, ponieważ dostrzegam możliwość redukcji opłat za prąd. Odpowiednio dobrana instalacja fotowoltaiczna to rozwiązanie, które pozwala wygenerować spore oszczędności w skali roku. Chciałbym porozmawiać z Państwem o tego typu rozwiązaniu, a także przedstawić wstępne kalkulacje. Czy są Państwo zainteresowani? Pozdrawiam, Dorian Kwiatkowski
Dzień dobry, jakiś czas temu zgłosiła się do nas firma, której strona internetowa nie pozycjonowała się wysoko w wyszukiwarce Google. Na podstawie wykonanego przez nas audytu SEO zoptymalizowaliśmy treści na stronie pod kątem wcześniej opracowanych słów kluczowych. Nasz wewnętrzny system codziennie analizuje prawidłowe działanie witryny. Dzięki indywidualnej strategii, firma zdobywa coraz więcej Klientów. Czy chcieliby Państwo zwiększyć liczbę osób odwiedzających stronę internetową firmy? Mógłbym przedstawić ofertę? Pozdrawiam serdecznie, Patryk Górecki
Dzień dobry, jakiś czas temu zgłosiła się do nas firma, której strona internetowa nie pozycjonowała się wysoko w wyszukiwarce Google. Na podstawie wykonanego przez nas audytu SEO zoptymalizowaliśmy treści na stronie pod kątem wcześniej opracowanych słów kluczowych. Nasz wewnętrzny system codziennie analizuje prawidłowe działanie witryny. Dzięki indywidualnej strategii, firma zdobywa coraz więcej Klientów. Czy chcieliby Państwo zwiększyć liczbę osób odwiedzających stronę internetową firmy? Mógłbym przedstawić ofertę? Pozdrawiam serdecznie, Patryk Górecki
Dzień dobry! Czy mógłbym przedstawić rozwiązanie, które umożliwia monitoring każdego auta w czasie rzeczywistym w tym jego pozycję, zużycie paliwa i przebieg? Dodatkowo nasze narzędzie minimalizuje koszty utrzymania samochodów, skraca czas przejazdów, a także tworzenie planu tras czy dostaw. Z naszej wiedzy i doświadczenia korzysta już ponad 49 tys. Klientów. Monitorujemy 809 000 pojazdów na całym świecie, co jest naszą najlepszą wizytówką. Bardzo proszę o e-maila zwrotnego, jeśli moglibyśmy wspólnie omówić potencjał wykorzystania takiego rozwiązania w Państwa firmie. Z poważaniem, Dawid Rowicki
Dzień dobry! Czy mógłbym przedstawić rozwiązanie, które umożliwia monitoring każdego auta w czasie rzeczywistym w tym jego pozycję, zużycie paliwa i przebieg? Dodatkowo nasze narzędzie minimalizuje koszty utrzymania samochodów, skraca czas przejazdów, a także tworzenie planu tras czy dostaw. Z naszej wiedzy i doświadczenia korzysta już ponad 49 tys. Klientów. Monitorujemy 809 000 pojazdów na całym świecie, co jest naszą najlepszą wizytówką. Bardzo proszę o e-maila zwrotnego, jeśli moglibyśmy wspólnie omówić potencjał wykorzystania takiego rozwiązania w Państwa firmie. Z poważaniem, Dawid Rowicki
Dzień dobry, kontaktuje się z Państwem, ponieważ jako osoba zajmująca się usprawnieniem procesów, chciałbym zaprezentować nowoczesne rozwiązanie dla Państwa firmy. System został stworzony z myślą o przedsiębiorstwach z sektora MŚP, aby zapewnić bezpieczeństwo danych, niezawodność i optymalizację procesów. Dzięki bogatym funkcjonalnościom usprawnia i przyspiesza obsługę zleceń. Jeśli chcieliby Państwo zwiększyć tempo rozwoju swojej działalności i poszerzyć rynek zbytu chętnie opowiem więcej. Kiedy mogę się skontaktować? Pozdrawiam, Arkadiusz Stryj
Dzień dobry, zapoznałem się z Państwa ofertą i z przyjemnością przyznaję, że przyciąga uwagę i zachęca do dalszych rozmów. Pomyślałem, że może mógłbym mieć swój wkład w Państwa rozwój i pomóc dotrzeć z tą ofertą do większego grona odbiorców. Pozycjonuję strony www, dzięki czemu generują świetny ruch w sieci. Możemy porozmawiać w najbliższym czasie? Pozdrawiam Adam Furgalski
control: tags -1 + moreinfo control: tags -1 + unreproducible Hi, Can you give me moreinformation with recent apache ?