<div dir="ltr"><br><div class="gmail_extra">Hi Aki,<br><br></div><div class="gmail_extra">Thanks for your response. Indeed, I don't know why the first 2 lines don't have debugging symbols, as my build of dovecot definitely has them. Any hints on how I can get them?<br><br>$ file /usr/local/libexec/dovecot/auth<br>/usr/local/libexec/dovecot/auth: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 12.0 (1200054), FreeBSD-style, with debug_info, not stripped<br><br></div><div class="gmail_extra"><br>Regardless, it is not really necessary, as I was able to determine from /var/log/debug.log and aslo by attaching gdb to the running "auth -w" process that this all occurred during the pam_authenticate step in src/auth/passdb-pam.c (as per my DIAGNOSIS section in the previous email):<br><a href="https://github.com/dovecot/core/blob/2.2.33.2/src/auth/passdb-pam.c#L158">https://github.com/dovecot/core/blob/2.2.33.2/src/auth/passdb-pam.c#L158</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">Ben<br clear="all"></div><div class="gmail_extra"><div><div class="gmail_signature"><br>--<br>From: Benjamin Woods<br><a href="mailto:woodsb02@gmail.com" target="_blank">woodsb02@gmail.com</a></div></div>
<br><div class="gmail_quote">On 13 February 2018 at 00:44, Aki Tuomi <span dir="ltr"><<a href="mailto:aki.tuomi@dovecot.fi" target="_blank">aki.tuomi@dovecot.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Can you attempt to get core dump with debugging symbols with dovecot too? Currently it seems to only contain symbols from kerberos bit, which is not very useful on it's own.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Aki<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
> On 12 February 2018 at 17:34 Ben Woods <<a href="mailto:woodsb02@gmail.com">woodsb02@gmail.com</a>> wrote:<br>
> GDB BACKTRACE OF COREDUMP:<br>
> $ gdb /usr/local/libexec/dovecot/<wbr>auth<br>
> GNU gdb (GDB) 8.0.1 [GDB v8.0.1 for FreeBSD]<br>
> Copyright (C) 2017 Free Software Foundation, Inc.<br>
> License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" rel="noreferrer" target="_blank">http://gnu.org/licenses/gpl.<wbr>html</a><br>
> ><br>
> This is free software: you are free to change and redistribute it.<br>
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
> and "show warranty" for details.<br>
> This GDB was configured as "x86_64-portbld-freebsd12.0".<br>
> Type "show configuration" for configuration details.<br>
> For bug reporting instructions, please see:<br>
> <<a href="http://www.gnu.org/software/gdb/bugs/" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>gdb/bugs/</a>>.<br>
> Find the GDB manual and other documentation resources online at:<br>
> <<a href="http://www.gnu.org/software/gdb/documentation/" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>gdb/documentation/</a>>.<br>
> For help, type "help".<br>
> Type "apropos word" to search for commands related to "word"...<br>
> Reading symbols from /usr/local/libexec/dovecot/<wbr>auth...done.<br>
> (gdb) core /tmp/auth.core<br>
> [New LWP 102627]<br>
> warning: Can't read pathname for load map: Unknown error: -1.<br>
> warning: Can't read pathname for load map: Unknown error: -1.<br>
> warning: Can't read pathname for load map: Unknown error: -1.<br>
> warning: Can't read pathname for load map: Unknown error: -1.<br>
> Core was generated by `dovecot/auth -w'.<br>
> Program terminated with signal SIGSEGV, Segmentation fault.<br>
> #0  strlen (str=0x0) at /usr/src/lib/libc/string/<wbr>strlen.c:100<br>
> warning: Source file is more recent than executable.<br>
> 100              */<br>
> (gdb) bt<br>
> #0  strlen (str=0x0) at /usr/src/lib/libc/string/<wbr>strlen.c:100<br>
> #1  0x0000000012130022 in strdup (str=0x0) at<br>
> /usr/src/lib/libc/string/<wbr>strdup.c:46<br>
> #2  0x0000000011b65e9d in krb5_appdefault_string (context=0x10777000,<br>
> appname=0x106f0018 "imap", realm=0x0, option=0x13b1f403 "ticket_lifetime",<br>
> default_value=0x0, ret_value=0x7fffffffe088)<br>
>     at appdefault.c:165<br>
> #3  0x0000000013af4a80 in krb5_appdefault_time (context=0x0,<br>
> appname=0xffffffffaaca6003 <error: Cannot access memory at address<br>
> 0xffffffffaaca6003>,<br>
>     realm=0x50 <error: Cannot access memory at address 0x50>, option=0x0,<br>
> def_val=0, ret_val=0x7fffffffe0e0) at<br>
> /usr/src/crypto/heimdal/lib/<wbr>krb5/appdefault.c:130<br>
> #4  0x0000000013ae3e79 in krb5_get_init_creds_opt_set_<wbr>default_flags<br>
> (context=0x10777000, appname=0x106f0018 "imap", realm=0x0, opt=0x1070f3c0)<br>
>     at /usr/src/crypto/heimdal/lib/<wbr>krb5/init_creds.c:171<br>
> #5  0x00000000138b738f in ?? ()<br>
> #6  0x0000000000000000 in ?? ()<br>
><br>
</div></div></blockquote></div></div></div>