stoneatom / stonedb

StoneDB is an Open-Source MySQL HTAP and MySQL-Native DataBase for OLTP, Real-Time Analytics, a counterpart of MySQLHeatWave. (https://stonedb.io)
https://stonedb.io/
GNU General Public License v2.0
862 stars 139 forks source link

feature: memory leak detection #1618

Open chenshengjiang opened 1 year ago

chenshengjiang commented 1 year ago

Is your feature request related to a problem? Please describe.

Using Valgrind to detect memoryy leak of stonedb. Describe the solution you'd like

Just use some simple cases, the summary follows:

==1380582== LEAK SUMMARY:
==1380582==    definitely lost: 0 bytes in 0 blocks
==1380582==    indirectly lost: 0 bytes in 0 blocks
==1380582==      possibly lost: 0 bytes in 0 blocks
==1380582==    still reachable: 976 bytes in 14 blocks
==1380582==         suppressed: 0 bytes in 0 blocks

It is hard to cover all function branchs. Describe alternatives you've considered

Additional context

RingsC commented 1 year ago

except to valgrind, ASAN should be in your eyesight.