Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 3, 2019. It is now read-only.
This repository was archived by the owner on Sep 3, 2019. It is now read-only.

fix MLK: rye_repl #6

@iamksseo

Description

@iamksseo
==14297== 33,556 (3,968 direct, 29,588 indirect) bytes in 26 blocks are definitely lost in loss record 22 of 26
==14297==    at 0x4A05FBB: malloc (vg_replace_malloc.c:207)
==14297==    by 0x4F3FE12: db_ws_alloc (quick_fit.c:72)
==14297==    by 0x4F14858: classobj_make_class (class_object.c:2788)
==14297==    by 0x4F45D29: disk_to_class (transform_cl.c:2851)
==14297==    by 0x4F46BF2: tf_disk_to_class (transform_cl.c:3112)
==14297==    by 0x4F6913B: locator_cache_object_class (locator_cl.c:1906)
==14297==    by 0x4F696B5: locator_cache_have_object (locator_cl.c:2078)
==14297==    by 0x4F69B4D: locator_cache (locator_cl.c:2208)
==14297==    by 0x4F668A1: locator_lock (locator_cl.c:669)
==14297==    by 0x4F68D6A: locator_find_class_by_oid (locator_cl.c:1767)
==14297==    by 0x4F68F07: locator_find_class (locator_cl.c:1832)
==14297==    by 0x4F182A1: sm_find_class (schema_manager.c:1894)
==14297==    by 0x4EFC614: au_start (authenticate.c:3469)
==14297==    by 0x4F5DE04: boot_restart_client (boot_cl.c:1025)
==14297==    by 0x4CA3797: db_restart (db_admin.c:610)
==14297==    by 0x432211: cirp_connect_copylogdb (repl.c:916)
==14297==    by 0x42F355: main (repl.c:233)

rye_repl의 log_writer에 에러가 발생하여 db_shutdown, db_restart()를 반복 수행되는 경우 memory leak이 발생함. (rye_repl가 필요한 로그가 상대 node에서 삭제된 경우)

추가로

db_shutdown() 할때 tp_Domains 정보가 free되어 applier, analzyer에서 idxkey를 pack, unpack할때 free memory read가 발생함.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions