← Back to team overview

compiz team mailing list archive

[Bug 1102829] [NEW] Several memory leaks in google::protobuf::DescriptorPool::InternalAddGeneratedFile() from google::protobuf::protobuf_AddDesc_*()

 

Public bug reported:

Several memory leaks in
google::protobuf::DescriptorPool::InternalAddGeneratedFile() from
google::protobuf::protobuf_AddDesc_*()

==684== 
==684== 43 bytes in 1 blocks are possibly lost in loss record 784 of 1,490
==684==    at 0x4C2AF8E: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==684==    by 0x51C13B8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C2127: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C286B: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0xA931220: google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void const*, int> >::AddFile(google::protobuf::FileDescriptorProto const&, std::pair<void const*, int>) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92D26E: google::protobuf::EncodedDescriptorDatabase::Add(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA8FA2D6: google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA32D61F: metadata::protobuf_AddDesc_compizconfig_2eproto() (compizconfig.pb.cc:401)
==684==    by 0xA306A1A: _GLOBAL__sub_I_compizconfig.pb.cc (compizconfig.pb.cc:432)
==684==    by 0x400F315: call_init.part.0 (dl-init.c:85)
==684==    by 0x400F3EE: _dl_init (dl-init.c:52)
==684==    by 0x4013AE9: dl_open_worker (dl-open.c:549)
==684== 
==684== 
==684== 57 bytes in 1 blocks are possibly lost in loss record 822 of 1,490
==684==    at 0x4C2AF8E: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==684==    by 0x51C13B8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C2127: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C286B: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0xA931220: google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void const*, int> >::AddFile(google::protobuf::FileDescriptorProto const&, std::pair<void const*, int>) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92D26E: google::protobuf::EncodedDescriptorDatabase::Add(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA8FA2D6: google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92945F: google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0x400F315: call_init.part.0 (dl-init.c:85)
==684==    by 0x400F3EE: _dl_init (dl-init.c:52)
==684==    by 0x4013AE9: dl_open_worker (dl-open.c:549)
==684==    by 0x400F185: _dl_catch_error (dl-error.c:178)
==684== 
==684== 
==684== 154 bytes in 3 blocks are possibly lost in loss record 1,330 of 1,490
==684==    at 0x4C2AF8E: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==684==    by 0x51C13B8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C2127: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C220F: std::string::reserve(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C26F5: std::string::append(std::string const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0xA910673: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA931324: google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void const*, int> >::AddFile(google::protobuf::FileDescriptorProto const&, std::pair<void const*, int>) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92D26E: google::protobuf::EncodedDescriptorDatabase::Add(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA8FA2D6: google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA32D61F: metadata::protobuf_AddDesc_compizconfig_2eproto() (compizconfig.pb.cc:401)
==684==    by 0xA306A1A: _GLOBAL__sub_I_compizconfig.pb.cc (compizconfig.pb.cc:432)
==684==    by 0x400F315: call_init.part.0 (dl-init.c:85)
==684== 
==684== 1,226 bytes in 17 blocks are possibly lost in loss record 1,450 of 1,490
==684==    at 0x4C2AF8E: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==684==    by 0x51C13B8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C2127: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C220F: std::string::reserve(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0x51C26F5: std::string::append(std::string const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==684==    by 0xA910673: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA931324: google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void const*, int> >::AddFile(google::protobuf::FileDescriptorProto const&, std::pair<void const*, int>) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92D26E: google::protobuf::EncodedDescriptorDatabase::Add(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA8FA2D6: google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int) (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0xA92945F: google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() (in /usr/lib/libprotobuf.so.7.0.0)
==684==    by 0x400F315: call_init.part.0 (dl-init.c:85)
==684==    by 0x400F3EE: _dl_init (dl-init.c:52)

** Affects: compiz
     Importance: Medium
         Status: Triaged

** Affects: compiz (Ubuntu)
     Importance: Medium
         Status: Triaged


** Tags: leak

** Also affects: compiz (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: compiz (Ubuntu)
       Status: New => Triaged

** Changed in: compiz (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1102829

Title:
  Several memory leaks in
  google::protobuf::DescriptorPool::InternalAddGeneratedFile() from
  google::protobuf::protobuf_AddDesc_*()

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/1102829/+subscriptions


Follow ups

References