CoreElec throws a “Segmentation Fault” on all SSH sessions when doing a large file transfer.
Thanks for all the hard work the CoreElec team contributes to this project.
This is not Kodi related but Underlying OS related.
It seems to be the exact same issue as what was encountered on armbian here: https://forum.armbian.com/topic/6591-le-potato-network-stack-crash-on-huge-file-writes/
I shut down kodi with systemctl stop kodi.
Then I run the following test file:
#Blue LED indicates SD card Activity
echo sd > /sys/class/leds/librecomputer:blue/trigger
#Green LED indicates heartbeat Activity
echo heartbeat > /sys/class/leds/librecomputer:system-status/trigger
Clean up any old file
Create a string of 4096 bytes
for i in
seq 1 4096;
Write the 4096 byte string a 250 000 times --> 1G file
for j in
seq 1 250000;
echo $MAKE4K >> $LARGEFILE
Simultaneously I will start a
watch -n 1 cat /sys/devices/system/cpu/cpufreq/all_time_in_state
on a new SSH session.
The heartbeat LED keeps beating regularly. Blue LED flashes for Card writes.
When the filesize is randomly between 500 to 700 MB all SSH Sessions will throw a Segmentation Fault and all the SSH items running will exit.
Heartbeat LED keeps flashing regularly.
If I then run the test script again everything crashes - full freeze up. Heartbeat LED stops flashing.
Need to power cycle the device.
I looked for logs that reflected the errors but could not find any.
What can I do to get this issue looked at?
Are there any logs and where are they located on CoreElec that I can supply that would capture the segmentation faults?
Any other tests I can do to isolate the issue?
Further on I get random freezes in kodi if I try to back-up kodi but I think it is related to the underlying file system issue. Nothing gets logged in the kodi file when the entire unit freezes.