Skip to content

pvestatd crashes with "free unreferenced scalar" segfault after fork #49

@WarlockSyno

Description

@WarlockSyno

pvestatd crashes with memory corruption errors when using the TrueNAS plugin:

pvestatd[13258]: Attempt to free unreferenced scalar: SV 0x5e4c0562da98
kernel: pvestatd[13258]: segfault at 269c7b008 ... code=killed, status=11/SEGV

Root Cause:
Persistent WebSocket connections stored in %_ws_connections are inherited by forked pvestatd child processes. Both parent and child have references to the same IO::Socket::SSL objects, causing Perl's reference counting to corrupt when either process garbage collects.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions