![[203128%2F9830932%2Fmceclip0]](https://d28lcup14p4e72.cloudfront.net/203128%2F9830932%2Fmceclip0.png)
![[203128%2F9830934%2Fmceclip0]](https://d28lcup14p4e72.cloudfront.net/203128%2F9830934%2Fmceclip0.png)
OpenPLC V4 Runtime on Raspberry Pi 4 (ARM64) - TASK0 immediately terminates with Signal 11 even for trivial ladder programs
### Environment
* Hardware: Raspberry Pi 4B
* OS: Raspberry Pi OS Bookworm 64-bit
* Architecture: aarch64
* Python: 3.11.2
* OpenPLC Runtime: V4 (latest from official repository)
* Installation method:
### Problem
Any PLC program causes:
```text
[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
```text
PLC State: RUNNING
PLC 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 1
GCD 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:
```text
%QX0.0
```
Result:
```text
TASK0 terminated by signal 11
```
#### Test 2: No GPIO mappings at all
Program contains only local BOOL variables.
Variables:
```text
START : BOOL;
relay : BOOL;
```
Ladder:
```text
--|/| START ----( relay )--
```
No physical I/O mappings.
No %IX variables.
No %QX variables.
Result:
```text
TASK0 terminated by signal 11
```
### Generated Code
Generated `Program_MAIN::run()` is extremely simple:
```cpp
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:
```bash
gdb ./plc_main
```
and:
```gdb
set follow-fork-mode child
run
```
produces:
```text
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) bt
No 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.