Skip to content

reload_config crash #2

@millken

Description

@millken

valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./ginsingd -c /home/millken/Config/ginsing/config -f

==10848== 298,610 bytes in 8,161 blocks are possibly lost in loss record 92 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x3B3309C3C8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D19A: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D5EB: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x40A2BC: cvt_name_to_wire(std::string*, std::string*) (basic_string.tcc:701)
==10848==    by 0x40AC7B: RRCompString::set_name(std::string, std::string*) (rr.cc:170)
==10848==    by 0x40B036: RR_Compress::configure(InputF*, Zone*, std::string*) (rr.cc:274)
==10848==    by 0x412B9E: Zone::load(ZDB*, InputF*) (zonefile.cc:460)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 303,682 bytes in 8,154 blocks are possibly lost in loss record 93 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x3B3309C3C8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D19A: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D5EB: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x40A2BC: cvt_name_to_wire(std::string*, std::string*) (basic_string.tcc:701)
==10848==    by 0x40ACEB: RRCompString::set_name(std::string, std::string*) (rr.cc:175)
==10848==    by 0x40B036: RR_Compress::configure(InputF*, Zone*, std::string*) (rr.cc:274)
==10848==    by 0x412B9E: Zone::load(ZDB*, InputF*) (zonefile.cc:460)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 330,688 bytes in 5,167 blocks are still reachable in loss record 94 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x40E12A: RRSet::make(Zone*, std::string*, bool, int) (zdb.cc:129)
==10848==    by 0x40E6DD: Zone::insert(ZDB*, RR*, std::string*) (zdb.cc:85)
==10848==    by 0x412BF2: Zone::load(ZDB*, InputF*) (zonefile.cc:471)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 384,685 bytes in 8,052 blocks are possibly lost in loss record 95 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x3B3309C3C8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D19A: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D533: std::string::assign(std::string const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x40A416: RR::set_name(std::string*) (basic_string.h:511)
==10848==    by 0x40A60C: RR::make(std::string*, int, int, int, bool) (rr.cc:65)
==10848==    by 0x412B7A: Zone::load(ZDB*, InputF*) (zonefile.cc:455)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 390,281 bytes in 8,161 blocks are possibly lost in loss record 96 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x3B3309C3C8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D19A: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D533: std::string::assign(std::string const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x40ABDF: RRCompString::set_name(std::string, std::string*) (basic_string.h:511)
==10848==    by 0x40B036: RR_Compress::configure(InputF*, Zone*, std::string*) (rr.cc:274)
==10848==    by 0x412B9E: Zone::load(ZDB*, InputF*) (zonefile.cc:460)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 392,737 bytes in 8,052 blocks are possibly lost in loss record 97 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x3B3309C3C8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D19A: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x3B3309D5EB: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.13)
==10848==    by 0x40A2BC: cvt_name_to_wire(std::string*, std::string*) (basic_string.tcc:701)
==10848==    by 0x40A428: RR::set_name(std::string*) (rr.cc:111)
==10848==    by 0x40A60C: RR::make(std::string*, int, int, int, bool) (rr.cc:65)
==10848==    by 0x412B7A: Zone::load(ZDB*, InputF*) (zonefile.cc:455)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 461,056 bytes in 3,602 blocks are still reachable in loss record 98 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x40A941: RR::make(std::string*, int, int, int, bool) (rr.cc:43)
==10848==    by 0x412B7A: Zone::load(ZDB*, InputF*) (zonefile.cc:455)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== 851,712 bytes in 6,654 blocks are still reachable in loss record 99 of 99
==10848==    at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==10848==    by 0x40A54D: RR::make(std::string*, int, int, int, bool) (rr.cc:34)
==10848==    by 0x412B7A: Zone::load(ZDB*, InputF*) (zonefile.cc:455)
==10848==    by 0x413410: ZDB::load(std::string*, std::string*) (zonefile.cc:103)
==10848==    by 0x4136A9: load_zdb() (zonefile.cc:57)
==10848==    by 0x40D708: zdb_init() (zdb.cc:31)
==10848==    by 0x41C394: main (main.cc:114)
==10848== 
==10848== LEAK SUMMARY:
==10848==    definitely lost: 32 bytes in 4 blocks
==10848==    indirectly lost: 0 bytes in 0 blocks
==10848==      possibly lost: 3,689,953 bytes in 91,627 blocks
==10848==    still reachable: 3,009,292 bytes in 37,625 blocks
==10848==         suppressed: 0 bytes in 0 blocks
==10848== 
==10848== For counts of detected and suppressed errors, rerun with: -v
==10848== ERROR SUMMARY: 61 errors from 61 contexts (suppressed: 6 from 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions