Discussion:
[bug-mailutils] imap4d aborts
Ken Brown
2017-04-24 20:23:27 UTC
Permalink
Starting with commit 87e06f7 (Rewrite TLS support), imap4d fails as
follows:

$ ./imap4d.exe --version
INTERNAL ERROR: Requested unknown canned section tls
Aborted (core dumped)

[This is on Cygwin; I haven't tried it on any other platform.]

Running imap4d under gdb, I see the following:

#0 0x00000005f7e51881 in mu_assoc_get (assoc=0x60007e910,
name=0x1004183e1 "tls") at assoc.c:325
#1 0x00000005f7e6f099 in mu_get_canned_container (name=0x1004183e1 "tls")
at driver.c:91
#2 0x00000005f7e6f4e4 in mu_cfg_section_add_params (sect=0x600083db0,
param=0x100415ad8 <imap4d_srv_param+56>) at driver.c:260
#3 0x00000005f7eaab80 in mu_m_server_cfg_init (srv=0x600083830,
app_param=0x100415aa0 <imap4d_srv_param>) at msrv.c:998
#4 0x0000000100408956 in main (argc=2, argv=0xffffcc10) at imap4d.c:1005

The call to mu_assoc_get returns NULL because assoc_find_slot doesn't
find "tls". Shouldn't something be done to create the "tls" section
before mu_get_canned_container is called?

Ken
Sergey Poznyakoff
2017-04-25 08:06:07 UTC
Permalink
Hi Ken,
Post by Ken Brown
Starting with commit 87e06f7 (Rewrite TLS support),
There's no such commit in git master. The one you are referring
to has the following SHA1: afda9ba46c7eb2c061f3907dc7e80ae1ba38157b.
It is linked against an older versiobn of the libmu_auth.so

Regards,
Sergey
Ken Brown
2017-04-25 12:13:20 UTC
Permalink
Hi Sergey,
Post by Sergey Poznyakoff
There's no such commit in git master. The one you are referring
to has the following SHA1: afda9ba46c7eb2c061f3907dc7e80ae1ba38157b.
Sorry, I forgot that I was working in a local branch, including the
commits needed for building on Cygwin.
Post by Sergey Poznyakoff
It is linked against an older versiobn of the libmu_auth.so
I'm not sure how that could have happened, but I'll investigate further.
Thanks for the quick response.

Regards,

Ken
Ken Brown
2017-04-26 20:45:29 UTC
Permalink
Post by Ken Brown
Post by Sergey Poznyakoff
It is linked against an older versiobn of the libmu_auth.so
I'm not sure how that could have happened, but I'll investigate further.
Thanks for the quick response.
I found the problem. The patch
0003-Fix-undefined-symbols-errors-on-Cygwin.patch that I submitted in
https://lists.gnu.org/archive/html/bug-mailutils/2017-03/msg00014.html
was wrong and caused strange behavior. I'll submit a revised patch to
that thread shortly. Sorry for the noise.

Ken

Loading...