Debugging a malloc double free
Posted: Tue Feb 26, 2019 1:09 pm
Hello!
I recently added a lot of extra https calls and I see this error sometimes. I am using luasec to make the calls.
The first three lines are logged by my allocation tracker and shows that love.thread.newThread was called by the webapi library prior to the crash. This is the small webapi lib used to make the async https calls. https://github.com/Ulydev/wapi/blob/master/webapi.lua
Can this be related to misusing LOVE threads or does it look like an issue with luasec? How can I narrow down the issue?
Thanks,
Andras
I recently added a lot of extra https calls and I see this error sometimes. I am using luasec to make the calls.
Code: Select all
thread.newThread lib/webapi.lua
filesystem.newFileData lib/webapi.lua
filesystem.newFile lib/webapi.lua
love(78342,0x70000473f000) malloc: *** error for object 0x7fa822e31210: double free
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
Can this be related to misusing LOVE threads or does it look like an issue with luasec? How can I narrow down the issue?
Thanks,
Andras