Apache2 crashes with SIGBUS in mod_ssl
This bug report will be marked for expiration in 38 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.2 LTS
Release: 24.04
$ dpkg -l apache2
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii apache2 2.4.58-1ubuntu8.6 amd64 Apache HTTP Server
While running, about once a day, I get a SIGBUS from the SSL module.
Here is a partial stack trace:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGBUS, Bus error.
#0 __memcpy_
warning: 265 ../sysdeps/
(gdb) where
#0 __memcpy_
#1 0x000072c37cab74bf in ?? () from /usr/lib/
#2 0x0000601c3919cb44 in ap_http_
#3 0x000072c37cf74748 in ?? () from /usr/lib/
#4 0x000072c37cf596d2 in ?? () from /usr/lib/
#5 0x0000601c3916d8e8 in ?? ()
#6 0x0000601c39170c4a in ap_run_handler ()
#7 0x0000601c391744c6 in ap_invoke_handler ()
#8 0x0000601c3919c0e6 in ap_internal_
#9 0x000072c37ceeb781 in ?? () from /usr/lib/
#10 0x0000601c39170c4a in ap_run_handler ()
#11 0x0000601c391744c6 in ap_invoke_handler ()
#12 0x0000601c3919b378 in ap_process_
#13 0x0000601c3919b597 in ap_process_request ()
#14 0x0000601c3919b8fd in ?? ()
#15 0x0000601c3918724a in ap_run_
#16 0x000072c37cf412df in ?? () from /usr/lib/
tags: | removed: server-triage-discuss |
Hello, @alexis-m2osw, thanks for reporting this bug!
Are you aware of exact steps to reproduce this behavior from a fresh Ubuntu install?
Meanwhile, I checked the stack trace and seems this memory misalignment issue happens in ssl_io_ filter_ coalesce (from ssl_engine_io.c).
#0 __memcpy_ evex_unaligned_ erms () x86_64/ multiarch/ memmove- vec-unaligned- erms.S: 265 <optimized out>, __dest=<optimized out>) x86_64- linux-gnu/ bits/string_ fortified. h:29 filter_ coalesce (f=0x72c37ced3830, bb=0x72c37a160f48) apache2- qqIoZi/ apache2- 2.4.58/ modules/ ssl/ssl_ engine_ io.c:1897
at ../sysdeps/
#1 0x000072c37cab74bf in memcpy (__len=<optimized out>,
__src=
at /usr/include/
#2 ssl_io_
at /build/
What I found interesting is this #1 entry - it mentions `string_ fortified. h`. There is this Debian bug from a long long time ago /lists. debian. org/debian- apache/ 2008/06/ msg00118. html
https:/
Which mentions compiling with -DFORTIFY_SOURCE has caused problems in earlier version - maybe this is related? Would GCC be wrongly optimizing things? I see this is amd64, which GCC version is installed?