August 19, 2025Aug 19 I've been troubleshooting some instability that has been leading to crashes about once per month. I turned on syslog and have been capturing and investigation any errors that i can see. The first I found that was ZFS corruption on a NVMe SSD that i dedicated to plex metadata. Since it was a single-disk ZFS pool that did not have parity, I wiped it and changed back to XFS. I only used ZFS for snapshots and replication, but with all of the memory issues i kept seeing, i decided to just go XFS for this disk and will just let plex rebuild in the future if needed.I also had a bunch of Syslinux Configuration paramters set when i was passing hardware through to a VM a long time ago. I removed all of those as i read it could cause the system to not enforce memory mgmt or something along those lines.the one fault i continue to see (just about daily) is a "smartctl[3052408]: segfault at 5583dc000000 ip 0000150a32cb7f45 sp 00007ffd2a3533e0 error 4 in libc.so.6[98f45,150a32c45000+155000] likely on CPU 0 (core 0, socket 0)"ZEach time ive seen it, ive tried to run the errors though either Grok or Google AI to see if it could point me in the right direction. Im at 14 days of uptime right now, so i am hoping that the previous issues that i found will let me get past the 30days - at 30 days, my UI typically gets hung.i also did run mem test for 4 passes and received zero errors there. Diagnostics zip and syslog attached. mclovinii-diagnostics-20250819-1137.zip syslog.latest.txt
August 19, 2025Aug 19 Author Here is the Grok analysis of the segfault error i saw this morning. AnalysisSegfault Details:First Incident (03:25:28):Process: smartctl[3047366]Segfault at address 1f1, instruction pointer (IP) 00001544b9f0720a, stack pointer (SP) 00007ffe0fe57f10.Error code 6 (invalid permissions for mapped object, likely trying to write to a read-only memory region).Occurred in libc-2.41.so, suggesting a potential issue in the C library or how smartctl interacts with it.Likely on CPU 0 (core 0, socket 0).Second Incident (03:27:30):Process: smartctl[3052408]Segfault at address 5583dc000000, IP 0000150a32cb7f45, SP 00007ffd2a3533e0.Error code 4 (invalid memory reference, likely accessing an invalid or unmapped address).Occurred in libc.so.6, again pointing to a C library interaction.Also on CPU 0.Commonalities:Both errors involve smartctl and libc, suggesting a possible issue with smartctl’s memory handling or a corrupted library.The different error codes (6 and 4) indicate varying memory access issues, but both are likely related to the same root cause.The timing (close together) suggests a recurring issue, possibly triggered by a scheduled task (e.g., a cron job running smartctl to check disk health).Possible Causes:Bug in smartctl: A known issue in the version of smartmontools installed, especially if it’s outdated or incompatible with the system’s libc.Corrupted libc: The C library itself might be corrupted or mismatched with the system.Hardware Issues: Faulty RAM or disk could cause memory corruption, leading to segfaults.Driver or Firmware Issues: Problems with the storage controller or disk firmware could cause smartctl to crash when querying drives.System Overload: If the system is under heavy load or low on memory, it might cause unexpected behavior.Steps to ResolveCheck smartctl Version:Run smartctl --version to check the installed version.Compare it with the latest version from the smartmontools website or your package manager. Update if outdated:bashsudo apt update && sudo apt install smartmontools # For Debian/Ubuntu sudo yum install smartmontools # For CentOS/RHELCheck for known bugs in your version on the smartmontools bug tracker or forums.Verify libc Integrity:Check the integrity of libc:bashsudo ldconfig -v 2>/dev/null | grep libc.soReinstall libc if suspected to be corrupted:bashsudo apt install --reinstall libc6 # For Debian/Ubuntu sudo yum reinstall glibc # For CentOS/RHELInspect System Logs:Look for additional errors around the same time:bashsudo journalctl -k -t kernel -S "2025-08-19 03:25:00" -U "2025-08-19 03:28:00"Check for disk or controller errors that might be triggering smartctl crashes.Test Hardware:Run a memory test to rule out RAM issues:bashsudo memtest86+Check disk health manually with smartctl (run cautiously, as it’s crashing):bashsudo smartctl -a /dev/sdX # Replace sdX with your disk (e.g., sda)If it crashes, try running with debug output:bashsudo smartctl -d sat -a /dev/sdXCheck Scheduled Tasks:Verify if smartctl is run by a cron job:bashsudo crontab -l cat /etc/cron.*/*Temporarily disable any smartctl-related jobs to prevent crashes while troubleshooting.Update System:Ensure the kernel and all packages are up to date:bashsudo apt full-upgrade # For Debian/Ubuntu sudo yum update # For CentOS/RHELDebug with gdb:If the issue persists, run smartctl under gdb to get a backtrace:bashsudo gdb --args smartctl -a /dev/sdX (gdb) run (gdb) bt # After crash, to get backtraceShare the backtrace with the smartmontools community or on a relevant forum.Check for Known Issues:Search for similar issues on X or the web:Keywords: smartctl segfault libc 2025, smartmontools crash libc.so.6.Check smartmontools mailing lists or GitHub issues.If needed, I can perform a real-time search for recent reports (let me know).Next StepsStart by checking the smartctl version and updating it.Verify libc integrity and system updates.If the issue persists, test hardware and inspect logs for clues.Report the issue to the smartmontools community with details (version, system info, logs).
August 19, 2025Aug 19 Community Expert Solution I've seen this happening with some NVMe devices; try a different one if possible.
August 19, 2025Aug 19 Author Thank you! If you have seen this before with NVMe disks, I know exactly which one it is. I'm going to order one now and will respond here if it fixes. Appreciate the response @JorgeB 3 hours ago, JorgeB said:I've seen this happening with some NVMe devices; try a different one if possible.
August 21, 2025Aug 21 Author Changed the Kioxia NVMe SSD to a Samsung 990 pro last night. First night I have not seen this default error pop up. And wow do these NVE disks copy over fast. 280GB moved over in a couple minutes!Once I see a few days of stability, i will close this out as solved. Thanks again @JorgeB for saving my sanity here. I have been trouble shooting this issue for months.
August 26, 2025Aug 26 Author On 8/19/2025 at 1:01 PM, JorgeB said:I've seen this happening with some NVMe devices; try a different one if possible.This was definitely my issues. However, it was not the Kioxia drive that I suspected. I found the culprit was a Lycom DT-120 M.2 Interface Card and Adapter that i used to connect a Samsung 980 m.2 to the motherboard. I would see random high temp warnings for this disk, but it would never show high on the main page. As soon as i removed this pcie to m.2 card, i have not see the error since. I have that same m.2 and Lycom card in my test server now to see if I can reproduce the issue. Marking this as solved as it was definitely NVMe disk related. Hopefully this can help someone else in their troubleshooting. If i do see more issues on the test server, i will add those notes here.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.