![[203128%2F9830936%2Fmceclip0]](https://d28lcup14p4e72.cloudfront.net/203128%2F9830936%2Fmceclip0.png)
Title: OpenPLC V4 Runtime on Raspberry Pi 4 (ARM64) - TASK0 immediately terminates with Signal 11 even for trivial ladder programs
Environment
Problem
Any PLC program causes:
[task TASK0] terminated by signal 11 — other tasks keep running
The PLC runtime starts successfully, but TASK0 crashes immediately after entering RUNNING state.
PLC Log
PLC State: RUNNINGPLC base tick: 50000000 ns across 1 task(s)PLC: fastest task is TASK0 (interval=50000000 ns, priority=1)Spawned 1 PLC task thread(s)[task TASK0] SCHED_FIFO priority 1GCD master-tick dispatcher running[task TASK0] terminated by signal 11 — other tasks keep running
What I Tested
Test 1: Real GPIO output
Variable mapped to:
%QX0.0
Result:
TASK0 terminated by signal 11
Test 2: No GPIO mappings at all
Program contains only local BOOL variables.
Variables:
START : BOOL;relay : BOOL;
Ladder:
--|/| START ----( relay )--
No physical I/O mappings.
No %IX variables.
No %QX variables.
Result:
TASK0 terminated by signal 11
Generated Code
Generated Program_MAIN::run() is extremely simple:
void Program_MAIN::run(){ RELAY = NOT(START);}
This suggests the fault is likely not in user ladder logic.
Additional Findings
Fresh OS installation performed.
Previous OpenPLC versions completely removed.
Same issue occurs after clean reinstall.
Windows Runtime works correctly with the same project.
Windows Runtime works when connected from multiple editors/machines.
Issue appears specific to Raspberry Pi runtime execution.
GDB Output
Running:
gdb ./plc_main
and:
set follow-fork-mode childrun
produces:
Starting program: /home/pi/openplc-runtime/build/plc_main[New Thread ...][New Thread ...][Thread ... exited][Thread ... exited][New process 4951][Inferior 1 (process 4951) exited with code 0377](gdb) btNo stack.
No usable backtrace is generated.
Question
Has anyone successfully run OpenPLC Runtime V4 on Raspberry Pi 4 (ARM64 / aarch64)?
Could this be:
an ARM64-specific runtime bug,
a STruC++ task execution issue,
or a known problem in the threaded process-image execution model?
Any guidance on enabling a more detailed crash backtrace would also be appreciated.