After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313284 - camel indexing valgrind hits
camel indexing valgrind hits
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.4.x (obsolete)
Other Linux
: Normal normal
: Future
Assigned To: Not Zed
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-08-12 05:42 UTC by Not Zed
Modified: 2013-09-14 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes all of these hits (7.81 KB, patch)
2005-08-12 10:06 UTC, Not Zed
committed Details | Review

Description Not Zed 2005-08-12 05:42:36 UTC
Found some rare valgrind hits in code related to the indexer and beyond.

May be the cause of multiple bugs, but particularly the index corrupt assertion
failure one.

==29615== 

==29615== Use of uninitialised value of size 4

==29615==    at 0x3C221547: header_decode_lwsp (camel-mime-utils.c:962)

==29615==    by 0x3C2251EF: header_decode_param_list (camel-mime-utils.c:3136)

==29615==    by 0x3C225ABC: camel_content_type_decode (camel-mime-utils.c:3372)

==29615==    by 0x3C21DE58: folder_scan_step (camel-mime-parser.c:1612)

==29615==    by 0x3C21E219: folder_scan_step (camel-mime-parser.c:1733)

==29615==    by 0x3C21C7AC: camel_mime_parser_step (camel-mime-parser.c:627)

==29615==    by 0x3E891340: summary_build_content_info (camel-folder-summary.c:2095)

==29615==    by 0x3E88EB02: camel_folder_summary_info_new_from_parser
(camel-folder-summary.c:957)

==29615==    by 0x3E88E912: camel_folder_summary_add_from_parser
(camel-folder-summary.c:857)

==29615==    by 0x3F22ABD6: summary_update (camel-mbox-summary.c:468)

==29615==    by 0x3F22AF1F: mbox_summary_check (camel-mbox-summary.c:555)

==29615==    by 0x3F223F25: camel_local_summary_check (camel-local-summary.c:265)

==29615==    by 0x3F22B9BB: mbox_summary_sync (camel-mbox-summary.c:828)

==29615==    by 0x3F223F72: camel_local_summary_sync (camel-local-summary.c:294)

==29615==    by 0x3F221E43: camel_local_folder_construct (camel-local-folder.c:296)

==29615==    by 0x3F227642: camel_mbox_folder_new (camel-mbox-folder.c:126)

==29615== 


==29615== 

==29615== Conditional jump or move depends on uninitialised value(s)

==29615==    at 0x3C01EC05: strlen (mac_replace_strmem.c:189)

==29615==    by 0x3D6E0ED2: IA__g_string_insert_len (gstring.c:440)

==29615==    by 0x3D6E1319: IA__g_string_append (gstring.c:505)

==29615==    by 0x3C21042F: tokenise_step (camel-html-parser.c:752)

==29615==    by 0x3C20F8F9: camel_html_parser_step (camel-html-parser.c:141)

==29615==    by 0x3C2173A4: run (camel-mime-filter-html.c:131)

==29615==    by 0x3C21745A: filter (camel-mime-filter-html.c:164)

==29615==    by 0x3C219EEC: filter_run (camel-mime-filter.c:188)

==29615==    by 0x3C219F5C: camel_mime_filter_filter (camel-mime-filter.c:217)

==29615==    by 0x3C21E099: folder_scan_step (camel-mime-parser.c:1673)

==29615==    by 0x3C21C7AC: camel_mime_parser_step (camel-mime-parser.c:627)

==29615==    by 0x3E89123E: summary_build_content_info (camel-folder-summary.c:2077)

==29615==    by 0x3E89136C: summary_build_content_info (camel-folder-summary.c:2097)

==29615==    by 0x3E88EB02: camel_folder_summary_info_new_from_parser
(camel-folder-summary.c:957)

==29615==    by 0x3E88E912: camel_folder_summary_add_from_parser
(camel-folder-summary.c:857)

==29615==    by 0x3F22ABD6: summary_update (camel-mbox-summary.c:468)




and from bug 308074
==3105== Thread 2:
==3105== Conditional jump or move depends on uninitialised value(s)
==3105==    at 0x1BB4B225: ??? (camel-text-index.c:1453)
==3105==    by 0x1BB29645: camel_index_name_add_buffer (camel-index.c:327)
==3105==    by 0x1BB2F5F2: ??? (camel-mime-filter-index.c:67)
==3105==    by 0x1BB318E9: ??? (camel-mime-filter.c:187)
==3105==    by 0x1BB34DFC: ??? (camel-mime-parser.c:1686)
==3105==    by 0x1BB350BB: camel_mime_parser_step (camel-mime-parser.c:627)
==3105==    by 0x1C109B9E: ??? (camel-folder-summary.c:2013)
==3105==    by 0x1C10A027: camel_folder_summary_info_new_from_parser
(camel-folder-summary.c:914)
==3105==    by 0x1C10A0ED: camel_folder_summary_add_from_parser
(camel-folder-summary.c:822)
==3105==    by 0x1C59413F: ??? (camel-maildir-summary.c:488)
==3105==    by 0x1C59479B: ??? (camel-maildir-summary.c:609)
==3105==    by 0x1C589B24: camel_local_summary_check
(camel-local-summary.c:265)==3105==    by 0x1C5948C6: ???
(camel-maildir-summary.c:738)
==3105==    by 0x1C589B75: camel_local_summary_sync (camel-local-summary.c:294)
==3105==    by 0x1C5879B1: camel_local_folder_construct (camel-local-folder.c:296)
==3105==    by 0x1C591D10: camel_maildir_folder_new
(camel-maildir-folder.c:148)==3105==    by 0x1C59273E: ???
(camel-maildir-store.c:193)
==3105==    by 0x1C123031: camel_store_get_folder (camel-store.c:258)
==3105==    by 0x1C5930D6: ??? (camel-maildir-store.c:305)
==3105==    by 0x1C593662: ??? (camel-maildir-store.c:468)
==3105==    by 0x1C593824: ??? (camel-maildir-store.c:512)
==3105==    by 0x1C123F88: camel_store_get_folder_info (camel-store.c:774)
==3105==    by 0x1C2EB590: ??? (mail-ops.c:1065)
==3105==    by 0x1C2E80E8: ??? (mail-mt.c:556)
Comment 1 Not Zed 2005-08-12 08:25:01 UTC
=7517== Thread 6:
==7517== Source and destination overlap in memcpy(0x44FE73A0, 0x44FE73CA, 44)
==7517==    at 0x3C01EFF1: memcpy (mac_replace_strmem.c:113)
==7517==    by 0x3C21CAB1: folder_read (camel-mime-parser.c:907)
==7517==    by 0x3C21D749: folder_scan_content (camel-mime-parser.c:1332)
==7517==    by 0x3C21E12E: folder_scan_step (camel-mime-parser.c:1709)
==7517==    by 0x3C21C7AC: camel_mime_parser_step (camel-mime-parser.c:627)
==7517==    by 0x3E891340: summary_build_content_info (camel-folder-summary.c:2095)
==7517==    by 0x3E88EB02: camel_folder_summary_info_new_from_parser
(camel-folder-summary.c:957)
==7517==    by 0x3E88E912: camel_folder_summary_add_from_parser
(camel-folder-summary.c:857)
==7517==    by 0x3F22ED63: camel_maildir_summary_add (camel-maildir-summary.c:488)
==7517==    by 0x3F22F173: maildir_summary_check (camel-maildir-summary.c:609)
==7517==    by 0x3F223F25: camel_local_summary_check (camel-local-summary.c:265)
==7517==    by 0x3F22F5A9: maildir_summary_sync (camel-maildir-summary.c:738)
==7517==    by 0x3F223F72: camel_local_summary_sync (camel-local-summary.c:294)
==7517==    by 0x3F221E43: camel_local_folder_construct (camel-local-folder.c:296)
==7517==    by 0x3F22C6B4: camel_maildir_folder_new (camel-maildir-folder.c:148)
==7517==    by 0x3F22D1DE: get_folder (camel-maildir-store.c:193)
Comment 2 Not Zed 2005-08-12 10:06:13 UTC
Created attachment 50612 [details] [review]
fixes all of these hits
Comment 3 Harish Krishnaswamy 2005-09-28 12:30:21 UTC
Removed erroneous target milestone values and set them to FUTURE