Open systemcrash opened 3 weeks ago
BTW, is this relevant and up to date? https://ucode.mein.io/module-core.html Some things here seem to be missing.
Couldn't reproduce this during some cursory testing with a qemu x86/64 vm
Try running the it multiple times. Sometimes things worked out or me. But after a few repeats, it eventually happens.
Did a root@OpenWrt:~# while true; do ubus call ddns get_ddns_state ; done
running fine for ~3 minutes
Madness. Do you run it on 23.05 or master?
ping @jow-
Segfaults and hangs. Sometimes.
ucode ddns.uc
thinks the code is fine.hang code segfault code
But when put the file in
/usr/share/rpcd/ucode
and I do:for the problem cases,
rpcd
comes back withCommand failed: Request timed out
, and maybe after repeated attempts on ARM, the problem cases complete. No hang.Segfault examples from x86_64
Seems like resource exhaustion issues. Problems seem to centre around the
popen
call todate
.Weird thing? If I start with
Then subsequent calls don't seem to lock or hang so soon. But ARM does this if it doesn't hang:
While x86_64 does this:
ARM:
x86_64
Addendum: Copying the files to my devices using:
scp -O applications/luci-app-ddns/root/usr/share/rpcd/ucode/ddns.uc root@192.168.1.1:/usr/share/rpcd/ucode
reliably triggered the problem. I've noticed somewhere else that
scp -O
causes problems with large transfers.But once I installed
openssh-sftp-server
the problems abated on x86_64.