Recurring tailwatchd Segmentation Faults – cPanel 11.138.0.28
Hey cpRex, here's an interesting one for you.
We noticed that at 4:17am today AEST an entry in the logs that repeats consistently every 5 minutes.
Nov 24 04:17:44 kernel: tailwatchd[2560140]: segfault at 2f ip 0000146fc0e81adf sp 00007ffc69c19720 error 4 in libperl.so[146fc0d47000+332000]
Nov 24 04:17:44 kernel: Code: 0f 84 1f 01 00 00 49 8b 07 8b 50 5c f6 c2 04 0f 85 10 01 00 00 80 e2 08 75 3b 48 8b 40 28 48 85 c0 0f 84 fe 00 00 00 48 8b 10 <8b> 42 20 66 25 ff 01 66 3d c0 00 0f 84 ea 00 00 00 66 83 f8 03 75
Nov 24 04:22:51 kernel: tailwatchd[2561406]: segfault at 2f ip 0000146fc0e81adf sp 00007ffc69c19720 error 4 in libperl.so[146fc0d47000+332000]
Nov 24 04:22:51 kernel: Code: 0f 84 1f 01 00 00 49 8b 07 8b 50 5c f6 c2 04 0f 85 10 01 00 00 80 e2 08 75 3b 48 8b 40 28 48 85 c0 0f 84 fe 00 00 00 48 8b 10 <8b> 42 20 66 25 ff 01 66 3d c0 00 0f 84 ea 00 00 00 66 83 f8 03 75
I think this part is a red herring but last night we updated PHP extensions using EasyApache and then rolled back because of a cock-up. Then went through the process again using EasyApache to correct the cock-up.
This morning almost 5 minutes prior to the errors there was this:
Nov 24 04:12:31 hostname systemd[1]: Stopping Apache web server managed by cPanel EasyApache...
Nov 24 04:12:32 hostname systemd[1]: httpd.service: Succeeded.
Nov 24 04:12:32 hostname systemd[1]: Stopped Apache web server managed by cPanel EasyApache.
Nov 24 04:12:32 hostname systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Nov 24 04:13:10 hostname dnf[2557792]: CloudLinux 8 - Updates
........
5 minutes later and every 5 minutes since we're getting segfaults.
Anyway, at this stage I'm unsure if the EasyApache and the update shenanigans caused the issue.
Pressing on with what we've found out:
1. Problem Summary
We are experiencing recurring segmentation faults (SIGSEGV) in the cPanel tailwatchd daemon.
The crashes occur inside cPanel's bundled Perl 5.42 runtime, specifically libperl.so.
The daemon appears to restart successfully following crashes, but the issue is recurring.
We would appreciate cPanel's assistance identifying whether this is a known issue with the current cPanel build, Perl 5.42, or an interaction with one of the bundled Perl modules.
2. System Information
-
cPanel version: 11.138.0.28
-
Operating system: Enterprise Linux 8
-
Architecture: x86_64
-
Perl runtime: cPanel Perl 5.42
-
DBI version: 1.653
-
DBD::SQLite RPM: cpanel-perl-542-dbd-sqlite-1.76-1.cp130~el8.x86_64
3. Confirmed Evidence
A. Audit log confirms repeated segmentation faults
Command:
ausearch -m ANOM_ABEND -ts recent -i
Output:
24/11/2026 13:54:23 – tailwatchd – PID 2893627 – SIGSEGV
24/11/2026 13:59:23 – tailwatchd – PID 2894717 – SIGSEGV
Additional crashes were subsequently observed.
B. Kernel log identifies libperl.so
Command: journalctl -k --since "2026-11-24
13:45:00" --until "2026-11-24 14:10:00" --no-pager
Relevant output:
Nov 24 14:09:35 kernel: tailwatchd[2897361]:
segfault at 2f ip 0000146fc0e81adf sp 00007ffc69c19720 error 4 in
libperl.so[146fc0d47000+332000]
The instruction pointer is within libperl.so.
The faulting address is 0x2f, consistent with an invalid memory access involving a low memory address.
C. Core dumps are disabled
I've deliberately left core dumps disabled because I do not want to change production server settings without first understanding the implications. I'm just not that comfortable doing this at the moment.
D. tailwatchd executable
Location: /usr/local/cpanel/libexec/tailwatch/tailwatchd
File information:
-
ELF 64-bit executable
-
Stripped binary
-
Build ID:
d99cddca60236dd29688d3b6a45cf7bf304a6a9d -
Modified: 13 November 2026
The executable is not owned by an RPM package.
E. Perl shared library
Location: /usr/local/cpanel/3rdparty/perl/542/lib/x86_64-linux/CORE/libperl.so
File information:
-
Size: 3,664,064 bytes
-
Modified: 12 August 2026
ldd confirms that tailwatchd loads this library directly.
It also loads:
-
Linux/Systemd/Daemon/Daemon.so
-
IO/IO.so
-
libpthread
-
libdl
-
libm
-
libc
-
libsystemd
F. Perl module information
DBD::SQLite package:
cpanel-perl-542-dbd-sqlite-1.76-1.cp130~el8.x86_64
DBI version:
1.653
These modules are noted because they are part of the cPanel Perl environment, although we have not established that either is responsible for the crashes.
G. tailwatchd log
Command:
tail -200
/usr/local/cpanel/logs/tailwatchd_log
The log shows normal activity, including:
-
Eximstats hourly email-limit resets.
-
Configuration reloads.
-
Reader flushing.
-
No obvious Perl exception or application-level error immediately identifying the cause.
H. Service status
The daemon has been observed running under PID 2966 with PPID 1.
It has successfully restarted following previous crashes.
The process also shows substantial cumulative I/O activity, although this alone does not indicate a fault.
4. Preliminary Technical Analysis
The strongest evidence currently points to a native memory-access fault within the embedded Perl runtime.
The kernel identifies libperl.so as the location of the fault.
Disassembly of the relevant Perl function, S_curse, shows that the faulting instruction is consistent with accessing an object structure through a pointer.
This suggests a possible invalid, corrupted, or unexpected Perl object reference.
However, without a core dump or debugger backtrace, we cannot establish exactly how the invalid pointer was produced.
5. Working Hypotheses
We would particularly appreciate cPanel investigating the following possibilities:
-
A defect in the cPanel Perl 5.42 runtime or its integration with tailwatchd.
-
A memory-management issue involving Perl objects or callbacks.
-
An incompatibility or defect involving a bundled XS/native Perl module.
-
A regression introduced by a cPanel update or a change to the tailwatchd executable.
-
A module-specific interaction triggered during normal tailwatchd operation.
The fact that multiple crashes occur within libperl.so suggests investigating the shared Perl runtime first, rather than assuming that the tailwatchd executable itself is defective.
We have not yet established whether all crashes occur at the same instruction offset.
6. Actions Already Taken
-
Verified auditd is running.
-
Identified repeated SIGSEGV events through auditd.
-
Examined kernel messages.
-
Examined tailwatchd logs.
-
Checked the running daemon's process status.
-
Examined the tailwatchd executable and its Build ID.
-
Identified its Perl runtime dependencies using
ldd. -
Checked DBI and DBD::SQLite versions.
-
Examined the relevant Perl function using objdump.
-
Checked cPanel error logs and update logs.
-
Searched cPanel scripts for tailwatchd references.
No production configuration changes have been made.
Core dumps remain disabled.
7. Assistance Requested from cPanel
Could cPanel please investigate:
-
Whether cPanel 11.138.0.28 has any known tailwatchd SIGSEGV issues involving Perl 5.42?
-
Whether the tailwatchd executable Build ID listed above corresponds to a known-good build?
-
Whether there are known defects involving
S_cursein the bundled Perl runtime? -
Whether a specific cPanel Perl module or XS extension is known to cause this behaviour?
-
Whether there is a supported diagnostic procedure that does not require globally enabling core dumps?
-
Whether the bundled Perl runtime or tailwatchd executable should be repaired or updated?
We would prefer a supported diagnostic or repair procedure rather than manually replacing Perl libraries or modifying production system settings.
8. Current Assessment
The recurring segmentation faults are confirmed.
The kernel identifies the cPanel Perl runtime (libperl.so) as the fault location.
The underlying cause remains undetermined.
Our leading hypothesis is a native Perl runtime or Perl module memory-management issue, potentially triggered by a tailwatchd operation.
We would appreciate escalation to the cPanel development team if necessary, particularly if the issue is not already documented.
Thanks!
-
Hey hey! Thanks for the detailed write-up. I found nothing that points to a known libperl or
S_cursedefect in 11.138. I did find some similar crashes, such as atailwatchdsegfault inlibperl.soevery 5 minutes, where tailwatchd had been running for months while perl or system libraries were updated underneath it. In those cases restarting the service stopped the crashes:/scripts/restartsrv_tailwatchd --hardPlease also run
whmapi1 system_needs_rebootand see if that will tell you whatdnfupdated at 04:13. If the crashes continue after the restart, please open a support ticket so we can take a look at the server directly.1 -
Thanks for this, updated the kernel last night and rebooted and the errors are gone now. One for our internal documentation.
Cheers.
0 -
Nice - I'm glad that's all it took!
0
Please sign in to leave a comment.
Comments
3 comments