Attached valgrind log 'valgrind-natty-e-calendar-factory.log.gz' was
generated with -dbg packages and a "-g -O0" build of e-calendar-factory.
Popping up and then dismissing the panel calendar popup (as described in
my previous post) causes valgrind to yield an ever-increasing number of
memory blocks "still reachable" each time I do that.  I believe these
blocks are effectively lost and won't ever be freed, and that they are
the major source of the e-calendar-factory memory leak problem (several
test runs suggest so).

I hope this helps the Evolution developers to track down and squash the
bug.

The big leaks all seem to come from a stack stemming from
send_and_handle_redirection()'s call to the libsoup send_message()
routine, at e-cal-backend-caldav.c:933 as shown in the last three
valgrind error blocks, e.g.:

==30646== 17,809,408 bytes in 1,087 blocks are still reachable in loss record 
4,182 of 4,182
==30646==    at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==30646==    by 0x4C29026: realloc (vg_replace_malloc.c:525)
==30646==    by 0x114710FF: _gnutls_recv_int (gnutls_record.c:813)
==30646==    by 0x15A9F40E: ??? (in 
/usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so)
==30646==    by 0x793E1CE: g_input_stream_read (ginputstream.c:204)
==30646==    by 0x73741D2: read_from_network (soup-socket.c:1157)
==30646==    by 0x73763F4: soup_socket_read_until (soup-socket.c:1329)
==30646==    by 0x7365C3F: read_metadata (soup-message-io.c:285)
==30646==    by 0x7366C14: io_read (soup-message-io.c:848)
==30646==    by 0x73738F0: process_queue_item (soup-session-sync.c:287)
==30646==    by 0x7373CF2: send_message (soup-session-sync.c:366)
==30646==    by 0x1377C202: send_and_handle_redirection 
(e-cal-backend-caldav.c:933)
==30646==    by 0x1377C3EA: caldav_server_open_calendar 
(e-cal-backend-caldav.c:988)
==30646==    by 0x1377FECB: caldav_do_open (e-cal-backend-caldav.c:2374)
==30646==    [.... more stack trace; see attached file ....]


** Attachment added: "valgrind-natty-e-calendar-factory.log.gz"
   
https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/648618/+attachment/2115262/+files/valgrind-natty-e-calendar-factory.log.gz

** Changed in: evolution (Ubuntu)
     Assignee: Kamal Mostafa (kamalmostafa) => (unassigned)

** Changed in: evolution (Ubuntu)
       Status: Confirmed => Triaged

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

Title:
  evolution (e-calendar-factory) memory leak

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to