Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-16 Thread Alessio Cecchi

Il 16/10/2012 02:35, Timo Sirainen ha scritto:

On 13.10.2012, at 15.38, Alessio Cecchi wrote:


Il 2012-10-02 21:28 Timo Sirainen ha scritto:

On 19.9.2012, at 16.07, Alessio Cecchi wrote:


#1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
   backend=0x1944240) at acl-backend-vfile-acllist.c:297

This should fix it: http://hg.dovecot.org/dovecot-2.1/rev/41aac09497ee



Timo, with this patch works fine!

Thanks

--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-15 Thread Timo Sirainen
On 13.10.2012, at 15.38, Alessio Cecchi wrote:

 Il 2012-10-02 21:28 Timo Sirainen ha scritto:
 On 19.9.2012, at 16.07, Alessio Cecchi wrote:
 
 #1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
   backend=0x1944240) at acl-backend-vfile-acllist.c:297

This should fix it: http://hg.dovecot.org/dovecot-2.1/rev/41aac09497ee



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-13 Thread Alessio Cecchi

Il 2012-10-02 21:28 Timo Sirainen ha scritto:

On 19.9.2012, at 16.07, Alessio Cecchi wrote:


#1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
   backend=0x1944240) at acl-backend-vfile-acllist.c:297


This backtrace is rather weird. Could you also do (instead of bt 
full):


fr 1
p *ns
p *ns.user
p *auser

It crashes because auser-dict = NULL, but it should never be NULL.


Hi Timo,

this is a new backtrace:

root@demo-vpop ~ # /home/vpopmail/bin/vadduser test...@qboxdns.it 
qweqweroot@demo-vpop ~ # cat /root/testmail.txt | 
/usr/local/dovecot-2.1/libexec/dovecot/deliver -d test...@qboxdns.it

Segmentation fault (core dumped)

root@demo-vpop ~ # gdb /usr/local/dovecot-2.1/libexec/dovecot/deliver 
/tmp/10923

GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show 
copying

and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from 
/usr/local/dovecot-2.1/libexec/dovecot/deliver...done.


warning: Can't read pathname for load map: Input/output error.
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-lda.so.0...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-lda.so.0
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-storage.so.0...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-storage.so.0
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot.so.0...done.

Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/libdovecot.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/librt.so.1...(no debugging symbols 
found)...done.

Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libssl.so.0.9.8...(no debugging symbols 
found)...done.

Loaded symbols for /usr/lib/libssl.so.0.9.8
Reading symbols from /usr/lib/libcrypto.so.0.9.8...(no debugging 
symbols found)...done.

Loaded symbols for /usr/lib/libcrypto.so.0.9.8
Reading symbols from /lib/libdl.so.2...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging 
symbols found)...done.

Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libpthread.so.0...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols 
found)...done.

Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libnss_files.so.2
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib20_zlib_plugin.so...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/lib20_zlib_plugin.so
Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libbz2.so.1.0
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib90_sieve_plugin.so...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/lib90_sieve_plugin.so
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-sieve.so.0...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/libdovecot-sieve.so.0
Core was generated by `/usr/local/dovecot-2.1/libexec/dovecot/deliver 
-d test...@qboxdns.it'.

Program terminated with signal 11, Segmentation fault.
#0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
221 if (dict-dict == NULL)

(gdb) fr 1
#1  0x7f9edac761b4 in acl_backend_vfile_acllist_try_rebuild (
backend=0x2496520) at acl-backend-vfile-acllist.c:297
297 (void)acl_lookup_dict_rebuild(auser-acl_lookup_dict);
(gdb) p *ns
$1 = {next = 0x2496860, refcount = 1, type = NAMESPACE_PRIVATE, flags = 
8235,

  prefix = 0x24961b0 , prefix_len = 0, alias_for = 0x0,
  alias_chain_next = 0x0, user = 0x249a700, owner = 0x249a700,
  list = 0x249ef40, storage = 0x2496210, set = 0x249b4f0,
  unexpanded_set = 0x249ab58, mail_set = 0x249b200, destroyed = 0}
(gdb) p *ns.user
$2 = {pool = 0x249a6e0, v = {deinit = 0x7f9edac7a280 
acl_user_deinit},
  vlast = 0x249bf38, refcount = 1, username = 0x249a7b8 
test...@qboxdns.it,
  _home = 0x249bb60 /home/vpopmail/domains/qboxdns.it/test160, uid = 
89,

  gid = 89, service = 0x249bb90 lda, local_ip = 0x0, remote_ip = 0x0,
  var_expand_table = 

Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-13 Thread Alessio Cecchi

Il 2012-10-02 22:15 Timo Sirainen ha scritto:

On 2.10.2012, at 22.28, Timo Sirainen wrote:


On 19.9.2012, at 16.07, Alessio Cecchi wrote:


#1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
  backend=0x1944240) at acl-backend-vfile-acllist.c:297


This backtrace is rather weird. Could you also do (instead of bt 
full):


Also, can you reproduce the crash always by running doveadm quota
recalc -u user@domain?


If first add a news user, than run quota recalc and after deliver the 
first message deliver not crash:


# vpopmail/bin/vadduser tes...@qboxdns.it
# doveadm quota recalc -u test...@qboxdns.it
# cat /root/testmail.txt | 
/usr/local/dovecot-2.1/libexec/dovecot/deliver -d tes...@qboxdns.it


When add a new user without quota recalc deliver crash:

# /home/vpopmail/bin/vadduser tes...@qboxdns.it
# cat /root/testmail.txt | 
/usr/local/dovecot-2.1/libexec/dovecot/deliver -d tes...@qboxdns.it

Segmentation fault (core dumped)
#

Hope this will useful


Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-02 Thread Timo Sirainen
On 19.9.2012, at 16.07, Alessio Cecchi wrote:

 #1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
backend=0x1944240) at acl-backend-vfile-acllist.c:297

This backtrace is rather weird. Could you also do (instead of bt full):

fr 1
p *ns
p *ns.user
p *auser

It crashes because auser-dict = NULL, but it should never be NULL.



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-10-02 Thread Timo Sirainen
On 2.10.2012, at 22.28, Timo Sirainen wrote:

 On 19.9.2012, at 16.07, Alessio Cecchi wrote:
 
 #1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
   backend=0x1944240) at acl-backend-vfile-acllist.c:297
 
 This backtrace is rather weird. Could you also do (instead of bt full):

Also, can you reproduce the crash always by running doveadm quota recalc -u 
user@domain?



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-24 Thread Alessio Cecchi

Il 19/09/2012 15:07, Alessio Cecchi ha scritto:

Il 19/09/2012 15:03, Alessio Cecchi ha scritto:

Il 19/09/2012 14:48, Timo Sirainen ha scritto:

On 19.9.2012, at 13.54, Alessio Cecchi wrote:

LDA is configured and works fine but the problem is when the first 
message arrive dovecot-lda return a Segmentation fault, the 
message is written to the user's Mailbox but the message remains, 
also, in the queue of qmail (deferral: Segmentation_fault/) and at 
the second attempt is delivered fine.
gdb backtrace would be very helpful in figuring out the problem: 
http://dovecot.org/bugreport.html






Hi Timo,

had you occasion to see the problem? Can I provide more information?

Thanks



This is the full bt:

(gdb) bt full
#0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
ns = value optimized out
ids_arr = {arr = {buffer = 0x0, element_size = 26492496}, v = 
0x0,

  v_modifiable = 0x0}
ids = 0x1928658
i = value optimized out
dest = value optimized out
ret = -883075307
#1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
backend=0x1944240) at acl-backend-vfile-acllist.c:297
auser = 0x1949a08
iter = 0x0
acllist_path = 0x1928658 
/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir/dovecot-acl-list

ret = value optimized out
ns = 0x1943e50
output = 0x0
st = {st_dev = 2051, st_ino = 662103, st_nlink = 1, st_mode = 
33152,

  st_uid = 89, st_gid = 89, __pad0 = 0, st_rdev = 0, st_size = 0,
  st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 
1348059559,

tv_nsec = 0}, st_mtim = {tv_sec = 1348059559, tv_nsec = 0},
  st_ctim = {tv_sec = 1348059559, tv_nsec = 0}, __unused = {0, 
0, 0}}

path = 0x1928210

file_mode = 384
dir_mode = 448
gid = 4294967295
list = value optimized out
info = value optimized out
rootdir = 0x1928610 Sent
origin = 0x194d178 
/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir

fd = 8
#2  acl_backend_vfile_acllist_rebuild (backend=0x1944240)
at acl-backend-vfile-acllist.c:311
acllist_path = value optimized out
#3  0x7f2fc9fc4563 in acl_backend_vfile_acllist_refresh 
(backend=0x1944240)

at acl-backend-vfile-acllist.c:153
__FUNCTION__ = acl_backend_vfile_acllist_refresh
#4  0x7f2fc9fc46d5 in acl_backend_vfile_acllist_verify (backend=0x0,
name=0x1944a60 , mtime=0) at acl-backend-vfile-acllist.c:343
acllist = value optimized out
#5  0x7f2fc9fc30b8 in acl_backend_vfile_object_refresh_cache (
_aclobj=0x19444e0) at acl-backend-vfile.c:858
old_validity = value optimized out
validity = {global_validity = {last_check = 0,
last_read_time = 1348059559, last_mtime = 0, last_size = 0},
  local_validity = {last_check = 0, last_read_time = 0,

last_mtime = 0, last_size = 0}, mailbox_validity = {
last_check = 0, last_read_time = 0, last_mtime = 0, 
last_size = 0}}

mtime = 0
ret = 26515976
#6  0x7f2fc9fc125e in acl_backend_get_default_rights 
(backend=0x1944240,

mask_r=0x28) at acl-backend.c:164
No locals.
#7  0x7f2fc9fc75bd in acl_mailbox_try_list_fast (list=0x194cc00,
patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
at acl-mailbox-list.c:107
alist = value optimized out
nonowner_list_ctx = value optimized out
ret = value optimized out
backend = 0x1944240
acl_mask = 0x1
ns = 0x1943e50
update_ctx = {iter_ctx = 0x7f2fcb80d2c8, tree_ctx = 
0x7f2fcbf2ba88,

  glob = 0x0, leaf_flags = 4294967295, parent_flags = 0,
  update_only = 0, match_parents = 0}
name = value optimized out
#8  acl_mailbox_list_iter_init (list=0x194cc00, patterns=0x7fff362dff50,
flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS) at acl-mailbox-list.c:194
_data_stack_cur_id = 2

ctx = 0x1946b20
pool = value optimized out
i = value optimized out
inboxcase = value optimized out
#9  0x7f2fcb886d33 in mailbox_list_iter_init_multiple 
(list=0x194cc00,

patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
at mailbox-list-iter.c:158
ctx = value optimized out
ret = value optimized out
__FUNCTION__ = mailbox_list_iter_init_multiple
#10 0x7f2fcb887459 in mailbox_list_iter_init (list=0x0,
pattern=value optimized out, flags=1348059559) at 
mailbox-list-iter.c:58

patterns = {0x7f2fc9db76dc *, 0x0}
#11 0x7f2fc9db2370 in quota_count_namespace (root=0x1944950,
bytes_r=value optimized out, count_r=0x7fff362dfff0) at 
quota-count.c:73

ctx = 0x7f2fcb5beef3
info = value optimized out
#12 quota_count (root=0x1944950, bytes_r=value optimized out,
count_r=0x7fff362dfff0) at quota-count.c:111
i = 0
ret = 0
#13 0x7f2fc9db37ce in 

Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-24 Thread Alessio Cecchi

Il 24/09/2012 17:40, Alessio Cecchi ha scritto:

Il 19/09/2012 15:07, Alessio Cecchi ha scritto:

Il 19/09/2012 15:03, Alessio Cecchi ha scritto:

Il 19/09/2012 14:48, Timo Sirainen ha scritto:

On 19.9.2012, at 13.54, Alessio Cecchi wrote:

LDA is configured and works fine but the problem is when the first 
message arrive dovecot-lda return a Segmentation fault, the 
message is written to the user's Mailbox but the message remains, 
also, in the queue of qmail (deferral: Segmentation_fault/) and at 
the second attempt is delivered fine.
gdb backtrace would be very helpful in figuring out the problem: 
http://dovecot.org/bugreport.html






Hi Timo,

had you occasion to see the problem? Can I provide more information?

Thanks


After further testing I found this behavior, a note, I'm using dict 
quota in mysql.


- add a new user
- delivery the first email via deliver
- Segmentation fault

- I remove the newly created user
- add the same user
- delivery the first email via deliver
- OK

- add a new user
- the user connects via pop/imap
- delivery the first email via deliver
- OK

- add a new user
- manually create the entry for dict quota ==
- delivery the first email via deliver
- OK

it seems that if there is user's entry in the dict database the problem 
does not appear.


--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-20 Thread Alessio Cecchi

Il 19/09/2012 19:52, interfaSys sàrl ha scritto:

I see the same crashes on FreeBSD. Turning off ACL makes the crashes
disappear.

I'm getting a different backtrace though and it doesn't seem to be
related to ACL:

Core was generated by `imap-login'.



Thanks for your report.

My backtrace was genereted from dovecot-lda, but in both cases disable 
ACL solve the problem.


--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-19 Thread Timo Sirainen
On 19.9.2012, at 13.54, Alessio Cecchi wrote:

 LDA is configured and works fine but the problem is when the first message 
 arrive dovecot-lda return a Segmentation fault, the message is written to 
 the user's Mailbox but the message remains, also, in the queue of qmail 
 (deferral: Segmentation_fault/) and at the second attempt is delivered fine.

gdb backtrace would be very helpful in figuring out the problem: 
http://dovecot.org/bugreport.html



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-19 Thread Alessio Cecchi

Il 19/09/2012 14:48, Timo Sirainen ha scritto:

On 19.9.2012, at 13.54, Alessio Cecchi wrote:


LDA is configured and works fine but the problem is when the first message arrive 
dovecot-lda return a Segmentation fault, the message is written to the 
user's Mailbox but the message remains, also, in the queue of qmail (deferral: Segmentation_fault/) 
and at the second attempt is delivered fine.

gdb backtrace would be very helpful in figuring out the problem: 
http://dovecot.org/bugreport.html



Obvious ... :-)

Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so...done.

Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so...done.

Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so
Core was generated by `/usr/local/dovecot-2.1/libexec/dovecot/deliver -d 
cecch...@qboxdns.it'.

Program terminated with signal 11, Segmentation fault.
#0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
221if (dict-dict == NULL)

is enough?

Thanks

--
Alessio Cecchi is:
@ ILS - http://www.linux.it/~alessice/
on LinkedIn - http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux - http://www.cecchi.biz/
@ PLUG - ex-Presidente, adesso senatore a vita, http://www.prato.linux.it



Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-19 Thread Alessio Cecchi

Il 19/09/2012 15:03, Alessio Cecchi ha scritto:

Il 19/09/2012 14:48, Timo Sirainen ha scritto:

On 19.9.2012, at 13.54, Alessio Cecchi wrote:

LDA is configured and works fine but the problem is when the first 
message arrive dovecot-lda return a Segmentation fault, the 
message is written to the user's Mailbox but the message remains, 
also, in the queue of qmail (deferral: Segmentation_fault/) and at 
the second attempt is delivered fine.
gdb backtrace would be very helpful in figuring out the problem: 
http://dovecot.org/bugreport.html




Obvious ... :-)

Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so...done.

Loaded symbols for /usr/local/dovecot-2.1/lib/dovecot/lib01_acl_plugin.so
Reading symbols from 
/usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so...done.
Loaded symbols for 
/usr/local/dovecot-2.1/lib/dovecot/lib10_quota_plugin.so
Core was generated by `/usr/local/dovecot-2.1/libexec/dovecot/deliver 
-d cecch...@qboxdns.it'.

Program terminated with signal 11, Segmentation fault.
#0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
221if (dict-dict == NULL)

is enough?


This is the full bt:

(gdb) bt full
#0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
ns = value optimized out
ids_arr = {arr = {buffer = 0x0, element_size = 26492496}, v = 0x0,
  v_modifiable = 0x0}
ids = 0x1928658
i = value optimized out
dest = value optimized out
ret = -883075307
#1  0x7f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
backend=0x1944240) at acl-backend-vfile-acllist.c:297
auser = 0x1949a08
iter = 0x0
acllist_path = 0x1928658 
/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir/dovecot-acl-list

ret = value optimized out
ns = 0x1943e50
output = 0x0
st = {st_dev = 2051, st_ino = 662103, st_nlink = 1, st_mode = 
33152,

  st_uid = 89, st_gid = 89, __pad0 = 0, st_rdev = 0, st_size = 0,
  st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 
1348059559,

tv_nsec = 0}, st_mtim = {tv_sec = 1348059559, tv_nsec = 0},
  st_ctim = {tv_sec = 1348059559, tv_nsec = 0}, __unused = {0, 
0, 0}}

path = 0x1928210

file_mode = 384
dir_mode = 448
gid = 4294967295
list = value optimized out
info = value optimized out
rootdir = 0x1928610 Sent
origin = 0x194d178 
/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir

fd = 8
#2  acl_backend_vfile_acllist_rebuild (backend=0x1944240)
at acl-backend-vfile-acllist.c:311
acllist_path = value optimized out
#3  0x7f2fc9fc4563 in acl_backend_vfile_acllist_refresh 
(backend=0x1944240)

at acl-backend-vfile-acllist.c:153
__FUNCTION__ = acl_backend_vfile_acllist_refresh
#4  0x7f2fc9fc46d5 in acl_backend_vfile_acllist_verify (backend=0x0,
name=0x1944a60 , mtime=0) at acl-backend-vfile-acllist.c:343
acllist = value optimized out
#5  0x7f2fc9fc30b8 in acl_backend_vfile_object_refresh_cache (
_aclobj=0x19444e0) at acl-backend-vfile.c:858
old_validity = value optimized out
validity = {global_validity = {last_check = 0,
last_read_time = 1348059559, last_mtime = 0, last_size = 0},
  local_validity = {last_check = 0, last_read_time = 0,

last_mtime = 0, last_size = 0}, mailbox_validity = {
last_check = 0, last_read_time = 0, last_mtime = 0, 
last_size = 0}}

mtime = 0
ret = 26515976
#6  0x7f2fc9fc125e in acl_backend_get_default_rights 
(backend=0x1944240,

mask_r=0x28) at acl-backend.c:164
No locals.
#7  0x7f2fc9fc75bd in acl_mailbox_try_list_fast (list=0x194cc00,
patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
at acl-mailbox-list.c:107
alist = value optimized out
nonowner_list_ctx = value optimized out
ret = value optimized out
backend = 0x1944240
acl_mask = 0x1
ns = 0x1943e50
update_ctx = {iter_ctx = 0x7f2fcb80d2c8, tree_ctx = 
0x7f2fcbf2ba88,

  glob = 0x0, leaf_flags = 4294967295, parent_flags = 0,
  update_only = 0, match_parents = 0}
name = value optimized out
#8  acl_mailbox_list_iter_init (list=0x194cc00, patterns=0x7fff362dff50,
flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS) at acl-mailbox-list.c:194
_data_stack_cur_id = 2

ctx = 0x1946b20
pool = value optimized out
i = value optimized out
inboxcase = value optimized out
#9  0x7f2fcb886d33 in mailbox_list_iter_init_multiple (list=0x194cc00,
patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
at mailbox-list-iter.c:158
ctx = value optimized out
ret = value optimized out
__FUNCTION__ = mailbox_list_iter_init_multiple
#10 0x7f2fcb887459 in mailbox_list_iter_init (list=0x0,
pattern=value optimized out, 

Re: [Dovecot] Dovecot deliver Segmentation fault when arrive the first message

2012-09-19 Thread interfaSys sàrl
I see the same crashes on FreeBSD. Turning off ACL makes the crashes
disappear.

I'm getting a different backtrace though and it doesn't seem to be
related to ACL:

Core was generated by `imap-login'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/dovecot/libdovecot-login.so.0...done.
Loaded symbols for /usr/lib/dovecot/libdovecot-login.so.0
Reading symbols from /usr/lib/dovecot/libdovecot.so.0...done.
Loaded symbols for /usr/lib/dovecot/libdovecot.so.0
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libssl.so.8...done.
Loaded symbols for /usr/local/lib/libssl.so.8
Reading symbols from /usr/local/lib/libcrypto.so.8...done.
Loaded symbols for /usr/local/lib/libcrypto.so.8
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/lib/libz.so...done.
Loaded symbols for /usr/lib/libz.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x104b99a6 in hash_table_destroy (_table=0x28) at _ctype.h:143
143 return (_c  0 || _c = __mb_sb_limit) ? _c :
[New Thread 10e041c0 (LWP 103332/initial thread)]
(gdb) bt full
#0  0x104b99a6 in hash_table_destroy (_table=0x28) at _ctype.h:143
table = (struct hash_table *) 0x10e29700
#1  0x10478cf1 in settings_parser_deinit (_ctx=0x10e29778) at
array.h:197
ctx = (struct setting_parser_context *) 0x0
#2  0x104ac4ea in master_service_settings_cache_deinit
(_cache=0x1045da08) at master-service-settings-cache.c:81
cache = (struct master_service_settings_cache *) 0x10e2e040
entry = (struct settings_entry *) 0x10e29740
next = (struct settings_entry *) 0x0
__FUNCTION__ = master_service_settings_cache_deinit
#3  0x1044d1df in login_settings_deinit () at login-settings.c:129
No locals.
#4  0x1044dd7e in main_deinit () at main.c:62
No locals.
#5  0x1044df5c in login_binary_run (binary=0x4051c0, argc=2,
argv=0x7fffebd8) at main.c:62
service_flags = 72
set_pool = 0x10e2d020
allow_core_dumps = true
login_socket = 0x10457491 login
c = -1
#6  0x004036ee in main (argc=2, argv=0x7fffebd8) at client.c:40
No locals.





Cheers,

Olivier