Bug 790080

Summary: Pidgin eats 256MB - probably leaking memory
Product: [Fedora] Fedora Reporter: Zdenek Kabelac <zkabelac>
Component: pidginAssignee: Stu Tomlinson <stu>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, itamar, jsynacek, stu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-26 08:17:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zdenek Kabelac 2012-02-13 15:51:37 UTC
Description of problem:

Seems like current version of pidgin (or its plugin) starts to leak memory massively:

VMSIZE:     879228 kb
RSS:        262160 kb total
              5696 kb shared
              2280 kb private clean
            254184 kb private dirty
PRIVATE MAPPINGS
     vmsize   rss clean   rss dirty   file
  249304 kb        0 kb   249168 kb   [heap]
    2372 kb        0 kb     2372 kb
     148 kb        0 kb      148 kb   /usr/lib64/libcrypto.so.1.0.1
     220 kb        0 kb      112 kb   [stack]
     104 kb        0 kb      104 kb
      40 kb        0 kb       40 kb   /usr/lib64/libkrb5.so.3.3
      36 kb        0 kb       36 kb   /usr/lib64/libpurple.so.0.10.1
      32 kb        0 kb       32 kb   /usr/lib64/libstdc++.so.6.0.17
      32 kb        0 kb       32 kb   /usr/lib64/libgnutls.so.26.21.8
      32 kb        0 kb       32 kb   /usr/lib64/libxml2.so.2.7.8
      28 kb        0 kb       28 kb   /usr/lib64/libdb-5.2.so
      28 kb        0 kb       28 kb   /usr/lib64/libnss3.so
      28 kb        0 kb       28 kb   /usr/lib64/libgtk-x11-2.0.so.0.2400.10
      28 kb        0 kb       28 kb
      24 kb        0 kb       24 kb   /usr/lib64/libnssutil3.so
      24 kb        0 kb       24 kb   /usr/lib64/libpixman-1.so.0.24.2
      24 kb        0 kb       24 kb   /usr/lib64/libfreetype.so.6.8.0
      20 kb        0 kb       20 kb   /usr/bin/pidgin
      20 kb        0 kb       20 kb
      20 kb        0 kb       20 kb   /usr/lib64/libgstreamer-0.10.so.0.29.0
      20 kb        0 kb       20 kb   /usr/lib64/libX11.so.6.3.0
      84 kb        0 kb       16 kb
      16 kb        0 kb       16 kb   /usr/lib64/libsmime3.so
      16 kb        0 kb       16 kb
      16 kb        0 kb       16 kb   /usr/lib64/libc-2.15.so
      16 kb        0 kb       16 kb
      16 kb        0 kb       16 kb   /usr/lib64/libgio-2.0.so.0.3116.0
      16 kb        0 kb       16 kb   /usr/lib64/libgdk-x11-2.0.so.0.2400.10
      16 kb        0 kb       16 kb   /usr/lib64/libgtk-x11-2.0.so.0.2400.10
      12 kb        0 kb       12 kb   /usr/lib64/libcroco-0.6.so.3.0.1
      12 kb        0 kb       12 kb   /usr/lib64/libdb-5.2.so
      12 kb        0 kb       12 kb   /usr/lib64/libnspr4.so
      12 kb        0 kb       12 kb   /usr/lib64/libssl3.so
      32 kb        0 kb       12 kb   /usr/lib64/purple-2/libmsn-pecan.so
      12 kb        0 kb       12 kb   /usr/lib64/purple-2/libjabber.so.0.0.0
      12 kb        0 kb       12 kb
      12 kb        0 kb       12 kb   /usr/lib64/libgcrypt.so.11.7.0
      12 kb        0 kb       12 kb
      16 kb        0 kb        8 kb   /usr/lib64/libhunspell-1.3.so.0.0
...

Editor témat Pidgina
	Author: Sadrul Habib Chowdhury <imadil>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-theme-editor
	Loadable: Yes
	Loaded: No

Ikonifikovat při nepřítomnosti
	Author: Eric Warmenhoven <eric>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-iconaway
	Loadable: Yes
	Loaded: No

Prohlížení XMPP služeb
	Author: Paul Aurich <paul>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-xmppdisco
	Loadable: Yes
	Loaded: No

Časová značka
	Author: Sean Egan <seanegan>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-timestamp
	Loadable: Yes
	Loaded: No

Off-the-Record Messaging
	Author: Ian Goldberg, Rob Smits,
			Chris Alexander, Nikita Borisov
			<otr>
	Version: 3.2.0
	Website: http://otr.cypherpunks.ca/
	ID String: otr
	Loadable: Yes
	Loaded: No

Konzola XMPP
	Author: Sean Egan <seanegan>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-xmpp
	Loadable: Yes
	Loaded: No

Privacy Please
	Author: Stefan Ott <stefan>
	Version: 0.7.1
	Website: http://pidgin-privacy-please.googlecode.com/
	ID String: core-pidgin_pp_
	Loadable: Yes
	Loaded: No

Gesta myši
	Author: Christian Hammond <chipx86>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-x11-gestures
	Loadable: Yes
	Loaded: No

Historie
	Author: Sean Egan <seanegan>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-history
	Loadable: Yes
	Loaded: Yes

Upozornění na zprávu
	Author: Etan Reisner <deryni.edu>,
Brian Tarricone <bjt23>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-x11-notify
	Loadable: Yes
	Loaded: No

Poznámky o kamarádech
	Author: Etan Reisner <deryni>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtkbuddynote
	Loadable: Yes
	Loaded: No

Zvýrazněná čára
	Author: Sadrul H Chowdhury <sadrul.net>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-plugin_pack-markerline
	Loadable: Yes
	Loaded: No

Music Messaging
	Author: Christian Muise <christian.muise>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-hazure-musicmessaging
	Loadable: Yes
	Loaded: No

Náhrada textu
	Author: Eric Warmenhoven <eric>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-spellcheck
	Loadable: Yes
	Loaded: No

Barvy konverzace
	Author: Sadrul H Chowdhury <sadrul.net>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-plugin_pack-convcolors
	Loadable: Yes
	Loaded: No

Log Viewer
	Author: Tirtha Chatterjee <tirtha.p.chatterjee>
	Version: 0.2-11.20110228svn15.fc17
	Website: http://thebengaliheart.wordpress.com/
	ID String: gtk-log_view
	Loadable: Yes
	Loaded: Yes

DalUmístění
	Author: Stu Tomlinson <stu>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-extplacement
	Loadable: Yes
	Loaded: No

Ovládání tématu GTK+ Pidginu
	Author: Etan Reisner <deryni>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: purplerc
	Loadable: Yes
	Loaded: No

Ticker kamarádů
	Author: Syd Logan
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-ticker
	Loadable: Yes
	Loaded: No

Tlačítko Odeslat
	Author: Etan Reisner <deryni>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtksendbutton
	Loadable: Yes
	Loaded: No

Formáty časových značek zpráv
	Author: Richard Laager <rlaager>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-timestamp_format
	Loadable: Yes
	Loaded: No

Nastavení Hlasu/Videa
	Author: Mike Ruprecht <cmaiku>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: gtk-maiku-vvconfig
	Loadable: Yes
	Loaded: Yes

Guifications
	Author: Gary Kramlich <grim>
	Version: 2.16
	Website: http://pidgin.guifications.org
	ID String: gtk-amc_grim-Guifications
	Loadable: Yes
	Loaded: Yes

SSL
	Author: Christian Hammond <chipx86>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-ssl
	Loadable: Yes
	Loaded: Yes

Nový řádek
	Author: Stu Tomlinson <stu>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-plugin_pack-newline
	Loadable: Yes
	Loaded: No

IRC
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-irc
	Loadable: Yes
	Loaded: Yes

Yahoo JAPAN
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-yahoojp
	Loadable: Yes
	Loaded: Yes

Libnotify Popups
	Author: Duarte Henriques <duarte.henriques>
	Version: 0.14
	Website: http://sourceforge.net/projects/gaim-libnotify/
	ID String: pidgin-libnotify
	Loadable: Yes
	Loaded: No

Yahoo
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-yahoo
	Loadable: Yes
	Loaded: Yes

Upozornění na stav kamaráda
	Author: Christian Hammond <chipx86>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-statenotify
	Loadable: Yes
	Loaded: No

Facebook
	Author: Eion Robb <eionrobb>
	Version: 1.69
	Website: http://pidgin-facebookchat.googlecode.com/
	ID String: prpl-bigbrownchunx-facebookim
	Loadable: Yes
	Loaded: Yes

Automatické přijímání
	Author: Sadrul H Chowdhury <sadrul.net>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-plugin_pack-autoaccept
	Loadable: Yes
	Loaded: No

ICQ
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-icq
	Loadable: Yes
	Loaded: Yes

AIM
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-aim
	Loadable: Yes
	Loaded: Yes

Poznámky o kamarádech
	Author: Stu Tomlinson <stu>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-plugin_pack-buddynote
	Loadable: Yes
	Loaded: No

Příklad DBusu
	Author: Piotr Zielinski (http://cl.cam.ac.uk/~pz215)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: dbus-example
	Loadable: Yes
	Loaded: No

Office Communicator
	Author: Anibal Avelar <avelar>, Gabriel Burt <gburt>, Stefan Becker <stefan.becker>, pier11 <pier11>
	Version: 1.12.0
	Website: http://sipe.sourceforge.net/
	ID String: prpl-sipe
	Loadable: Yes
	Loaded: Yes

MySpaceIM
	Author: Jeff Connelly <jeff2.im>
	Version: 0.18
	Website: http://developer.pidgin.im/wiki/MySpaceIM/
	ID String: prpl-myspace
	Loadable: Yes
	Loaded: Yes

Zephyr
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-zephyr
	Loadable: Yes
	Loaded: Yes

MSN
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-msn
	Loadable: Yes
	Loaded: Yes

MXit
	Author: Pieter Loubser <libpurple>
	Version: 2.10.1-3.fc17
	Website: http://www.mxit.com
	ID String: prpl-loubserp-mxit
	Loadable: Yes
	Loaded: Yes

Čtečka záznamů
	Author: Richard Laager <rlaager>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-log_reader
	Loadable: Yes
	Loaded: No

Sametime
	Author: Christopher (siege) O'Brien <siege>
	Version: 2.10.1-3.fc17
	Website: http://meanwhile.sourceforge.net/
	ID String: prpl-meanwhile
	Loadable: Yes
	Loaded: Yes

Gadu-Gadu
	Author: boler
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-gg
	Loadable: Yes
	Loaded: Yes

XMPP
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-jabber
	Loadable: Yes
	Loaded: Yes

Telepatický režim
	Author: Christopher O'Brien <siege>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-psychic
	Loadable: Yes
	Loaded: Yes

SILC
	Author: Pekka Riikonen
	Version: 1.1
	Website: http://silcnet.org/
	ID String: prpl-silc
	Loadable: Yes
	Loaded: Yes

Emulace zprávy při odpojení
	Author: Sadrul H Chowdhury <sadrul.net>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-plugin_pack-offlinemsg
	Loadable: Yes
	Loaded: No

Podpora jednorázového hesla
	Author: Daniel Atallah <datallah>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-one_time_password
	Loadable: Yes
	Loaded: No

WLM
	Author: Felipe Contreras <felipe.contreras>
	Version: 0.1.3
	Website: http://code.google.com/p/msn-pecan/
	ID String: prpl-msn-pecan
	Loadable: Yes
	Loaded: Yes

SIMPLE
	Author: Thomas Butter <butter>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-simple
	Loadable: Yes
	Loaded: Yes

GroupWise
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-novell
	Loadable: Yes
	Loaded: Yes

NSS
	Author: Christian Hammond <chipx86>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: ssl-nss
	Loadable: Yes
	Loaded: Yes

Skrývání připojování/odpojování
	Author: Richard Laager <rlaager>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-rlaager-joinpart
	Loadable: Yes
	Loaded: Yes

Tvůrce nečinnosti
	Author: Eric Warmenhoven <eric>
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: core-idle
	Loadable: Yes
	Loaded: No

Bonjour
	Author: (null)
	Version: 2.10.1-3.fc17
	Website: http://pidgin.im/
	ID String: prpl-bonjour
	Loadable: Yes
	Loaded: Yes

Have no real idea how to isolate the problem here.


Version-Release number of selected component (if applicable):
pidgin-otr-3.2.0-5.fc17.x86_64
pidgin-2.10.1-3.fc17.x86_64
pidgin-logviewer-0.2-11.20110228svn15.fc17.x86_64
pidgin-libnotify-0.14-8.fc17.x86_64
pidgin-guifications-2.16-7.fc17.x86_64
pidgin-sipe-1.12.0-3.fc17.x86_64
pidgin-privacy-please-0.7.1-3.fc17.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2012-03-05 17:38:01 UTC
Is there any work in progress ?

Even plain (though quite painful) run of valgrind reveals many many issue.

I.e. just to pick some:
(Sorry - without debug info installed - I may rerun in case of interest)


==00:00:12:27.972 23994== 164,304 bytes in 163 blocks are possibly lost in loss record 12,866 of 12,869
==00:00:12:27.972 23994==    at 0x4C26D5E: memalign (vg_replace_malloc.c:694)
==00:00:12:27.972 23994==    by 0x4C26E07: posix_memalign (vg_replace_malloc.c:835)
==00:00:12:27.972 23994==    by 0x9984258: slab_allocator_alloc_chunk (gslice.c:1381)
==00:00:12:27.972 23994==    by 0x99CB51A: g_slice_alloc (gslice.c:724)
==00:00:12:27.972 23994==    by 0x99A1782: g_hash_table_new_full (ghash.c:689)
==00:00:12:27.972 23994==    by 0x7B2A441: purple_status_new (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.972 23994==    by 0x7B16E1A: purple_prpl_get_statuses (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.972 23994==    by 0x7B2B2B2: purple_presence_new_for_buddy (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.972 23994==    by 0x7ACE650: purple_buddy_new (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.972 23994==    by 0x7AD1752: purple_blist_load (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.972 23994==    by 0x43152C: main (in /usr/bin/pidgin)

==00:00:12:27.970 23994== 127,968 bytes in 258 blocks are possibly lost in loss record 12,864 of 12,869
==00:00:12:27.970 23994==    at 0x4C26D5E: memalign (vg_replace_malloc.c:694)
==00:00:12:27.970 23994==    by 0x4C26E07: posix_memalign (vg_replace_malloc.c:835)
==00:00:12:27.970 23994==    by 0x9984258: slab_allocator_alloc_chunk (gslice.c:1381)
==00:00:12:27.971 23994==    by 0x99CB51A: g_slice_alloc (gslice.c:724)
==00:00:12:27.971 23994==    by 0x99CEB8A: g_string_sized_new (gstring.c:121)
==00:00:12:27.971 23994==    by 0x999EC2D: g_build_path_va (gfileutils.c:1702)
==00:00:12:27.971 23994==    by 0x99A02B7: g_build_filename (gfileutils.c:2042)
==00:00:12:27.971 23994==    by 0x7AF3261: purple_log_common_lister (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x7AF190E: purple_log_get_logs (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x17220ABB: ??? (in /usr/lib64/pidgin/history.so)
==00:00:12:27.971 23994==    by 0x7B22B4C: purple_signal_emit_vargs (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x7B22C8D: purple_signal_emit (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x7AE44DD: purple_conversation_new (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x7B21767: serv_got_joined_chat (in /usr/lib64/libpurple.so.0.10.1)
==00:00:12:27.971 23994==    by 0x194BDE4A: irc_msg_join (in /usr/lib64/purple-2/libirc.so)
==00:00:12:27.971 23994==    by 0x194C0AB0: irc_parse_msg (in /usr/lib64/purple-2/libirc.so)
==00:00:12:27.971 23994==    by 0x194B90C1: ??? (in /usr/lib64/purple-2/libirc.so)
==00:00:12:27.971 23994==    by 0x47301C: ??? (in /usr/bin/pidgin)
==00:00:12:27.971 23994==    by 0x99B146B: g_main_context_dispatch (gmain.c:2510)
==00:00:12:27.971 23994==    by 0x99B1887: g_main_context_iterate.isra.23 (gmain.c:3118)
==00:00:12:27.971 23994==    by 0x99B1C71: g_main_loop_run (gmain.c:3312)
==00:00:12:27.971 23994==    by 0x5CF2D66: gtk_main (gtkmain.c:1256)
==00:00:12:27.971 23994==    by 0x431705: main (in /usr/bin/pidgin)

Comment 2 Jan Synacek 2012-09-26 08:17:27 UTC
> Have no real idea how to isolate the problem here.
Disable all plugins that are not enabled by default and try again.

Anyway, I can't see any huge leaks in 2.10.5. If the problem still appears, please, file an up-to-date.