On Wed, Aug 02, 2006 at 19:38:08 +0200, Tino Keitel wrote:
> On Wed, Aug 02, 2006 at 19:13:20 +0200, Oswald Buddenhagen wrote:
> > On Wed, Aug 02, 2006 at 03:09:21PM +0200, Tino Keitel wrote:
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0xb7bcd76f in mallopt () from /lib/tls/libc.so.6
> > > (gdb) bt
> > > #0  0xb7bcd76f in mallopt () from /lib/tls/libc.so.6
> > > #1  0xb7bcdba2 in free () from /lib/tls/libc.so.6
> > >
> > looks like a double free. mind running the thing through valgrind?
> 
> Sorry, I can not reproduce it anymore. :-/
> 
> But I got it multiple times each time in this folder...

Hi,

I got another segfault and I ran mbsync in valdgrind. The output is
attached (sensitive data removed).

Regards,
Tino
$ valgrind mbsync eazy
==1215== Memcheck, a memory error detector.
==1215== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==1215== Using LibVEX rev 1606, a library for dynamic binary translation.
==1215== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==1215== Using valgrind-3.2.0-Debian, a dynamic binary instrumentation 
framework.
==1215== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==1215== For more details, rerun with: -v
==1215== 
Reading configuration file /home/scorpion/.mbsyncrc
Channel eazy
Opening master eazyimap...
Starting tunnel 'ssh -C -o CompressionLevel=9 -q [EMAIL PROTECTED] 
'MAIL=maildir:~/Maildir /home/xxx/install/libexec/dovecot/imap''... ok
Opening slave eazylocal...
==1215== Conditional jump or move depends on uninitialised value(s)
==1215==    at 0x804B30B: store_opened (main.c:673)
==1215==    by 0x8054867: maildir_open_store (drv_maildir.c:105)
==1215==    by 0x804B285: sync_chans (main.c:547)
==1215==    by 0x804A4BE: main (main.c:474)
==1215== 
==1215== Conditional jump or move depends on uninitialised value(s)
==1215==    at 0x804AC55: sync_chans (main.c:499)
==1215==    by 0x8054A83: maildir_list (drv_maildir.c:190)
==1215==    by 0x804B360: store_opened (main.c:679)
==1215==    by 0x8054867: maildir_open_store (drv_maildir.c:105)
==1215==    by 0x804B285: sync_chans (main.c:547)
==1215==    by 0x804A4BE: main (main.c:474)

...

slave: 441 messages, 0 recent
M: ?0/0 +0/0 *0/0 #0/0  S: ?1/1 +0/0 *0/0 #0/0Synchronizing...
M: ?0/0 +0/0 *0/0 #0/0  S: ?1/1 +0/1 *0/0 #0/0==1215== 
==1215== Invalid write of size 1
==1215==    at 0x804B9D8: msg_fetched (sync.c:305)
==1215==    by 0x8053BF1: imap_fetch_msg (drv_imap.c:1514)
==1215==    by 0x804B640: copy_msg (sync.c:203)
==1215==    by 0x804DFE9: msgs_found_sel (sync.c:1120)
==1215==    by 0x8056529: maildir_select (drv_maildir.c:862)
==1215==    by 0x804D218: select_box (sync.c:851)
==1215==    by 0x804C86F: sync_boxes (sync.c:827)
==1215==    by 0x804AF74: sync_chans (main.c:587)
==1215==    by 0x804A4BE: main (main.c:474)
==1215==  Address 0x4730C0C is 0 bytes after a block of size 13,964 alloc'd
==1215==    at 0x401B4A1: malloc (vg_replace_malloc.c:149)
==1215==    by 0x80509D0: nfmalloc (util.c:237)
==1215==    by 0x804B89A: msg_fetched (sync.c:270)
==1215==    by 0x8053BF1: imap_fetch_msg (drv_imap.c:1514)
==1215==    by 0x804B640: copy_msg (sync.c:203)
==1215==    by 0x804DFE9: msgs_found_sel (sync.c:1120)
==1215==    by 0x8056529: maildir_select (drv_maildir.c:862)
==1215==    by 0x804D218: select_box (sync.c:851)
==1215==    by 0x804C86F: sync_boxes (sync.c:827)
==1215==    by 0x804AF74: sync_chans (main.c:587)
==1215==    by 0x804A4BE: main (main.c:474)
M: ?0/0 +0/0 *0/0 #0/0  S: ?1/1 +1/1 *0/0 #0/0

...

Synchronizing...
M: ?0/0 +0/0 *0/0 #0/0  S: ?0/0 +76/77 *0/0 #0/0==1215== 
==1215== Source and destination overlap in memcpy(0x43E1B80, 0x43E1B83, 23)
==1215==    at 0x401D72D: memcpy (mc_replace_strmem.c:116)
==1215==    by 0x8051476: buffer_gets (drv_imap.c:372)
==1215==    by 0x8052571: get_cmd_result (drv_imap.c:912)
==1215==    by 0x80518ED: imap_exec_m (drv_imap.c:537)
==1215==    by 0x8053BE4: imap_fetch_msg (drv_imap.c:1514)
==1215==    by 0x804B640: copy_msg (sync.c:203)
==1215==    by 0x804DFE9: msgs_found_sel (sync.c:1120)
==1215==    by 0x8056529: maildir_select (drv_maildir.c:862)
==1215==    by 0x804D218: select_box (sync.c:851)
==1215==    by 0x804C86F: sync_boxes (sync.c:827)
==1215==    by 0x804AF74: sync_chans (main.c:587)
==1215==    by 0x804A4BE: main (main.c:474)
M: ?0/0 +0/0 *0/0 #0/0  S: ?0/0 +214/214 *3/3 #0/0

...

slave: 2261 messages, 2 recent
Synchronizing...
M: ?1/1 +1/1 *0/0 #0/0  S: ?0/0 +0/0 *1/1 #0/0
==1215== 
==1215== ERROR SUMMARY: 13 errors from 4 contexts (suppressed: 23 from 1)
==1215== malloc/free: in use at exit: 618 bytes in 25 blocks.
==1215== malloc/free: 1,057,286 allocs, 1,057,261 frees, 32,514,180 bytes 
allocated.
==1215== For counts of detected errors, rerun with: -v
==1215== searching for pointers to 25 not-freed blocks.
==1215== checked 215,392 bytes.
==1215== 
==1215== LEAK SUMMARY:
==1215==    definitely lost: 0 bytes in 0 blocks.
==1215==      possibly lost: 0 bytes in 0 blocks.
==1215==    still reachable: 618 bytes in 25 blocks.
==1215==         suppressed: 0 bytes in 0 blocks.
==1215== Reachable blocks (those to which a pointer was found) are not shown.
==1215== To see them, rerun with: --show-reachable=yes
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to