starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.73k stars 387 forks source link

It seems that memory leaks with encode. #185

Closed shuxiao9058 closed 2 years ago

shuxiao9058 commented 2 years ago

see as below.

image
./samples/sample-bt-leaks.sxx -x 232217 --arg time=10         -D STP_NO_OVERLOAD -D MAXMAPENTRIES=10000 > b.bt
Found exact match for libc: /usr/lib64/libc-2.17.so
WARNING: confusing usage, consider @entry($oldmem) in .return probe: identifier '$oldmem' at <input>:38:23
 source:                 ptr = $oldmem
                               ^
WARNING: Start tracing 232217 (/usr/local/openresty-debug/nginx/sbin/nginx)...
WARNING: Wait for 10 sec to complete.
WARNING: Missing unwind data for a module, rerun with 'stap -d (unknown; retry with -DDEBUG_UNWIND)'
WARNING: too many pending (warning) messages
WARNING: free misses: 4

bt.zip