Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-07 Thread Demonhost via dovecot

Thank you Stephan ! That was it.

It works fine with the proper pigeonhole version.

Let me write to the package maintainer to fix.

Regards,
  Laszlo

On 2019. 10. 07. 11:09, Demonhost wrote:

That's a good thought.

I'm building from the alpine repo and I indeed see pigeonhole is 0.5.5

https://git.alpinelinux.org/aports/tree/main/dovecot/APKBUILD?h=3.8-stable 




Let me build it with 0.5.7.2

Regards,
  Laszlo

On 2019. 10. 07. 10:45, Stephan Bosch via dovecot wrote:



On 07/10/2019 10:17, Demonhost via dovecot wrote:

Hi Stephan,

Here it is:



We still can't reproduce it here.

First of all, did you update Pigeonhole along with Dovecot? This kind 
of weirdness can happen when Pigeonhole was compiled against a 
different version of Dovecot. You could compile Pigeonhole manually 
as well to make sure, which also gives you the opportunity to get 
debug symbols for Pigeonhole as well.


Do you also have your configuration for me (output from `dovecot -n`) ?

Also, can you issue in GDB after it crashed (as you did `bt full` 
before):


f 1
p src

Regards,

Stephan.



Program received signal SIGSEGV, Segmentation fault.
p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

51  strfuncs.c: No such file or directory.
(gdb) bt full
#0  p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

    mem = 
    len = 
#1  0x7757dd1a in ssl_iostream_settings_init_from 
(pool=pool@entry=0x5579bc20, dest=dest@entry=0x5579bcf8, 
src=0x55764038) at iostream-ssl.c:298

    offset = 0
    src_str = 0x55764038
    dest_str = 0x5579bcf8
#2  0x77522545 in smtp_submit_session_init 
(input=0x55764008, set=0x7fffe378) at smtp-submit.c:84

    pool = 0x5579bc20
#3  0x7752265a in smtp_submit_init_simple (input=out>, set=, mail_from=0x55759b80) at 
smtp-submit.c:134

    session = 
    subm = 0x0
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver (ctx=0x7fffe9e0, 
storage_r=0x7fffe9a8) at mail-deliver.c:498

    muser = 0x55777ef8
    ret = 
    __func__ = "mail_deliver"
#14 0x6fd2 in lda_deliver (stderr_rejection=false, 
rcpt_to_source=, rcpt_to=, 
path=, user=,

    service_user=, ctx=0x7fffe9e0) at main.c:253
    storage = 0x0
    errstr = 0x0
    ret = 
    var_table = 
    lda_set = 
    smtp_set = 
#15 main (argc=, argv=) at main.c:517
    t = 0x0
    box = 0x0
    set_roots = {0x55758ae0 
, 0x55758a80 
, 0x0}
    ctx = {pool = 0x55759b40, set = 0x55764078, smtp_set 
= 0x55764008, session = 0x55759b68, session_time_msecs = 0, 
delivery_time_started = {

---Type  to continue, or q  to quit---
    tv_sec = 1570435973, tv_usec = 126295}, dup_db = 
0x5578e040, session_id = 0x0, src_mail = 0x55790c68, 
mail_from = 0x55759b80, mail_params = {
    auth = 0x0, body = {type = 
SMTP_PARAM_MAIL_BODY_TYPE_UNSPECIFIED, ext = 0x0}, envid = 0x0, ret 
= SMTP_PARAM_MAIL_RET_UNSPECIFIED, size = 0, extra_params = {
  arr = {buffer = 0x0, element_size = 0}, v = 0x0, 
v_modifiable = 0x0}}, rcpt_to = 0x55759bb0, rcpt_params = {orcpt 
= {addr_type = 0x0,
  addr = 0x55759bb0, addr_raw = 0x0}, notify = 
SMTP_PARAM_RCPT_NOTIFY_UNSPECIFIED, extra_params = {arr = {buffer = 
0x0, element_size = 0}, v = 0x0,
  v_modifiable = 0x0}}, rcpt_user = 0x55777168, 
rcpt_default_mailbox = 0x763f "INBOX", dest_mail = 0x0, 
cache = 0x0, tempfail_error = 0x0,
  tried_default_save = false, saved_mail = false, 
save_dest_mail = false, mailbox_full = false, dsn = false}

    service_flags = 
    user = 
    errstr = 0x0
    path = 0x0
    rcpt_to = 0x0
    final_rcpt_to = 0x0
    mail_from = 0x55759b80
    storage_service = 0x77d6c5a8
    

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-07 Thread Demonhost via dovecot

That's a good thought.

I'm building from the alpine repo and I indeed see pigeonhole is 0.5.5

https://git.alpinelinux.org/aports/tree/main/dovecot/APKBUILD?h=3.8-stable


Let me build it with 0.5.7.2

Regards,
  Laszlo

On 2019. 10. 07. 10:45, Stephan Bosch via dovecot wrote:



On 07/10/2019 10:17, Demonhost via dovecot wrote:

Hi Stephan,

Here it is:



We still can't reproduce it here.

First of all, did you update Pigeonhole along with Dovecot? This kind 
of weirdness can happen when Pigeonhole was compiled against a 
different version of Dovecot. You could compile Pigeonhole manually as 
well to make sure, which also gives you the opportunity to get debug 
symbols for Pigeonhole as well.


Do you also have your configuration for me (output from `dovecot -n`) ?

Also, can you issue in GDB after it crashed (as you did `bt full` 
before):


f 1
p src

Regards,

Stephan.



Program received signal SIGSEGV, Segmentation fault.
p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

51  strfuncs.c: No such file or directory.
(gdb) bt full
#0  p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

    mem = 
    len = 
#1  0x7757dd1a in ssl_iostream_settings_init_from 
(pool=pool@entry=0x5579bc20, dest=dest@entry=0x5579bcf8, 
src=0x55764038) at iostream-ssl.c:298

    offset = 0
    src_str = 0x55764038
    dest_str = 0x5579bcf8
#2  0x77522545 in smtp_submit_session_init 
(input=0x55764008, set=0x7fffe378) at smtp-submit.c:84

    pool = 0x5579bc20
#3  0x7752265a in smtp_submit_init_simple (input=out>, set=, mail_from=0x55759b80) at 
smtp-submit.c:134

    session = 
    subm = 0x0
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver (ctx=0x7fffe9e0, 
storage_r=0x7fffe9a8) at mail-deliver.c:498

    muser = 0x55777ef8
    ret = 
    __func__ = "mail_deliver"
#14 0x6fd2 in lda_deliver (stderr_rejection=false, 
rcpt_to_source=, rcpt_to=, 
path=, user=,

    service_user=, ctx=0x7fffe9e0) at main.c:253
    storage = 0x0
    errstr = 0x0
    ret = 
    var_table = 
    lda_set = 
    smtp_set = 
#15 main (argc=, argv=) at main.c:517
    t = 0x0
    box = 0x0
    set_roots = {0x55758ae0 
, 0x55758a80 
, 0x0}
    ctx = {pool = 0x55759b40, set = 0x55764078, smtp_set 
= 0x55764008, session = 0x55759b68, session_time_msecs = 0, 
delivery_time_started = {

---Type  to continue, or q  to quit---
    tv_sec = 1570435973, tv_usec = 126295}, dup_db = 
0x5578e040, session_id = 0x0, src_mail = 0x55790c68, 
mail_from = 0x55759b80, mail_params = {
    auth = 0x0, body = {type = 
SMTP_PARAM_MAIL_BODY_TYPE_UNSPECIFIED, ext = 0x0}, envid = 0x0, ret = 
SMTP_PARAM_MAIL_RET_UNSPECIFIED, size = 0, extra_params = {
  arr = {buffer = 0x0, element_size = 0}, v = 0x0, 
v_modifiable = 0x0}}, rcpt_to = 0x55759bb0, rcpt_params = {orcpt 
= {addr_type = 0x0,
  addr = 0x55759bb0, addr_raw = 0x0}, notify = 
SMTP_PARAM_RCPT_NOTIFY_UNSPECIFIED, extra_params = {arr = {buffer = 
0x0, element_size = 0}, v = 0x0,
  v_modifiable = 0x0}}, rcpt_user = 0x55777168, 
rcpt_default_mailbox = 0x763f "INBOX", dest_mail = 0x0, cache 
= 0x0, tempfail_error = 0x0,
  tried_default_save = false, saved_mail = false, 
save_dest_mail = false, mailbox_full = false, dsn = false}

    service_flags = 
    user = 
    errstr = 0x0
    path = 0x0
    rcpt_to = 0x0
    final_rcpt_to = 0x0
    mail_from = 0x55759b80
    storage_service = 0x77d6c5a8
    service_user = 0x55763198
    service_input = {parent_event = 0x0, module = 0x763b 
"lda", service = 0x763b "lda", username = 0x77832f31 
"testaaa...@x.xx",
 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-07 Thread Stephan Bosch via dovecot




On 07/10/2019 10:17, Demonhost via dovecot wrote:

Hi Stephan,

Here it is:



We still can't reproduce it here.

First of all, did you update Pigeonhole along with Dovecot? This kind of 
weirdness can happen when Pigeonhole was compiled against a different 
version of Dovecot. You could compile Pigeonhole manually as well to 
make sure, which also gives you the opportunity to get debug symbols for 
Pigeonhole as well.


Do you also have your configuration for me (output from `dovecot -n`) ?

Also, can you issue in GDB after it crashed (as you did `bt full` before):

f 1
p src

Regards,

Stephan.



Program received signal SIGSEGV, Segmentation fault.
p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

51  strfuncs.c: No such file or directory.
(gdb) bt full
#0  p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

    mem = 
    len = 
#1  0x7757dd1a in ssl_iostream_settings_init_from 
(pool=pool@entry=0x5579bc20, dest=dest@entry=0x5579bcf8, 
src=0x55764038) at iostream-ssl.c:298

    offset = 0
    src_str = 0x55764038
    dest_str = 0x5579bcf8
#2  0x77522545 in smtp_submit_session_init 
(input=0x55764008, set=0x7fffe378) at smtp-submit.c:84

    pool = 0x5579bc20
#3  0x7752265a in smtp_submit_init_simple (input=out>, set=, mail_from=0x55759b80) at smtp-submit.c:134

    session = 
    subm = 0x0
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver (ctx=0x7fffe9e0, 
storage_r=0x7fffe9a8) at mail-deliver.c:498

    muser = 0x55777ef8
    ret = 
    __func__ = "mail_deliver"
#14 0x6fd2 in lda_deliver (stderr_rejection=false, 
rcpt_to_source=, rcpt_to=, 
path=, user=,

    service_user=, ctx=0x7fffe9e0) at main.c:253
    storage = 0x0
    errstr = 0x0
    ret = 
    var_table = 
    lda_set = 
    smtp_set = 
#15 main (argc=, argv=) at main.c:517
    t = 0x0
    box = 0x0
    set_roots = {0x55758ae0 , 
0x55758a80 , 0x0}
    ctx = {pool = 0x55759b40, set = 0x55764078, smtp_set = 
0x55764008, session = 0x55759b68, session_time_msecs = 0, 
delivery_time_started = {

---Type  to continue, or q  to quit---
    tv_sec = 1570435973, tv_usec = 126295}, dup_db = 
0x5578e040, session_id = 0x0, src_mail = 0x55790c68, mail_from 
= 0x55759b80, mail_params = {
    auth = 0x0, body = {type = 
SMTP_PARAM_MAIL_BODY_TYPE_UNSPECIFIED, ext = 0x0}, envid = 0x0, ret = 
SMTP_PARAM_MAIL_RET_UNSPECIFIED, size = 0, extra_params = {
  arr = {buffer = 0x0, element_size = 0}, v = 0x0, 
v_modifiable = 0x0}}, rcpt_to = 0x55759bb0, rcpt_params = {orcpt = 
{addr_type = 0x0,
  addr = 0x55759bb0, addr_raw = 0x0}, notify = 
SMTP_PARAM_RCPT_NOTIFY_UNSPECIFIED, extra_params = {arr = {buffer = 
0x0, element_size = 0}, v = 0x0,
  v_modifiable = 0x0}}, rcpt_user = 0x55777168, 
rcpt_default_mailbox = 0x763f "INBOX", dest_mail = 0x0, cache 
= 0x0, tempfail_error = 0x0,
  tried_default_save = false, saved_mail = false, 
save_dest_mail = false, mailbox_full = false, dsn = false}

    service_flags = 
    user = 
    errstr = 0x0
    path = 0x0
    rcpt_to = 0x0
    final_rcpt_to = 0x0
    mail_from = 0x55759b80
    storage_service = 0x77d6c5a8
    service_user = 0x55763198
    service_input = {parent_event = 0x0, module = 0x763b 
"lda", service = 0x763b "lda", username = 0x77832f31 
"testaaa...@x.xx",
  session_id = 0x0, session_id_prefix = 0x0, 
session_create_time = 0, local_ip = {family = 0, u = {ip6 = 
{__in6_union = {__s6_addr = '\000' ,
  __s6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __s6_addr32 
= {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, remote_ip = {family = 0, u = 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-07 Thread Demonhost via dovecot

Sorry, I figured some is still missing. Here is the updated one

Program received signal SIGSEGV, Segmentation fault.
p_strdup (pool=pool@entry=0x5579bc40, str=0x6d65642e6c69616d Cannot access memory at address 0x6d65642e6c69616d>) at strfuncs.c:51

51  strfuncs.c: No such file or directory.
(gdb) bt full
#0  p_strdup (pool=pool@entry=0x5579bc40, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

    mem = 
    len = 
#1  0x7757dd1a in ssl_iostream_settings_init_from 
(pool=pool@entry=0x5579bc40, dest=dest@entry=0x5579bd18, 
src=0x55763ef8) at iostream-ssl.c:298

    offset = 0
    src_str = 0x55763ef8
    dest_str = 0x5579bd18
#2  0x77522545 in smtp_submit_session_init 
(input=0x55763ec8, set=set@entry=0x7fffe368) at smtp-submit.c:84

    pool = 0x5579bc40
#3  0x7752265a in smtp_submit_init_simple (input=out>, set=set@entry=0x7fffe368, 
mail_from=mail_from@entry=0x55759ba0) at smtp-submit.c:134

    session = 
    subm = 0x0
#4  0x7687e923 in lda_sieve_smtp_start (senv=, 
mail_from=0x55759ba0) at lda-sieve-plugin.c:86

    dctx = 0x7fffe9d0
    user = 0x55776b28
    ssl_set = {min_protocol = 0x55763de8 "TLSv1", cipher_list = 
0x55763dc0 "ALL:!LOW:!SSLv2:!EXP:!aNULL", curve_list = 
0x55763de0 "", ca = 0x0,
  ca_file = 0x0, ca_dir = 0x0, cert = {cert = 0x0, key = 0x0, 
key_password = 0x0}, alt_cert = {cert = 0x0, key = 0x0, key_password = 
0x0}, dh = 0x0,
  cert_username_field = 0x0, crypto_device = 0x55763df0 "", 
verbose = false, verbose_invalid_cert = false, skip_crl_check = false,
  verify_remote_cert = true, allow_invalid_cert = false, 
prefer_server_ciphers = false, compression = false, tickets = false}
#5  0x765fe761 in sieve_smtp_start (senv=0x7fffe7d0, 
mail_from=0x55759ba0) at sieve-smtp.c:33

    handle = 
#6  0x765fe869 in sieve_smtp_start_single 
(senv=senv@entry=0x7fffe7d0, rcpt_to=0x557a0240, 
mail_from=,

    output_r=output_r@entry=0x7fffe4d0) at sieve-smtp.c:68
    sctx = 
#7  0x7661c71e in act_redirect_send (new_msg_id=0x5575de88 
"", ctx=0x557a0238, 
mail=0x5578f8a8,

    aenv=0x557a00d0) at cmd-redirect.c:339
    output = 0x38
    svinst = 0x55796028
    msgctx = 0x55799d00
    senv = 0x7fffe7d0
    sctx = 
    ret = 
    env_from = {type = SIEVE_ADDRESS_SOURCE_DEFAULT, address = 0x0}
    input = 0x5579a1a0
    sender = 0x55759ba0
    error = 0x775063a3 <__x86_return_thunk+5> 
"\363\220\017\256\350\353\371H\215d$\b\303\350\a"
    hide_headers = {0x766497aa "Return-Path", 0x7664edf7 
"X-Sieve", 0x7664fbb6 "X-Sieve-Redirected-From"}
    hide_headers = {0x766497aa "Return-Path", 0x7664edf7 
"X-Sieve", 0x7664fbb6 "X-Sieve-Redirected-From"}
#8  act_redirect_commit (action=, aenv=0x557a00d0, 
tr_context=, keep=0x7fffe557) at cmd-redirect.c:486

    svinst = 0x55796028
    ctx = 0x557a0238
    msgctx = 
    mail = 0x5578f8a8
    msgdata = 
    senv = 0x7fffe7d0
    recipient = 0x55759bd0
    msg_id = 
    new_msg_id = 0x5575de88 
""

    dupeid = 
    resent_id = 0x0
    list_id = 0x0
#9  0x7660e8a8 in sieve_result_action_commit 
(impl_keep=0x7fffe557, rac=0x557a0270, result=0x557a00a8) at 
sieve-result.c:1208

    act = 0x557a0270
    rsef = 
    cstatus = 1
#10 sieve_result_action_commit_or_rollback 
(result=result@entry=0x557a00a8, rac=rac@entry=0x557a0270, 
status=,
    implicit_keep=implicit_keep@entry=0x7fffe5b3, 
keep=keep@entry=0x557a0224, 
commit_status=commit_status@entry=0x7fffe5b4) at sieve-result.c:1269

    impl_keep = true
    cstatus = 1
    act = 0x557a0270
#11 0x766100d1 in sieve_result_transaction_commit_or_rollback 
(keep=0x557a0224, implicit_keep=0x7fffe5b3, last=0x0, 
first=0x557a0270,

    status=, result=0x557a00a8) at sieve-result.c:1343
    act = 0x557a0270
    rac = 0x557a0270
    commit_status = 1
    seen_delivery = false
#12 sieve_result_execute (result=0x557a00a8, 
keep=keep@entry=0x557a0224, ehandler=, 
flags=) at sieve-result.c:1422

    status = 
    result_status = 
    first_action = 0x557a0270
    last_action = 0x0
    implicit_keep = true
    ret = 
#13 0x7661e9fc in sieve_multiscript_execute 
(mscript=0x557a0200, ehandler=, flags=out>, keep=0x557a0224) at sieve.c:685

No locals.
#14 0x7661f638 in sieve_multiscript_run 
(mscript=mscript@entry=0x557a0200, sbin=, 
exec_ehandler=exec_ehandler@entry=0x5578f568,
    action_ehandler=0x557a6d48, 
flags=flags@entry=SIEVE_EXECUTE_FLAG_NOGLOBAL) at sieve.c:714

No locals.
#15 0x7687f7cb in 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-07 Thread Demonhost via dovecot

Hi Stephan,

Here it is:

Program received signal SIGSEGV, Segmentation fault.
p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d Cannot access memory at address 0x6d65642e6c69616d>) at strfuncs.c:51

51  strfuncs.c: No such file or directory.
(gdb) bt full
#0  p_strdup (pool=pool@entry=0x5579bc20, str=0x6d65642e6c69616d 
) at 
strfuncs.c:51

    mem = 
    len = 
#1  0x7757dd1a in ssl_iostream_settings_init_from 
(pool=pool@entry=0x5579bc20, dest=dest@entry=0x5579bcf8, 
src=0x55764038) at iostream-ssl.c:298

    offset = 0
    src_str = 0x55764038
    dest_str = 0x5579bcf8
#2  0x77522545 in smtp_submit_session_init 
(input=0x55764008, set=0x7fffe378) at smtp-submit.c:84

    pool = 0x5579bc20
#3  0x7752265a in smtp_submit_init_simple (input=out>, set=, mail_from=0x55759b80) at smtp-submit.c:134

    session = 
    subm = 0x0
#4  0x7687e923 in ?? () from /usr/lib/dovecot/lib90_sieve_plugin.so
No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#8  0x7660e8a8 in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from /usr/lib/dovecot/lib90_sieve_plugin.so
No symbol table info available.
#13 0x77b69960 in mail_deliver (ctx=0x7fffe9e0, 
storage_r=0x7fffe9a8) at mail-deliver.c:498

    muser = 0x55777ef8
    ret = 
    __func__ = "mail_deliver"
#14 0x6fd2 in lda_deliver (stderr_rejection=false, 
rcpt_to_source=, rcpt_to=, path=out>, user=,

    service_user=, ctx=0x7fffe9e0) at main.c:253
    storage = 0x0
    errstr = 0x0
    ret = 
    var_table = 
    lda_set = 
    smtp_set = 
#15 main (argc=, argv=) at main.c:517
    t = 0x0
    box = 0x0
    set_roots = {0x55758ae0 , 
0x55758a80 , 0x0}
    ctx = {pool = 0x55759b40, set = 0x55764078, smtp_set = 
0x55764008, session = 0x55759b68, session_time_msecs = 0, 
delivery_time_started = {

---Type  to continue, or q  to quit---
    tv_sec = 1570435973, tv_usec = 126295}, dup_db = 
0x5578e040, session_id = 0x0, src_mail = 0x55790c68, mail_from = 
0x55759b80, mail_params = {
    auth = 0x0, body = {type = 
SMTP_PARAM_MAIL_BODY_TYPE_UNSPECIFIED, ext = 0x0}, envid = 0x0, ret = 
SMTP_PARAM_MAIL_RET_UNSPECIFIED, size = 0, extra_params = {
  arr = {buffer = 0x0, element_size = 0}, v = 0x0, 
v_modifiable = 0x0}}, rcpt_to = 0x55759bb0, rcpt_params = {orcpt = 
{addr_type = 0x0,
  addr = 0x55759bb0, addr_raw = 0x0}, notify = 
SMTP_PARAM_RCPT_NOTIFY_UNSPECIFIED, extra_params = {arr = {buffer = 0x0, 
element_size = 0}, v = 0x0,
  v_modifiable = 0x0}}, rcpt_user = 0x55777168, 
rcpt_default_mailbox = 0x763f "INBOX", dest_mail = 0x0, cache = 
0x0, tempfail_error = 0x0,
  tried_default_save = false, saved_mail = false, 
save_dest_mail = false, mailbox_full = false, dsn = false}

    service_flags = 
    user = 
    errstr = 0x0
    path = 0x0
    rcpt_to = 0x0
    final_rcpt_to = 0x0
    mail_from = 0x55759b80
    storage_service = 0x77d6c5a8
    service_user = 0x55763198
    service_input = {parent_event = 0x0, module = 0x763b 
"lda", service = 0x763b "lda", username = 0x77832f31 
"testaaa...@x.xx",
  session_id = 0x0, session_id_prefix = 0x0, 
session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__in6_union 
= {__s6_addr = '\000' ,
  __s6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __s6_addr32 = 
{0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, remote_ip = {family = 0, u = {ip6 
= {__in6_union = {
  __s6_addr = '\000' , __s6_addr16 = 
{0, 0, 0, 0, 0, 0, 0, 0}, __s6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 
0}}}, local_port = 0,
  remote_port = 0, userdb_fields = 0x0, flags_override_add = 
(unknown: 0), flags_override_remove = (unknown: 0), no_userdb_lookup = 
false, debug = false,

  conn_secured = false, conn_ssl_secured = false}
    user_source = 
    rcpt_to_source = 
    process_euid = 
    stderr_rejection = false
    ret = 
    c = 

On 2019. 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-06 Thread Stephan Bosch via dovecot




On 06/10/2019 23:14, Demonhost wrote:

I think alpine does not have that

https://pkgs.alpinelinux.org/packages?name=dovecot*=v3.8=main=x86_64 



https://git.alpinelinux.org/aports/tree/main/dovecot/APKBUILD?h=3.8-stable 



What else would help? strace?


Do you have the opportunity to build Dovecot yourself, thereby including 
the debug symbols?


Regards,

Stephan.


On 2019. 10. 06. 23:05, Stephan Bosch via dovecot wrote:



On 06/10/2019 23:03, Demonhost wrote:

Hi Stephan,

I managed to get GDB, I hope this one helps. If not I can send the 
config too, but exactly same config works with 2.3.6.


You don't have the debug symbols for Dovecot installed. Usually, your 
system will have a separate package for that. On Debian, it is called 
dovecot-dbg.




92b9d3412dc8:/$ gdb /usr/libexec/dovecot/dovecot-lda -f 
root@ -d test@x

GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


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-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Warning: //test@x: No such file or directory.
Reading symbols from /usr/libexec/dovecot/dovecot-lda...(no 
debugging symbols found)...done.

//root@: No such file or directory.
(gdb) r -f root@ -d test@x < message
Starting program: /usr/libexec/dovecot/dovecot-lda -f root@ 
-d test@x < message

process 359 is executing new program: /usr/bin/doveconf
process 359 is executing new program: /usr/libexec/dovecot/dovecot-lda

Program received signal SIGSEGV, Segmentation fault.
0x775b74f7 in p_strdup () from /usr/lib/dovecot/libdovecot.so.0
(gdb) bt full
#0  0x775b74f7 in p_strdup () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#1  0x7757dd1a in ssl_iostream_settings_init_from () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#2  0x77522545 in smtp_submit_session_init () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x7752265a in smtp_submit_init_simple () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver () from 
/usr/lib/dovecot/libdovecot-lda.so.0

No symbol table info available.
#14 0x6fd2 in main ()
No symbol table info available.

On 2019. 10. 04. 14:42, Stephan Bosch wrote:



Op 4-10-2019 om 12:10 schreef Demonhost via dovecot:

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from 
MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, 
relay=dovecot, delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, 
status=deferred (Command died with signal 11: 
"/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-06 Thread Demonhost via dovecot

I think alpine does not have that

https://pkgs.alpinelinux.org/packages?name=dovecot*=v3.8=main=x86_64

https://git.alpinelinux.org/aports/tree/main/dovecot/APKBUILD?h=3.8-stable

What else would help? strace?

On 2019. 10. 06. 23:05, Stephan Bosch via dovecot wrote:



On 06/10/2019 23:03, Demonhost wrote:

Hi Stephan,

I managed to get GDB, I hope this one helps. If not I can send the 
config too, but exactly same config works with 2.3.6.


You don't have the debug symbols for Dovecot installed. Usually, your 
system will have a separate package for that. On Debian, it is called 
dovecot-dbg.




92b9d3412dc8:/$ gdb /usr/libexec/dovecot/dovecot-lda -f root@ 
-d test@x

GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


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-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Warning: //test@x: No such file or directory.
Reading symbols from /usr/libexec/dovecot/dovecot-lda...(no debugging 
symbols found)...done.

//root@: No such file or directory.
(gdb) r -f root@ -d test@x < message
Starting program: /usr/libexec/dovecot/dovecot-lda -f root@ 
-d test@x < message

process 359 is executing new program: /usr/bin/doveconf
process 359 is executing new program: /usr/libexec/dovecot/dovecot-lda

Program received signal SIGSEGV, Segmentation fault.
0x775b74f7 in p_strdup () from /usr/lib/dovecot/libdovecot.so.0
(gdb) bt full
#0  0x775b74f7 in p_strdup () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#1  0x7757dd1a in ssl_iostream_settings_init_from () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#2  0x77522545 in smtp_submit_session_init () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x7752265a in smtp_submit_init_simple () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver () from 
/usr/lib/dovecot/libdovecot-lda.so.0

No symbol table info available.
#14 0x6fd2 in main ()
No symbol table info available.

On 2019. 10. 04. 14:42, Stephan Bosch wrote:



Op 4-10-2019 om 12:10 schreef Demonhost via dovecot:

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 
250 2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, 
relay=dovecot, delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, 
status=deferred (Command died with signal 11: 
"/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0
dovecot-pigeonhole-plugin-ldap-2.3.7.2-r0

Sieve rule is:
# rule:[test]
if header :contains "subject" "test"
{
    redirect "testem...@gmail.com";
}

In host's 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-06 Thread Stephan Bosch via dovecot




On 06/10/2019 23:03, Demonhost wrote:

Hi Stephan,

I managed to get GDB, I hope this one helps. If not I can send the 
config too, but exactly same config works with 2.3.6.


You don't have the debug symbols for Dovecot installed. Usually, your 
system will have a separate package for that. On Debian, it is called 
dovecot-dbg.




92b9d3412dc8:/$ gdb /usr/libexec/dovecot/dovecot-lda -f root@ 
-d test@x

GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


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-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Warning: //test@x: No such file or directory.
Reading symbols from /usr/libexec/dovecot/dovecot-lda...(no debugging 
symbols found)...done.

//root@: No such file or directory.
(gdb) r -f root@ -d test@x < message
Starting program: /usr/libexec/dovecot/dovecot-lda -f root@ -d 
test@x < message

process 359 is executing new program: /usr/bin/doveconf
process 359 is executing new program: /usr/libexec/dovecot/dovecot-lda

Program received signal SIGSEGV, Segmentation fault.
0x775b74f7 in p_strdup () from /usr/lib/dovecot/libdovecot.so.0
(gdb) bt full
#0  0x775b74f7 in p_strdup () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#1  0x7757dd1a in ssl_iostream_settings_init_from () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#2  0x77522545 in smtp_submit_session_init () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x7752265a in smtp_submit_init_simple () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#4  0x7687e923 in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#8  0x7660e8a8 in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from 
/usr/lib/dovecot/lib90_sieve_plugin.so

No symbol table info available.
#13 0x77b69960 in mail_deliver () from 
/usr/lib/dovecot/libdovecot-lda.so.0

No symbol table info available.
#14 0x6fd2 in main ()
No symbol table info available.

On 2019. 10. 04. 14:42, Stephan Bosch wrote:



Op 4-10-2019 om 12:10 schreef Demonhost via dovecot:

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 
250 2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, 
relay=dovecot, delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, 
status=deferred (Command died with signal 11: 
"/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0
dovecot-pigeonhole-plugin-ldap-2.3.7.2-r0

Sieve rule is:
# rule:[test]
if header :contains "subject" "test"
{
    redirect "testem...@gmail.com";
}

In host's dmesg we found the following:
[213184.882341] traps: dovecot-lda[6128] general protection 
ip:7ff6cf8144f7 sp:7fff5f800b30 error:0 in 
libdovecot.so.0.0.0[7ff6cf724000+36]


Sorry, not knowledgeable enough on how to do the GBD debug.
-
We went back to 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-06 Thread Demonhost via dovecot

Hi Stephan,

I managed to get GDB, I hope this one helps. If not I can send the 
config too, but exactly same config works with 2.3.6.


92b9d3412dc8:/$ gdb /usr/libexec/dovecot/dovecot-lda -f root@ -d 
test@x

GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 


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-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Warning: //test@x: No such file or directory.
Reading symbols from /usr/libexec/dovecot/dovecot-lda...(no debugging 
symbols found)...done.

//root@: No such file or directory.
(gdb) r -f root@ -d test@x < message
Starting program: /usr/libexec/dovecot/dovecot-lda -f root@ -d 
test@x < message

process 359 is executing new program: /usr/bin/doveconf
process 359 is executing new program: /usr/libexec/dovecot/dovecot-lda

Program received signal SIGSEGV, Segmentation fault.
0x775b74f7 in p_strdup () from /usr/lib/dovecot/libdovecot.so.0
(gdb) bt full
#0  0x775b74f7 in p_strdup () from /usr/lib/dovecot/libdovecot.so.0
No symbol table info available.
#1  0x7757dd1a in ssl_iostream_settings_init_from () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#2  0x77522545 in smtp_submit_session_init () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#3  0x7752265a in smtp_submit_init_simple () from 
/usr/lib/dovecot/libdovecot.so.0

No symbol table info available.
#4  0x7687e923 in ?? () from /usr/lib/dovecot/lib90_sieve_plugin.so
No symbol table info available.
#5  0x765fe761 in sieve_smtp_start () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#6  0x765fe869 in sieve_smtp_start_single () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#7  0x7661c71e in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#8  0x7660e8a8 in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#9  0x766100d1 in sieve_result_execute () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#10 0x7661e9fc in ?? () from /usr/lib/dovecot/libdovecot-sieve.so.0
No symbol table info available.
#11 0x7661f638 in sieve_multiscript_run () from 
/usr/lib/dovecot/libdovecot-sieve.so.0

No symbol table info available.
#12 0x7687f7cb in ?? () from /usr/lib/dovecot/lib90_sieve_plugin.so
No symbol table info available.
#13 0x77b69960 in mail_deliver () from 
/usr/lib/dovecot/libdovecot-lda.so.0

No symbol table info available.
#14 0x6fd2 in main ()
No symbol table info available.

On 2019. 10. 04. 14:42, Stephan Bosch wrote:



Op 4-10-2019 om 12:10 schreef Demonhost via dovecot:

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 
250 2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, 
relay=dovecot, delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, 
status=deferred (Command died with signal 11: 
"/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0
dovecot-pigeonhole-plugin-ldap-2.3.7.2-r0

Sieve rule is:
# rule:[test]
if header :contains "subject" "test"
{
    redirect "testem...@gmail.com";
}

In host's dmesg we found the following:
[213184.882341] traps: dovecot-lda[6128] general protection 
ip:7ff6cf8144f7 sp:7fff5f800b30 error:0 in 
libdovecot.so.0.0.0[7ff6cf724000+36]


Sorry, not knowledgeable enough on how to do the GBD debug.
-
We went back to previous version and issue disappeared.

8b45bb255b67:/# cat /etc/alpine-release
3.8.4
8b45bb255b67:/# apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: 

Re: Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-04 Thread Stephan Bosch via dovecot




Op 4-10-2019 om 12:10 schreef Demonhost via dovecot:

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 
250 2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, relay=dovecot, 
delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, status=deferred (Command 
died with signal 11: "/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0
dovecot-pigeonhole-plugin-ldap-2.3.7.2-r0

Sieve rule is:
# rule:[test]
if header :contains "subject" "test"
{
    redirect "testem...@gmail.com";
}

In host's dmesg we found the following:
[213184.882341] traps: dovecot-lda[6128] general protection 
ip:7ff6cf8144f7 sp:7fff5f800b30 error:0 in 
libdovecot.so.0.0.0[7ff6cf724000+36]


Sorry, not knowledgeable enough on how to do the GBD debug.
-
We went back to previous version and issue disappeared.

8b45bb255b67:/# cat /etc/alpine-release
3.8.4
8b45bb255b67:/# apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.6-r0
dovecot-fts-solr-2.3.6-r0
dovecot-ldap-2.3.6-r0
dovecot-pigeonhole-plugin-2.3.6-r0
dovecot-pigeonhole-plugin-ldap-2.3.6-r0

Anyone else already had this problem or you know how to fix it?


I can't readily reproduce it with the information available so far. Do 
you have the opportunity to obtain a GDB backtrace? You can e.g. run LDA 
manually at the command line with the same arguments and message input 
Postfix provides and wrap it in GDB if you can reproduce the crash.


Your configuration may also help (output from `dovecot -n`)

Regards,

Stephan.



Sieve redirect is broken in 2.3.7.2 - signal 11

2019-10-04 Thread Demonhost via dovecot

Hi,

If we use sieve redirect under dovecot 2.3.7.2 we end up with

Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 0605F207B0F36: to=, 
relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0/0/1.1, 
dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 
2.0.0 Ok: queued as 6FC89207B0F38)
Oct 04 03:30:31 dockerhost docker[12154]: 2019-10-04T03:30:31 
53ac2ae27650 postfix: 6FC89207B0F38: to=, relay=dovecot, 
delay=0.31, delays=0.05/0/0/0.26, dsn=4.3.0, status=deferred (Command 
died with signal 11: "/usr/libexec/dovecot/dovecot-lda")


Using docker with official alpine image.

/ # cat /etc/alpine-release
3.8.4

/ # apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.7.2-r0
dovecot-fts-solr-2.3.7.2-r0
dovecot-ldap-2.3.7.2-r0
dovecot-pigeonhole-plugin-2.3.7.2-r0
dovecot-pigeonhole-plugin-ldap-2.3.7.2-r0

Sieve rule is:
# rule:[test]
if header :contains "subject" "test"
{
    redirect "testem...@gmail.com";
}

In host's dmesg we found the following:
[213184.882341] traps: dovecot-lda[6128] general protection 
ip:7ff6cf8144f7 sp:7fff5f800b30 error:0 in 
libdovecot.so.0.0.0[7ff6cf724000+36]


Sorry, not knowledgeable enough on how to do the GBD debug.
-
We went back to previous version and issue disappeared.

8b45bb255b67:/# cat /etc/alpine-release
3.8.4
8b45bb255b67:/# apk info -v | grep dovecot
WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory
dovecot-2.3.6-r0
dovecot-fts-solr-2.3.6-r0
dovecot-ldap-2.3.6-r0
dovecot-pigeonhole-plugin-2.3.6-r0
dovecot-pigeonhole-plugin-ldap-2.3.6-r0

Anyone else already had this problem or you know how to fix it?

Thanks in advance.