Temat: Problem z Apache - Segmentation fault

Problem w OpenWrt Attitude Adjustment 12.09 (r33948).

Komenda: apachectl start

Poniżej komunikat z error_log'a:
"...
[Mon Jan 14 10:13:59 2013] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.1c configured -- resuming normal operations
[Mon Jan 14 10:13:59 2013] [info] Server built: Aug 26 2012 14:31:49
[Mon Jan 14 10:13:59 2013] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem)
[Mon Jan 14 10:14:00 2013] [notice] child pid 3999 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:00 2013] [notice] child pid 4000 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:00 2013] [notice] child pid 4001 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:00 2013] [notice] child pid 4002 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:00 2013] [notice] child pid 4003 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:02 2013] [notice] child pid 4004 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:03 2013] [notice] child pid 4006 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:03 2013] [notice] child pid 4007 exit signal Segmentation fault (11)
[Mon Jan 14 10:14:04 2013] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 4 idle, and 4 total children
..."

Na tą chwilę nie ma PHP, więc błędy nie dotyczą tamtejszych modułów.

Być może dotyczy to: https://dev.openwrt.org/ticket/10273 .

Czy ktoś miał podobne doświadczenia i co ważniejsze udało mu się rozwiązać problem?

PS Przysiągłbym, że jakiś czas temu, na tej samej platformie problemu z Apache'm nie miałem. Stawiałem chyba LAMP.

2

Odp: Problem z Apache - Segmentation fault

Spokojnie możesz to zgłosić na dev.openwrt.org bo po prostu binarka się wykłada.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Problem z Apache - Segmentation fault

Cezary, możesz potwierdzić, że problem występuje również u Ciebie? Chodzi o czysta instalacje i odpalenie. Pytam, bo brak jakichkolwiek świeżych informacji u wujka G na  temat podobnych sytuacji u innych.

4

Odp: Problem z Apache - Segmentation fault

Nie wiem, już bardzo dawno nie instalowałem apache.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez _mlody_ 2013-01-14 18:22:11)

Odp: Problem z Apache - Segmentation fault

opkg install apache
apachectl start
tail -f /var/log/error_log
Mógłbyś? smile

6

Odp: Problem z Apache - Segmentation fault

# tail -f /var/log/error_log
[Mon Jan 14 17:48:18 2013] [info] Server built: Nov 18 2012 03:59:04
[Mon Jan 14 17:48:18 2013] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem)
[Mon Jan 14 17:48:19 2013] [notice] child pid 2793 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:19 2013] [notice] child pid 2794 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:19 2013] [notice] child pid 2795 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:19 2013] [notice] child pid 2796 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:19 2013] [notice] child pid 2797 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:21 2013] [notice] child pid 2798 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:22 2013] [notice] child pid 2799 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:22 2013] [notice] child pid 2800 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:23 2013] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 4 idle, and 4 total children
[Mon Jan 14 17:48:23 2013] [notice] child pid 2801 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:23 2013] [notice] child pid 2802 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:23 2013] [notice] child pid 2803 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:23 2013] [notice] child pid 2804 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2806 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2807 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2808 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2809 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2810 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2811 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2812 exit signal Segmentation fault (11)
[Mon Jan 14 17:48:24 2013] [notice] child pid 2813 exit signal Segmentation fault (11)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Problem z Apache - Segmentation fault

big_smile Dzięki serdeczne. W takim razie trzeba zgłosić.

8

Odp: Problem z Apache - Segmentation fault

Czy starsza wersja (z innego repo) ma szansę zadziałać? Tak jak wspomniałem, wcześniej mi chodziło (nie pamiętam niestety wersji OpenWRT).

9

Odp: Problem z Apache - Segmentation fault

Z backfire? Możliwe, choć marne szanse bo biblioteki są inne. Lighttpd sobie zainstaluj.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Problem z Apache - Segmentation fault

Zainstalowałem. Jednak brakuje mi w nim pewnych funkcji Apache. Np. możliwości "proxy'fikacji" połączeń.
Chodzi o to, że Apache ma być zainstalowany na routerze z publicznym adresem IP. Ma być frontendowym serwerem HTTPS. Router na podstawie tego co wpiszę po adresie jego www (np. https://host_routera/cos_tam/) przekieruje (nie redirect, a funkcja proxy, jest różnica) ruch do odpowiedniego serwera w jego sieci LAN niedostępnego z zewnątrz. Niby lighttpd też ma podobną funkcję, ale działa inaczej (generuje to problemy z dostępem do niektórych usług www). Krótko mówiąc Apache'em można łatwiej, szybciej i przyjemniej.

11

Odp: Problem z Apache - Segmentation fault

Poniżej informacja gdzie tkwi problem. Wystarczy zmienić poziom logowania w konfiguracji i serwer działa jak należy. Poniżej info:

Cytat z ticket'u "https://dev.openwrt.org/ticket/10273":
"...
I tracked this bug down to the 'LogLevel debug' entry in the httpd.conf file. If you set it to 'LogLevel notice' everything works as expected.

Cheers.
comment:9 Changed 39 hours ago by X…

confirm apache 2.2.15 working with "LogLevel error"
thank you!"