Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
| Tasklist |

FS#58601 - [dovecot] [postgresql-libs] dovecot/auth: error while loading shared libraries: liblber-2.4.so.2

Attached to Project: Community Packages
Opened by uu5dgyj (uu5dgyj) - Tuesday, 15 May 2018, 07:36 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 17 May 2018, 03:26 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Dan McGee (toofishes)
Johannes Löthberg (demize)
Levente Polyak (anthraxx)
Thore Bödecker (foxxx0)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Description:

Dovecot fails to authenticate client connections, see full error below.

The shared library triggering this error belongs to libldap. However, I do not have a LDAP configuration. I use auth-passwdfile.conf.ext only, while auth-ldap.conf.ext is disabled. It still appears to load the library.

As a consequence dovecot_delivery appears to be broken too. All incoming mails queue up in exim because dovecot_delivery fails with exit code 75.


Additional info:
* dovecot 2.3.1-2
* libldap 2.4.46-1
* linux-4.14.12-1, linux-4.16.3, linux-4.18.1

* full error from journalctl -u dovecot

===
May 15 07:53:04 emerald dovecot[282]: auth: Error: dovecot/auth: error while loading shared libraries: liblber-2.4.so.2: failed to map segment from shared obj>
May 15 07:53:04 emerald dovecot[220]: master: Error: service(auth): command startup failed, throttling for 32 secs
May 15 07:53:04 emerald dovecot[282]: auth: Fatal: master: service(auth): child 5513 returned error 127
May 15 07:53:04 emerald dovecot[282]: imap-login: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.>
May 15 07:53:04 emerald dovecot[282]: imap-login: Warning: Timeout leak: 0x7f9f43694600 (auth-server-connection.c:397)
===


Steps to reproduce:

Connect to dovecot using a IMAP client. It fails to login and journalctl on the server will show the error.

Othet than that I do not know what produced the condition. It happens since May 11th. But I do not see updates of libldap or dovecot on that day.


Steps attempted to solve it:


On May 11th a reboot loaded a new kernel, but I think I ruled that out by trying the three kernels listed above.

Regarding the shared library error I found old bugs, where this was caused by filesystems mounted with "noexec", especially /tmp. I do not see this. But /tmp is tmpfs nowadays.
This task depends upon

Comment by Pascal E. (hardfalcon) - Tuesday, 15 May 2018, 10:01 GMT
I can confirm this, seeing exactly the same on one of my machines.

//EDIT: In case it matters: I use the testing repositories on that machine. Rollback to non-testing packages didn't solve the problem, though.
Comment by Pascal E. (hardfalcon) - Wednesday, 16 May 2018, 15:04 GMT
This seems to be caused by postgresql-libs 10.4 (both the versions from testing and from extra trigger the problem on my machine).

Rollback to postgresql-libs 10.3-1 solves the issue (but that isn't a permament solution, of course).
Comment by uu5dgyj (uu5dgyj) - Wednesday, 16 May 2018, 19:52 GMT
Can confirm that rolling back to postgresql-libs 10.3-1 quickfixes it.

whats the connection?

knowing that, I see /usr/lib/dovecot/auth is linked with /usr/lib/libpq.so.5

but the error shows a problem with /usr/lib/liblber-2.4.so.2

neither /usr/lib/dovecot/auth nor /usr/lib/libpq.so.5 are linked to liblber-2.4.so.2

there is no postgres used in my dovecot setup and not on that machine at all.

Loading...