← Back to team overview

compiz team mailing list archive

[Bug 1100564] [NEW] Several memory leaks in strdup() from ccsGSettingsIntegratedSettingReadValue() from ccsGNOMEIntegrationBackendReadISAndSetSettingForType() from ccsGNOMEIntegrationBackendReadOptionIntoSetting()

 

Public bug reported:

Several memory leaks in strdup() from
ccsGSettingsIntegratedSettingReadValue() from
ccsGNOMEIntegrationBackendReadISAndSetSettingForType() from
ccsGNOMEIntegrationBackendReadOptionIntoSetting()

==29374== 121 bytes in 12 blocks are definitely lost in loss record 1,025 of 1,293
==29374==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29374==    by 0x5688961: strdup (strdup.c:42)
==29374==    by 0xAFBAF2C: ccsGSettingsIntegratedSettingReadValue (ccs_gnome_integration_gsettings_integrated_setting.c:142)
==29374==    by 0xAFB9AB2: ccsGNOMEIntegrationBackendReadISAndSetSettingForType (ccs_gnome_integration.c:177)
==29374==    by 0xAFB9C24: ccsGNOMEIntegrationBackendReadOptionIntoSetting (ccs_gnome_integration.c:248)
==29374==    by 0xAFB8DEA: readSetting (gsettings.c:68)
==29374==    by 0xA2FF52A: ccsReadPluginSettingsDefault (main.c:3493)
==29374==    by 0xA2F1A50: ccsLoadPluginSettings (compiz.cpp:3254)
==29374==    by 0xA2FE341: ccsContextNew (main.c:552)
==29374==    by 0xA0C9AFE: CcpScreen::CcpScreen(CompScreen*) (ccp.cpp:509)
==29374==    by 0xA0CBE98: CompPlugin::VTableForScreen<CcpScreen>::initScreen(CompScreen*) (plugin.h:282)
==29374==    by 0x4EB1AD5: CompManager::initPlugin(CompPlugin*) (plugin.cpp:233)
==29374== 
==29374== 121 bytes in 12 blocks are definitely lost in loss record 1,026 of 1,293
==29374==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29374==    by 0x5688961: strdup (strdup.c:42)
==29374==    by 0xAFBAF2C: ccsGSettingsIntegratedSettingReadValue (ccs_gnome_integration_gsettings_integrated_setting.c:142)
==29374==    by 0xAFB9AB2: ccsGNOMEIntegrationBackendReadISAndSetSettingForType (ccs_gnome_integration.c:177)
==29374==    by 0xAFB9C24: ccsGNOMEIntegrationBackendReadOptionIntoSetting (ccs_gnome_integration.c:248)
==29374==    by 0xAFB8DEA: readSetting (gsettings.c:68)
==29374==    by 0xA2FBC46: ccsReadSettingsDefault (main.c:3451)
==29374==    by 0xA0C9B0A: CcpScreen::CcpScreen(CompScreen*) (ccp.cpp:510)
==29374==    by 0xA0CBE98: CompPlugin::VTableForScreen<CcpScreen>::initScreen(CompScreen*) (plugin.h:282)
==29374==    by 0x4EB1AD5: CompManager::initPlugin(CompPlugin*) (plugin.cpp:233)
==29374==    by 0x4EB23A0: CompPlugin::push(CompPlugin*) (plugin.cpp:449)
==29374==    by 0x4E83E53: compiz::private_screen::PluginManager::updatePlugins(CompScreen*, std::vector<CompOption::Value, std::allocator<CompOption::Value> > const&) (screen.cpp:1120)
==29374== 
==29374== 194 bytes in 10 blocks are definitely lost in loss record 1,088 of 1,293
==29374==    at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==29374==    by 0x5688961: strdup (strdup.c:42)
==29374==    by 0xAFBAF2C: ccsGSettingsIntegratedSettingReadValue (ccs_gnome_integration_gsettings_integrated_setting.c:142)
==29374==    by 0xAFB9AB2: ccsGNOMEIntegrationBackendReadISAndSetSettingForType (ccs_gnome_integration.c:177)
==29374==    by 0xAFB9C24: ccsGNOMEIntegrationBackendReadOptionIntoSetting (ccs_gnome_integration.c:248)
==29374==    by 0xAFB8DEA: readSetting (gsettings.c:68)
==29374==    by 0xA2FF52A: ccsReadPluginSettingsDefault (main.c:3493)
==29374==    by 0xA2F1A50: ccsLoadPluginSettings (compiz.cpp:3254)
==29374==    by 0xA2FF65C: ccsFindSettingDefault (main.c:609)
==29374==    by 0xA0CA754: CcpScreen::setOptionFromContext(CompOption*, char const*) (ccp.cpp:375)
==29374==    by 0xA0CB3C6: CcpScreen::initPluginForScreen(CompPlugin*) (ccp.cpp:496)
==29374==    by 0x4EB0EA3: CompScreen::initPluginForScreen(CompPlugin*) (plugin.cpp:268)
==29374==

** Affects: compiz
     Importance: High
     Assignee: Sam Spilsbury (smspillaz)
         Status: Triaged

** Affects: compiz (Ubuntu)
     Importance: High
         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 => High

-- 
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/1100564

Title:
  Several memory leaks in strdup() from
  ccsGSettingsIntegratedSettingReadValue() from
  ccsGNOMEIntegrationBackendReadISAndSetSettingForType() from
  ccsGNOMEIntegrationBackendReadOptionIntoSetting()

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


Follow ups

References