unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* read after free in notmuch new
@ 2017-02-19 14:15 David Bremner
  2017-02-19 15:29 ` David Bremner
  0 siblings, 1 reply; 10+ messages in thread
From: David Bremner @ 2017-02-19 14:15 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]


I haven't had a chance to really track this down, but it seems there is
a memory error in notmuch new (or a maybe false positive from valgrind).

Attached is the log from running "make memory-test OPTIONS=--medium" on
current git master (0e037c34).

It looks like we talloc the message_id string with the message object as
parent, but it somehow outlives the message object.


[-- Attachment #2: 1.log --]
[-- Type: application/octet-stream, Size: 32040 bytes --]

==4626== Memcheck, a memory error detector
==4626== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==4626== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==4626== Command: notmuch new
==4626== Parent PID: 11236
==4626== 
==4626== Invalid read of size 1
==4626==    at 0x4C2DDA2: strlen (vg_replace_strmem.c:454)
==4626==    by 0x642FDA2: vfprintf (vfprintf.c:1637)
==4626==    by 0x64DD9A5: __vsnprintf_chk (vsnprintf_chk.c:63)
==4626==    by 0x561916D: ??? (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x5619708: talloc_vasprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x56197B6: talloc_asprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x12F436: _notmuch_message_add_term (message.cc:1204)
==4626==    by 0x129B2F: _notmuch_database_link_message_to_parents (database.cc:2200)
==4626==    by 0x129B2F: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129B2F: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==  Address 0x12226470 is 96 bytes inside a block of size 131 free'd
==4626==    at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==4626==    by 0x561486A: _talloc_free (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x533466C: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x5334A69: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x125720: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:647)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==  Block was alloc'd at
==4626==    at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
==4626==    by 0x5617591: talloc_strndup (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x125624: _parse_message_id(void*, char const*, char const**) (database.cc:606)
==4626==    by 0x1256FC: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:644)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==    by 0x114669: main (notmuch.c:456)
==4626== 
==4626== Invalid read of size 1
==4626==    at 0x4C2DDB4: strlen (vg_replace_strmem.c:454)
==4626==    by 0x642FDA2: vfprintf (vfprintf.c:1637)
==4626==    by 0x64DD9A5: __vsnprintf_chk (vsnprintf_chk.c:63)
==4626==    by 0x561916D: ??? (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x5619708: talloc_vasprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x56197B6: talloc_asprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x12F436: _notmuch_message_add_term (message.cc:1204)
==4626==    by 0x129B2F: _notmuch_database_link_message_to_parents (database.cc:2200)
==4626==    by 0x129B2F: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129B2F: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==  Address 0x12226471 is 97 bytes inside a block of size 131 free'd
==4626==    at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==4626==    by 0x561486A: _talloc_free (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x533466C: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x5334A69: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x125720: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:647)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==  Block was alloc'd at
==4626==    at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
==4626==    by 0x5617591: talloc_strndup (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x125624: _parse_message_id(void*, char const*, char const**) (database.cc:606)
==4626==    by 0x1256FC: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:644)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==    by 0x114669: main (notmuch.c:456)
==4626== 
==4626== Invalid read of size 1
==4626==    at 0x4C320A8: __GI_mempcpy (vg_replace_strmem.c:1518)
==4626==    by 0x645BC0D: _IO_default_xsputn (genops.c:438)
==4626==    by 0x642FBDA: vfprintf (vfprintf.c:1637)
==4626==    by 0x64DD9A5: __vsnprintf_chk (vsnprintf_chk.c:63)
==4626==    by 0x561916D: ??? (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x5619708: talloc_vasprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x56197B6: talloc_asprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x12F436: _notmuch_message_add_term (message.cc:1204)
==4626==    by 0x129B2F: _notmuch_database_link_message_to_parents (database.cc:2200)
==4626==    by 0x129B2F: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129B2F: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==  Address 0x12226491 is 129 bytes inside a block of size 131 free'd
==4626==    at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==4626==    by 0x561486A: _talloc_free (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x533466C: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x5334A69: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x125720: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:647)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==  Block was alloc'd at
==4626==    at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
==4626==    by 0x5617591: talloc_strndup (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x125624: _parse_message_id(void*, char const*, char const**) (database.cc:606)
==4626==    by 0x1256FC: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:644)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==    by 0x114669: main (notmuch.c:456)
==4626== 
==4626== Invalid read of size 1
==4626==    at 0x4C320B8: __GI_mempcpy (vg_replace_strmem.c:1518)
==4626==    by 0x645BC0D: _IO_default_xsputn (genops.c:438)
==4626==    by 0x642FBDA: vfprintf (vfprintf.c:1637)
==4626==    by 0x64DD9A5: __vsnprintf_chk (vsnprintf_chk.c:63)
==4626==    by 0x561916D: ??? (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x5619708: talloc_vasprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x56197B6: talloc_asprintf (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x12F436: _notmuch_message_add_term (message.cc:1204)
==4626==    by 0x129B2F: _notmuch_database_link_message_to_parents (database.cc:2200)
==4626==    by 0x129B2F: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129B2F: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==  Address 0x1222648f is 127 bytes inside a block of size 131 free'd
==4626==    at 0x4C2BDDB: free (vg_replace_malloc.c:530)
==4626==    by 0x561486A: _talloc_free (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x533466C: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x5334A69: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x125720: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:647)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==  Block was alloc'd at
==4626==    at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
==4626==    by 0x5617591: talloc_strndup (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x125624: _parse_message_id(void*, char const*, char const**) (database.cc:606)
==4626==    by 0x1256FC: parse_references(void*, char const*, _GHashTable*, char const*) (database.cc:644)
==4626==    by 0x129AEA: _notmuch_database_link_message_to_parents (database.cc:2188)
==4626==    by 0x129AEA: _notmuch_database_link_message (database.cc:2371)
==4626==    by 0x129AEA: notmuch_database_add_message (database.cc:2521)
==4626==    by 0x11AACE: add_file (notmuch-new.c:264)
==4626==    by 0x11AACE: add_files (notmuch-new.c:599)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11A5E3: add_files (notmuch-new.c:483)
==4626==    by 0x11B48C: notmuch_new_command (notmuch-new.c:1100)
==4626==    by 0x114669: main (notmuch.c:456)
==4626== 
==4626== 
==4626== HEAP SUMMARY:
==4626==     in use at exit: 661,584 bytes in 820 blocks
==4626==   total heap usage: 132,610,938 allocs, 132,610,118 frees, 65,439,578,236 bytes allocated
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 237 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6410: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA2AB: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 238 of 591
==4626==    at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==4626==    by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D62E0: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA2AB: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 239 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6410: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA311: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 240 of 591
==4626==    at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==4626==    by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D62E0: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA311: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 241 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6410: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C39D4: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4151: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 242 of 591
==4626==    at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==4626==    by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D62E0: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C39D4: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4151: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 243 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6410: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BEB0B: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4156: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 16 bytes in 1 blocks are possibly lost in loss record 244 of 591
==4626==    at 0x4C2AADF: malloc (vg_replace_malloc.c:298)
==4626==    by 0x4C2CE5F: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D62E0: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF60: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BEB0B: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4156: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 96 bytes in 1 blocks are possibly lost in loss record 473 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5919: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50D5A03: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B407A: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 96 bytes in 1 blocks are possibly lost in loss record 474 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5919: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50D5A03: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF52: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA2AB: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 96 bytes in 1 blocks are possibly lost in loss record 475 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5919: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50D5A03: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF52: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA311: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 96 bytes in 1 blocks are possibly lost in loss record 476 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5919: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50D5A03: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF52: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C39D4: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4151: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 96 bytes in 1 blocks are possibly lost in loss record 477 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5919: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50D5A03: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAF52: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BEB0B: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4156: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== 96 bytes in 1 blocks are definitely lost in loss record 478 of 591
==4626==    at 0x4C2ABAF: malloc (vg_replace_malloc.c:299)
==4626==    by 0x561A6F2: talloc_enable_null_tracking (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.8)
==4626==    by 0x1145CE: main (notmuch.c:417)
==4626== 
==4626== 120 bytes in 1 blocks are possibly lost in loss record 518 of 591
==4626==    at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5897: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DB29C: g_type_register_static (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x4E78B2D: internet_address_list_get_type (in /usr/lib/x86_64-linux-gnu/libgmime-2.6.so.0.621.0)
==4626==    by 0x4E4B206: g_mime_init (in /usr/lib/x86_64-linux-gnu/libgmime-2.6.so.0.621.0)
==4626==    by 0x1145EB: main (notmuch.c:421)
==4626== 
==4626== 132 bytes in 1 blocks are possibly lost in loss record 522 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6D3F: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAFB0: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA2AB: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 132 bytes in 1 blocks are possibly lost in loss record 523 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6D3F: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAFB0: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BA311: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4147: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 148 bytes in 1 blocks are possibly lost in loss record 535 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6B02: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAFB0: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C39D4: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4151: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 148 bytes in 1 blocks are possibly lost in loss record 536 of 591
==4626==    at 0x4C2CBC5: calloc (vg_replace_malloc.c:711)
==4626==    by 0x534BE60: g_malloc0 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D6B02: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DAFB0: g_type_register_fundamental (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50BEB0B: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B4156: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626==    by 0xFFF000552: ???
==4626== 
==4626== 184 bytes in 1 blocks are possibly lost in loss record 542 of 591
==4626==    at 0x4C2CDCF: realloc (vg_replace_malloc.c:785)
==4626==    by 0x534BEC7: g_realloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.2)
==4626==    by 0x50D5897: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50DB29C: g_type_register_static (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C5659: g_param_type_register_static (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50C7983: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x50B415B: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5000.2)
==4626==    by 0x400F5D9: call_init.part.0 (dl-init.c:72)
==4626==    by 0x400F6EA: call_init (dl-init.c:30)
==4626==    by 0x400F6EA: _dl_init (dl-init.c:120)
==4626==    by 0x4000CD9: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
==4626==    by 0x1: ???
==4626==    by 0xFFF00054A: ???
==4626== 
==4626== LEAK SUMMARY:
==4626==    definitely lost: 96 bytes in 1 blocks
==4626==    indirectly lost: 0 bytes in 0 blocks
==4626==      possibly lost: 1,472 bytes in 19 blocks
==4626==    still reachable: 659,936 bytes in 799 blocks
==4626==                       of which reachable via heuristic:
==4626==                         newarray           : 1,536 bytes in 16 blocks
==4626==         suppressed: 0 bytes in 0 blocks
==4626== Reachable blocks (those to which a pointer was found) are not shown.
==4626== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==4626== 
==4626== For counts of detected and suppressed errors, rerun with: -v
==4626== ERROR SUMMARY: 240 errors from 24 contexts (suppressed: 0 from 0)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-03-01  1:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-19 14:15 read after free in notmuch new David Bremner
2017-02-19 15:29 ` David Bremner
2017-02-21  2:46   ` David Bremner
2017-02-21 20:25     ` Tomi Ollila
2017-02-22  1:05       ` David Bremner
2017-02-22  1:44         ` David Bremner
2017-02-22 10:32           ` [PATCH] lib: fix g_hash_table related read-after-free bug David Bremner
2017-02-22 11:25             ` Tomi Ollila
2017-02-23 13:12             ` David Bremner
2017-03-01  1:49   ` read after free in notmuch new David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).