You are not logged in.

#1 2017-05-07 12:32:25

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

[SOLVED] Apache startup fails with core dump

Yesterday I updated all packages. Something went wrong and my machine wouldn't reboot so I had to chroot and run mkinitcpio but after that, everything is fine.

Except Apache doesn't work:

[kirk@arch ~]$ sudo pacman -S apache
warning: apache-2.4.25-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) apache-2.4.25-2

Total Installed Size:  5.43 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                  [#############################################] 100%
(1/1) checking package integrity                                                [#############################################] 100%
(1/1) loading package files                                                     [#############################################] 100%
(1/1) checking for file conflicts                                               [#############################################] 100%
(1/1) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/1) reinstalling apache                                                       [#############################################] 100%
:: Running post-transaction hooks...
(1/2) Creating temporary files...
(2/2) Arming ConditionNeedsUpdate...
[kirk@arch ~]$ sudo systemctl restart httpd
[kirk@arch ~]$ sudo systemctl status httpd
● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Sun 2017-05-07 15:21:20 IDT; 4s ago
  Process: 27417 ExecStop=/usr/bin/httpd -k graceful-stop (code=dumped, signal=SEGV)
  Process: 27413 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=dumped, signal=SEGV)
 Main PID: 27413 (code=dumped, signal=SEGV)

May 07 15:21:20 arch systemd[1]: Started Apache Web Server.
May 07 15:21:20 arch systemd[1]: httpd.service: Main process exited, code=dumped, status=11/SEGV
May 07 15:21:20 arch systemd[1]: httpd.service: Control process exited, code=dumped status=11
May 07 15:21:20 arch systemd[1]: httpd.service: Unit entered failed state.
May 07 15:21:20 arch systemd[1]: httpd.service: Failed with result 'core-dump'.
[kirk@arch ~]$ dmesg | tail
[58300.235099] mce: [Hardware Error]: PROCESSOR 0:20655 TIME 1494156903 SOCKET 0 APIC 5 microcode 4
[58363.499715] perf: interrupt took too long (6181 > 6156), lowering kernel.perf_event_max_sample_rate to 32100
[58455.195072] perf: interrupt took too long (7734 > 7726), lowering kernel.perf_event_max_sample_rate to 25800
[60846.655303] httpd[27288]: segfault at 8 ip 00007f1e51c79503 sp 00007ffc683dab70 error 4 in ld-2.25.so[7f1e51c6e000+23000]
[60846.991532] httpd[27292]: segfault at 8 ip 00007f3ec51df503 sp 00007fff351c4580 error 4 in ld-2.25.so[7f3ec51d4000+23000]
[60927.374979] httpd[27347]: segfault at 8 ip 00007f49265c5503 sp 00007ffc3d2f67e0 error 4 in ld-2.25.so[7f49265ba000+23000]
[60927.450896] httpd[27351]: segfault at 8 ip 00007f4f38678503 sp 00007fff591a7010 error 4 in ld-2.25.so[7f4f3866d000+23000]
[61077.508415] httpd[27413]: segfault at 8 ip 00007fd680b4c503 sp 00007fffabf5b4a0 error 4 in ld-2.25.so[7fd680b41000+23000]
[61077.575066] httpd[27417]: segfault at 8 ip 00007fefa0f0b503 sp 00007ffdfea6e030 error 4 in ld-2.25.so[7fefa0f00000+23000]

Can anyone advise where else to look or what to do?

Thank you.

Last edited by CaptainKirk (2017-05-08 19:43:00)

Offline

#2 2017-05-07 23:00:13

mpan
Member
Registered: 2012-08-01
Posts: 1,207
Website

Re: [SOLVED] Apache startup fails with core dump

$ pacman -Qkk

Should output: apache: 531 total files, 0 altered files. If there are some modified files, inspect them.

Otherwise check the whole dependency tree:

$ pactree -u apache | sudo xargs pacman -Qkk

Note that with properly configured system the above will usually return some warnings, in particular relating to filesystem — for obvious reasons.

Make sure you don’t have some stale configuration files in "/etc/httpd".

If you have ever installed some apache modules not from official Arch repos, they may be the source of the problem. Inspect them if you have ’em and either remove or rebuild and keep in mind that non-officiala packages require rebuilds.

I can also see some mce error just before the crash. Are you sure your hardware is stable?

Last edited by mpan (2017-05-07 23:03:02)


Sometimes I seem a bit harsh — don’t get offended too easily!

Online

#3 2017-05-08 11:16:02

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

Re: [SOLVED] Apache startup fails with core dump

Great, thank you. I was able to put on my debugging hat after your advice and I found there was some issue with my

/etc/httpd/conf/httpd.conf

file. I couldn't figure it out so I removed it, re-installed and now it works.

Thank you!

Offline

#4 2017-05-08 12:50:43

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: [SOLVED] Apache startup fails with core dump

@CaptainKirk: Then please don't forget to mark your thread as solved.


Be aware of my Newbie Powers

Offline

#5 2017-05-08 19:43:23

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

Re: [SOLVED] Apache startup fails with core dump

Marked as Solved. Thank you.

Offline

Board footer

Powered by FluxBB