shramov/tll

Channel use after channel free error

fdenis1983 opened this issue · 1 comments

When a custom aggregate channel is freed it is implied that it will close itself and remove from the loop. However, it isn't the case for java bindings.

use-after-free.tar.gz

Steps to reproduce:

tar xzf use-after-free.tar.gz
sh -c "sleep 1 ; tll-pyprocessor client.yaml 2>/dev/null 1>/dev/null" & ; tll-pyprocessor server.yaml

result in

2024-02-05 00:34:48.690 TRACE tll.processor.worker.default.loop: Process pending: 1 channels
Segmentation fault (core dumped)

Broken state machine