Skip to content

Segmentation fault in _c104.cpython-313-x86_64-linux-gnu.so #76

Description

@marcusrunsten

Running version 2.2.1 and the system will run for a few days up to a week but then throw a segfault and restart.

Python 3.12.3

Due to airgapped environment I can't copy logs so there might be errors intranslation of the rows below:

dmesg -T shows

python[1106536]: segfault at 0 ip 0000779ec13010da sp 0000779ebbdff7c0 error 4 in _c104.cpython-313-x86_64-linux-gnu.co[779ec12c4000+147000] likely on CPU 0 (core 0, socket 0)
Code: 48 8b 7b 50 e8 c9 4c 06 00 48 8b 7b 30 e8 68 42 06 00 48 8b 7b 08 48 83 c4 28 5b 5d e9 59 42 60 00 90 53 48 8b 76 48 48 89 fb <48> 8b 06 ff 50 30 48 89 d8 5b c3 90 48 8b 7f 48 48 8b 07 ff 60 40

Run in a docker environment created from Dockerfile:

FROM python:3.13.1
RUN pip install paho-mqtt
RUN pip install c104
RUN mkdir -p /opt/iec104
WORKDIR /opt/iec104
COPY py/ .
CMD ["python", "./integrator.py"]

Tried catching all the exceptions and log everything but since this is a segfault it just kills the process and restarts the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions