Hello David,

backtrace from binary with debug symbols enabled follows:

Thank you,
Jan

$ gdb /usr/local/bin/mbsync mbsync.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-openbsd5.7"...
Core was generated by `mbsync'.
Program terminated with signal 11, Segmentation fault.
Loaded symbols for /usr/local/bin/mbsync
Reading symbols from /usr/local/lib/libdb.so.5.0...done.
Loaded symbols for /usr/local/lib/libdb.so.5.0
Reading symbols from /usr/lib/libssl.so.32.0...done.
Loaded symbols for /usr/lib/libssl.so.32.0
Reading symbols from /usr/lib/libcrypto.so.32.0...done.
Loaded symbols for /usr/lib/libcrypto.so.32.0
Reading symbols from /usr/lib/libc.so.78.1...done.
Loaded symbols for /usr/lib/libc.so.78.1
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  strlen (str=0x1 <Address 0x1 out of bounds>) at
/usr/src/lib/libc/string/strlen.c:39
39              for (s = str; *s; ++s)

(gdb) backtrace
#0  strlen (str=0x1 <Address 0x1 out of bounds>) at
/usr/src/lib/libc/string/strlen.c:39
#1  0x08210e03 in __vfprintf (fp=0xcfbd160c, fmt0=0x3b8bdd71
"%ld.%d_%d.%s", ap=0xcfbd16dc "006\214;")
    at /usr/src/lib/libc/stdio/vfprintf.c:879
#2  0x0820df45 in vsnprintf (str=0xcfbd1920 "1425049063.0_2971E�\211",
n=128, fmt=0x3b8bdd71 "%ld.%d_%d.%s", ap=0xcfbd16cc "205")
    at /usr/src/lib/libc/stdio/vsnprintf.c:61
#3  0x1b8c50b8 in nfsnprintf (buf=0xcfbd1920 "1425049063.0_2971E�\211",
blen=128, fmt=0x3b8bdd71 "%ld.%d_%d.%s")
    at /usr/ports/pobj/isync-1.0.6/isync-1.0.6/src/util.c:193
#4  0x1b8ce4bf in maildir_store_msg (gctx=0x815bd600, data=0xcfbd1a3c,
uid=0xcfbd1a48)
    at /usr/ports/pobj/isync-1.0.6/isync-1.0.6/src/drv_maildir.c:939
#5  0x1b8c0559 in sync_new (tops=47, sctx=0x89b245c0, tctx=0x815bd600,
tconf=0x7f2d42c0, jfp=0x281b7598, srecadd=0xcfbd1c30, pull=1,
    smaxuid=0xcfbd1bd4) at
/usr/ports/pobj/isync-1.0.6/isync-1.0.6/src/sync.c:408
#6  0x1b8c284f in sync_boxes (mctx=0x89b245c0, mname=0x3b8bbcd3 "INBOX",
sctx=0x815bd600, sname=0x3b8bbcd3 "INBOX", chan=0x89735a40)
    at /usr/ports/pobj/isync-1.0.6/isync-1.0.6/src/sync.c:877
#7  0x1b8bf296 in main (argc=2, argv=0xcfbd1e04) at
/usr/ports/pobj/isync-1.0.6/isync-1.0.6/src/main.c:586
(gdb)

On Fri, Feb 27, 2015 at 03:50:56PM +0100, David Coppa wrote:
> Please rebuild mbsync with:
> 
> $ cd ports/mail/isync ; DEBUG="-ggdb -O0" INSTALL_STRIP= make clean
> repackage reinstall
> 
> And post a better backtrace.
> 
> Ciao!
> David

Reply via email to