Re: Squatter core dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, here attached you find the complete log up to memory fault.
Hope this helps, and if you need me to change some code, rebuild binary and test, I'll keep the clone up for some time.
 
Gabriele
 
 
Sonicle S.r.l. http://www.sonicle.com
Music: http://www.gabrielebulfon.com
eXoplanets : https://gabrielebulfon.bandcamp.com/album/exoplanets
 
 



Da: Robert Stepanek <rsto@xxxxxxxxxxxxxxxx>
A: Gabriele Bulfon via Info <info@xxxxxxxxxxxxxxxxxx>
Data: 7 maggio 2021 17.45.19 CEST
Oggetto: Re: Squatter core dump


On Fri, May 7, 2021, at 5:31 PM, Gabriele Bulfon via Info wrote:
Never did, it's our illumos distro, but I may have valgrind.
Can you help on this?
 
Just running "valgrind --leak-check=full <path-to-squatter> <your-args>" should do the trick.
 
Cheers,
Robert
sonicle@wwwclone:/sonicle/var/spool/imap/domain/sonicle.com/user/test^big$ valgrind --leak-check=full squatter -v -i -s -a -r user/test.big@xxxxxxxxxxx
==17293== Memcheck, a memory error detector
==17293== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==17293== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==17293== Command: squatter -v -i -s -a -r user/test.big@xxxxxxxxxxx
==17293==
==17293== Warning: invalid file descriptor -1 in syscall fstat()
==17293== Warning: invalid file descriptor -1 in syscall fstat()
==17293== Syscall param putmsg(ctrlptr->buf) points to uninitialised byte(s)
==17293==    at 0xFFFEDD57A: __putmsg (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76AEA: vsyslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76702: syslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFCCFB6D: config_read (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0xFFFD46558: cyrus_init (in /sonicle/lib/amd64/libcyrus_imap.so.0.0.0)
==17293==    by 0x4054D4: main (squatter.c:706)
==17293==  Address 0x57fed650 is on thread 1's stack
==17293==  in frame #1, created by vsyslog (???:)
==17293==
==17293== Syscall param putmsg(ctrlptr->buf) points to uninitialised byte(s)
==17293==    at 0xFFFEDD57A: __putmsg (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76AEA: vsyslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76702: syslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFCCF8AC: config_read (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0xFFFD46558: cyrus_init (in /sonicle/lib/amd64/libcyrus_imap.so.0.0.0)
==17293==    by 0x4054D4: main (squatter.c:706)
==17293==  Address 0x57fed650 is on thread 1's stack
==17293==  in frame #1, created by vsyslog (???:)
==17293==
==17293== Syscall param putmsg(ctrlptr->buf) points to uninitialised byte(s)
==17293==    at 0xFFFEDD57A: __putmsg (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76AEA: vsyslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76702: syslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFCCF1C9: config_read (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0xFFFD46558: cyrus_init (in /sonicle/lib/amd64/libcyrus_imap.so.0.0.0)
==17293==    by 0x4054D4: main (squatter.c:706)
==17293==  Address 0x57fed650 is on thread 1's stack
==17293==  in frame #1, created by vsyslog (???:)
==17293==
==17293== Syscall param putmsg(ctrlptr->buf) points to uninitialised byte(s)
==17293==    at 0xFFFEDD57A: __putmsg (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76AEA: vsyslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76702: syslog (in /lib/amd64/libc.so.1)
==17293==    by 0x4054E8: main (squatter.c:708)
==17293==  Address 0x57fee700 is on thread 1's stack
==17293==  in frame #1, created by vsyslog (???:)
==17293==
==17293== Syscall param putmsg(ctrlptr->buf) points to uninitialised byte(s)
==17293==    at 0xFFFEDD57A: __putmsg (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76AEA: vsyslog (in /lib/amd64/libc.so.1)
==17293==    by 0xFFFE76702: syslog (in /lib/amd64/libc.so.1)
==17293==    by 0x4052F2: index_me (squatter.c:631)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0x57fede00 is on thread 1's stack
==17293==  in frame #1, created by vsyslog (???:)
==17293==
Indexing mailbox user/test.big@xxxxxxxxxxx... Doing incremental for mailbox sonicle.com!user.test^big... ==17293== Warning: set address range perms: large range [0xfbf04c040, 0xfe5ddcea0) (undefined)
==17293== Warning: set address range perms: large range [0xfbf04c028, 0xfe5ddceb8) (noaccess)
==17293== Warning: set address range perms: large range [0xfd2480040, 0xfea221ad0) (undefined)
==17293== Warning: set address range perms: large range [0xfd2480028, 0xfea221ae8) (noaccess)
==17293== Warning: set address range perms: large range [0xfc0bf8040, 0xfd247f7c0) (undefined)
==17293== Warning: set address range perms: large range [0xfc0bf8028, 0xfd247f7d8) (noaccess)
==17293== Warning: set address range perms: large range [0xfdcb53040, 0xff021eec0) (undefined)
==17293== Warning: set address range perms: large range [0xfdcb53028, 0xff021eed8) (noaccess)
==17293== Warning: set address range perms: large range [0xfc8abe040, 0xfdcb52510) (undefined)
==17293== Warning: set address range perms: large range [0xfc8abe028, 0xfdcb52528) (noaccess)
==17293== Warning: set address range perms: large range [0xfae945040, 0xfc8abdeb0) (undefined)
==17293== Warning: set address range perms: large range [0xfae945028, 0xfc8abdec8) (noaccess)
==17293== Warning: set address range perms: large range [0xfde245040, 0xff021e1e0) (undefined)
==17293== Warning: set address range perms: large range [0xfde245028, 0xff021e1f8) (noaccess)
==17293== Warning: set address range perms: large range [0xfcc619040, 0xfde244e10) (undefined)
==17293== Warning: set address range perms: large range [0xfcc619028, 0xfde244e28) (noaccess)
==17293== Warning: set address range perms: large range [0xfde465040, 0xff021e870) (undefined)
==17293== Warning: set address range perms: large range [0xfde465028, 0xff021e888) (noaccess)
==17293== Warning: set address range perms: large range [0xfc5ab3040, 0xfde464930) (undefined)
==17293== Warning: set address range perms: large range [0xfc5ab3028, 0xfde464948) (noaccess)
==17293== Warning: set address range perms: large range [0xfe0146040, 0xff021ea20) (undefined)
==17293== Warning: set address range perms: large range [0xfe0146028, 0xff021ea38) (noaccess)
==17293== Warning: set address range perms: large range [0xfcf9c1040, 0xfe01455f0) (undefined)
==17293== Warning: set address range perms: large range [0xfcf9c1028, 0xfe0145608) (noaccess)
==17293== Warning: set address range perms: large range [0xfbaca8040, 0xfcf9c0a50) (undefined)
==17293== Warning: set address range perms: large range [0xfbaca8028, 0xfcf9c0a68) (noaccess)
==17293== Warning: set address range perms: large range [0xfdbfc4040, 0xff021e950) (undefined)
==17293== Warning: set address range perms: large range [0xfdbfc4028, 0xff021e968) (noaccess)
==17293== Warning: set address range perms: large range [0xfc5cb1040, 0xfdbfc34a0) (undefined)
==17293== Warning: set address range perms: large range [0xfc5cb1028, 0xfdbfc34b8) (noaccess)
==17293== Warning: set address range perms: large range [0xfaf2f6040, 0xfc5cb0260) (undefined)
==17293== Warning: set address range perms: large range [0xfaf2f6028, 0xfc5cb0278) (noaccess)
==17293== Warning: set address range perms: large range [0xfdc912040, 0xff021ef00) (undefined)
==17293== Warning: set address range perms: large range [0xfdc912028, 0xff021ef18) (noaccess)
==17293== Warning: set address range perms: large range [0xfb5db2040, 0xfcccf06b0) (undefined)
==17293== Warning: set address range perms: large range [0xfb5db2028, 0xfcccf06c8) (noaccess)
==17293== Warning: set address range perms: large range [0xfdbcd9040, 0xff021e020) (undefined)
==17293== Warning: set address range perms: large range [0xfdbcd9028, 0xff021e038) (noaccess)
==17293== Warning: set address range perms: large range [0xfc3e7d040, 0xfdbcd8a30) (undefined)
==17293== Warning: set address range perms: large range [0xfc3e7d028, 0xfdbcd8a48) (noaccess)
==17293== Warning: set address range perms: large range [0xfdda43040, 0xff021e5e0) (undefined)
==17293== Warning: set address range perms: large range [0xfdda43028, 0xff021e5f8) (noaccess)
==17293== Warning: set address range perms: large range [0xfcc4ba040, 0xfdda42ae0) (undefined)
==17293== Warning: set address range perms: large range [0xfcc4ba028, 0xfdda42af8) (noaccess)
==17293== Warning: set address range perms: large range [0xfdf4c1040, 0xff021e060) (undefined)
==17293== Warning: set address range perms: large range [0xfdf4c1028, 0xff021e078) (noaccess)
==17293== Warning: set address range perms: large range [0xfcee76040, 0xfdf4c0310) (undefined)
==17293== Warning: set address range perms: large range [0xfcee76028, 0xfdf4c0328) (noaccess)
==17293== Warning: set address range perms: large range [0xfdf541040, 0xff021e6d0) (undefined)
==17293== Warning: set address range perms: large range [0xfdf541028, 0xff021e6e8) (noaccess)
==17293== Warning: set address range perms: large range [0xfcf003040, 0xfdf540a70) (undefined)
==17293== Warning: set address range perms: large range [0xfcf003028, 0xfdf540a88) (noaccess)
==17293== Warning: set address range perms: large range [0xfc005f000, 0xff021f000) (defined)
==17293== Invalid write of size 4
==17293==    at 0x4067A7: add_word_to_trie (squat_build.c:790)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0xff2804fc8 is 8 bytes after a block of size 9,060,224 alloc'd
==17293==    at 0xFFFF6529F: malloc (vg_replace_malloc.c:319)
==17293==    by 0xFFFCD69FE: xmalloc (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0x407BFF: dump_index_trie_words (squat_build.c:1415)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==
==17293== Invalid write of size 8
==17293==    at 0x406752: add_to_table (squat_build.c:770)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0xff2804fc0 is 0 bytes after a block of size 9,060,224 alloc'd
==17293==    at 0xFFFF6529F: malloc (vg_replace_malloc.c:319)
==17293==    by 0xFFFCD69FE: xmalloc (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0x407BFF: dump_index_trie_words (squat_build.c:1415)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==
==17293== Invalid write of size 8
==17293==    at 0x40672F: add_to_table (squat_build.c:763)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0xff2805020 is 32 bytes before a block of size 2,064 in arena "client"
==17293==
==17293== Invalid read of size 8
==17293==    at 0x40674B: add_to_table (squat_build.c:770)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0xff28149a0 is 0 bytes inside a block of size 2,056 free'd
==17293==    at 0xFFFF64A29: free (vg_replace_malloc.c:549)
==17293==    by 0x407A28: write_trie_word_data (squat_build.c:1364)
==17293==    by 0x407901: write_trie_word_data (squat_build.c:1340)
==17293==    by 0x407D5A: dump_index_trie_words (squat_build.c:1463)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Block was alloc'd at
==17293==    at 0xFFFF6529F: malloc (vg_replace_malloc.c:319)
==17293==    by 0xFFFCD69FE: xmalloc (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0x40668E: add_to_table (squat_build.c:744)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==
==17293== Invalid write of size 8
==17293==    at 0x406760: add_to_table (squat_build.c:773)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Address 0xff28149a0 is 0 bytes inside a block of size 2,056 free'd
==17293==    at 0xFFFF64A29: free (vg_replace_malloc.c:549)
==17293==    by 0x407A28: write_trie_word_data (squat_build.c:1364)
==17293==    by 0x407901: write_trie_word_data (squat_build.c:1340)
==17293==    by 0x407D5A: dump_index_trie_words (squat_build.c:1463)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  Block was alloc'd at
==17293==    at 0xFFFF6529F: malloc (vg_replace_malloc.c:319)
==17293==    by 0xFFFCD69FE: xmalloc (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0x40668E: add_to_table (squat_build.c:744)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==
==17293==
==17293== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==17293==  Access not within mapped region at address 0xF000002F5
==17293==    at 0x40674B: add_to_table (squat_build.c:770)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==  If you believe this happened as a result of a stack
==17293==  overflow in your program's main thread (unlikely but
==17293==  possible), you can try to increase the size of the
==17293==  main thread stack using the --main-stacksize= flag.
==17293==  The main thread stack size used in this run was 10485760.
==17293==
==17293== HEAP SUMMARY:
==17293==     in use at exit: 33,725,540 bytes in 9,489 blocks
==17293==   total heap usage: 175,985,562 allocs, 175,976,073 frees, 26,363,703,442 bytes allocated
==17293==
==17293== 195,320 bytes in 95 blocks are definitely lost in loss record 47 of 55
==17293==    at 0xFFFF6529F: malloc (vg_replace_malloc.c:319)
==17293==    by 0xFFFCD69FE: xmalloc (in /sonicle/lib/amd64/libcyrus_min.so.0.0.0)
==17293==    by 0x40668E: add_to_table (squat_build.c:744)
==17293==    by 0x4067C5: add_word_to_trie (squat_build.c:791)
==17293==    by 0x407CE0: dump_index_trie_words (squat_build.c:1449)
==17293==    by 0x408176: index_close_internal (squat_build.c:1589)
==17293==    by 0x4085C7: squat_index_finish (squat_build.c:1695)
==17293==    by 0x404D73: squat_single (squatter.c:484)
==17293==    by 0x405330: index_me (squatter.c:636)
==17293==    by 0x4056ED: main (squatter.c:746)
==17293==
==17293== LEAK SUMMARY:
==17293==    definitely lost: 195,320 bytes in 95 blocks
==17293==    indirectly lost: 0 bytes in 0 blocks
==17293==      possibly lost: 0 bytes in 0 blocks
==17293==    still reachable: 33,530,220 bytes in 9,394 blocks
==17293==         suppressed: 0 bytes in 0 blocks
==17293== Reachable blocks (those to which a pointer was found) are not shown.
==17293== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==17293==
==17293== Use --track-origins=yes to see where uninitialised values come from
==17293== For lists of detected and suppressed errors, rerun with: -s
==17293== ERROR SUMMARY: 6796 errors from 11 contexts (suppressed: 0 from 0)
Segmentation Fault

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux