Bug#411120: isync: mbsync segfaults while syncing mailboxes

2013-03-23 Thread Oswald Buddenhagen
this is fixed in master by 45b11c63a, to be released with v1.1.
the fix cannot be trivially backported, so i won't bother for now.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#411120: isync: mbsync segfaults while syncing mailboxes

2013-02-10 Thread Alexander Inyukhin
Package: isync
Version: 1.0.4-2.1+b1
Followup-For: Bug #411120

I catched a bug location with gdb. Stack trace attached.

Current git head from [1] works fine.
[1] git://isync.git.sourceforge.net/gitroot/isync/isync 


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (593, 'testing'), (500, 'testing-updates'), (192, 'unstable'), 
(190, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isync depends on:
ii  libc62.13-37
ii  libdb5.1 5.1.29-5
ii  libssl1.0.0  1.0.1c-4

isync recommends no packages.

Versions of packages isync suggests:
ii  mutt  1.5.21-6.2

-- no debconf information

 7 SELECT INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)] 
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 22]
7 OK [READ-WRITE] SELECT completed
 8 LOGOUT
* BYE

Program received signal SIGSEGV, Segmentation fault.
0x080520ab in parse_response_code (ctx=0x805e008, cb=0x0, s=0x0) at 
drv_imap.c:822
822 if (*s != '[')
(gdb) bt
#0  0x080520ab in parse_response_code (ctx=0x805e008, cb=0x0, s=0x0) at 
drv_imap.c:822
#1  0x08052697 in get_cmd_result (ctx=0x805e008, tcmd=0x8131b38) at 
drv_imap.c:940
#2  0x080515b5 in imap_exec (ctx=0x805e008, cb=0x0, fmt=0x805a46c LOGOUT) at 
drv_imap.c:512
#3  0x08052d1e in imap_close_server (ictx=0x805e008) at drv_imap.c:1057
#4  0x08052d8c in imap_close_store (ctx=0x805e008) at drv_imap.c:1073
#5  0x0804ba40 in main (argc=3, argv=0xd674) at main.c:612
(gdb) info locals
imap = 0x805e730
arg = 0xf7bef3f8 X\037\023\b`\033\023\b\240i\023\b\240i\023\b
p = 0x805e77e BYE
(gdb) up
#1  0x08052697 in get_cmd_result (ctx=0x805e008, tcmd=0x8131b38) at 
drv_imap.c:940
940 if ((resp = parse_response_code( ctx, 
0, cmd )) != RESP_OK)
(gdb) info locals
imap = 0x805e730
cmdp = 0x7
pcmdp = 0x805e730
ncmdp = 0x0
cmd = 0x0
arg = 0x805e77e BYE
arg1 = 0x8131ed8 0\036\023\b
p = 0x5117b3a2 Address 0x5117b3a2 out of bounds
n = -139456106
resp = 135469880
resp2 = 0
tag = 22


Bug#411120: isync: mbsync segfaults while syncing mailboxes

2007-02-16 Thread Alexander Schmehl
Package: isync
Version: 1.0.3-3
Severity: important

Hi!

I'm using mbsync on a etch machine to sync my mails with a dovecot
running under sarge.

It worked very well for some time, but since two days, mbsync segfaults
while trying to sync my main maildir:


[..]
Selecting slave debian-alioth-pkg-xfce-devel... 23 messages, 0 recent
Selecting master debian-alioth-pkg-xfce-devel... 23 messages, 0 recent
Synchronizing
Expunging master
Expunging slave
Selecting slave debian-alioth-pkg-xfce-commits... 15 messages, 0 recent
Selecting master debian-alioth-pkg-xfce-commits... 15 messages, 0 recent
Synchronizing
Expunging master
Expunging slave
Selecting slave debian-alioth-pkg-vim-maintainers... 16 messages, 0
recent
Selecting master debian-alioth-pkg-vim-maintainers... 16 messages, 0
recent
Synchronizing
Expunging master
Expunging slave
Selecting slave debian-alioth-pkg-games-commits... 120 messages, 0
recent
Selecting master debian-alioth-pkg-games-commits... 121 messages, 0
recent
Synchronizing
Expunging master
Segmentation fault



The last part of strace looks like that:


[..]
open(/home/alex/.mbsync/:melusine:debian-alioth-pkg-games-commits_:local:debian-alioth-pkg-games-commits.journal,
O_WRONLY|O_APPEND|O_CREAT, 0666) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=390, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fef000
fstat64(7, {st_mode=S_IFREG|0644, st_size=390, ...}) = 0
_llseek(7, 390, [390], SEEK_SET)= 0
write(1, Selecting master debian-alioth-p..., 52Selecting master
debian-alioth-pkg-games-commits... ) = 52
write(3, \27\3\1\0 \21G\234x\'\27153\356W\374\351\262\261w\240\330...,
122) = 122
read(3, \27\3\1\1`, 5)= 5
read(3, zO%V\275l\313+\343\10C\362b\250\257\373\255C\375\10Q\312...,
352) = 352
write(3, \27\3\1\0 \330Uy(\277\20\226\3\221^\33`CO\377\3041\\\317...,
106) = 106
read(3, \27\3\1\4 , 5)= 5
read(3, \214\3377z\254uN(\3357\r\236\371\0\22\250m\227V2p\2\230...,
1056) = 1056
read(3, \27\3\1\4 , 5)= 5
read(3, \31\334\316\'\214\t3\332\327\243\347\207|\210k\310\10C...,
1056) = 1056
read(3, \27\3\1\4 , 5)= 5
read(3, \360\272\306\20\\3E\323\300P\30\302V\223\344K\343\372\371...,
1056) = 374
read(3, \346\24\3133\25\277\233\254\256VF\246\306\3756\274\270...,
682) = 682
read(3, \27\3\1\4 , 5)= 5
read(3, z\v-;p\213B\315\273-\262\364U\t]\225\276R1}eW\344\364%...,
1056) = 753
read(3, \f\303#\367\336r\233\275%\354\315{\350{\270\1\264\274X...,
303) = 303
read(3, \27\3\1\0\340, 5) = 5
read(3, \201S\204e\345\352\311]\21\220\361\242\335P\366\364zH}...,
224) = 224
write(1, 121 messages, 0 recent\n, 23121 messages, 0 recent
) = 23
write(1, Synchronizing\n, 14Synchronizing
) = 14
write(7, ^\n, 2)  = 2
write(1, Expunging master\n, 17Expunging master
)  = 17
write(3, \27\3\1\0 _\177Y\200X71\220\213\2\223\315f\25\247\264\303...,
74) = 74
read(3, \27\3\1\0@, 5)= 5
read(3, f\300\374\201\360\24\347\10?\16\231\336\374_\210Yk\334..., 64)
= 64
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3519 detached


My .mbsyncrc:


MaildirStore local
Path ~/Maildir/

IMAPAccount melusine
Host myserver
User myuser
Pass mypassword
UseIMAPS yes
CertificateFile ~/.mbsync.cert.melusine

IMAPStore melusine
Account melusine

Channel melusine
Master :melusine:
Slave :local:
Pattern *
Sync all
Create Both
Expunge Both


As said:  It worked like a charme for about a week, and than stoped to
work without any major change on my said (beside receiving new mails ;)

I allready tried to delete new mails from the server, hoping to get it
function again.  But It seems to me that didn't helped.

Any idea what might go wrong?  Any additional data I should suply?


Yours sincerely,
  Alexander


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages isync depends on:
ii  debconf [debconf-2.0]   1.5.11   Debian configuration management sy
ii  libc6   2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libdb4.44.4.20-8 Berkeley v4.4 Database Libraries [
ii  libssl0.9.8 0.9.8c-4 SSL shared libraries

isync recommends no packages.

-- debconf information:
  isync/upgrade_1.0:

-- 
Yours sincerely,
  Alexander


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]