clidejs/ttyutil

"Abort trap: 6" and malloc issues

Closed this issue · 1 comments

after around ~150 Events "Abort trap: 6" occurs and kills the process.
It occurs in ttyinputworker.h#L84 and ttyinputworker.h#51 at uv_mutex_lock(&async_lock).

When commented out, a malloc error will occur on ttyinputworker.h#L93 when trying to free a pointer which was not allocated.

I will investigate on the issue as soon as possible, pull requests welcome :)

fix for unix in 63a3c2f