venkatesh R
[203128%2F9830932%2Fmceclip0]
 [203128%2F9830934%2Fmceclip0]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:
```bash
git clone https://github.com/Autonomy-Logic/openplc-runtime.git
cd openplc-runtime
sudo ./ install.sh rpi
```
### 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.
thiagoralves
Hello,
The OpenPLC forum has a new home: AutonomyEdgehttps://edge.autonomylogic.com. We migrated every member, profiles, topics, categories and attachments. Please redo your post on the new forum so we can continue our conversation.
Note: If you already have an Autonomy Edge account, you can simply login with your credentials to have access to your forum profile and posts. If you don't have an Autonomy Edge account, we ask you to set a fresh password on first sign-in using the same e-mail you used on this forum.
To set a fresh password, access the link https://edge.autonomylogic.com/forgot-password and insert the e-mail address used on this forum. You will receive an e-mail on your inbox with a link to choose a new password. Once you reset your password you will beabletologinonedge.autonomylogic.comusing your new credentials.
Reply 0 0
Reply