1

Topic: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
iRedMail version :1.6.7 MARIADB edition.
Deployed : downloadable installer
Linux Ubuntu 22.04
Store mail accounts: Mariadb
Web server Nginx
Rouncube : roundcubemail-1.6.5
==============
Hi.
When I try to log in the Runcube Webmail, always gives kernel segfault error 4 in the libmysqlclient.so library. Here is the errors in Syslog:

Nov 24 16:09:56 Mail-ovh RoundCube: <k9aon6QP> Failed login for xxx@example.com.br from 201.92.219.184 In session k9aon6qpc6umnlbv (error: 1)

Nov 24 16:10:06 Mail-ovh Kernel: [1131.709868] DICT [2374]: SEGFAULT AT B8 IP 00007F4190F45C1 SP 00007FD6666F3180 ERROR 4 IN LIBMYSQLCLIENT.SO.21.2.35 [7F4419071000+8C000]

Nov 24 16:10:06 MAIL-OVH KERNEL: [1131.709882] Code: 84 00 00 00 00 00 0F 00 F3 0F 1E FA 55 48 8D 04 48 89 E5 41 57 4C 8D 0A 41 56 41 54 54 53 48 83 EC 18 48 89 45 C8 <48> 8b 87 B8 00 00 48 89 75 C0 4C 8b 60 08 4c 39 FA 0F 83 79 01


Any suggestions on how to solve this problem?


Thank you in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Cthulhu 2023-11-25 05:55:26)

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Is it a IDN? (Punycode)

How much RAM do you have?

3

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Cthulhu wrote:

Is it a IDN? (Punycode)

How much RAM do you have?

Hi Cthulhu.

I think memory is not the problem, the server has 16Gb of ram. iRedadmin works smoothly just like phpmyadmin. The only problem is with the roundcube.

4

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Either a sloppy coding in the actual sql library, or a problem with roundcube

can you make a 2nd installation with 1.5.6 LTS
https://roundcube.net/download/

use the installer script, then you can just change the softlink to point to the different installations without tinkering with the original installation

5 (edited by julio7000 2023-11-27 00:49:47)

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Cthulhu wrote:

Either a sloppy coding in the actual sql library, or a problem with roundcube

can you make a 2nd installation with 1.5.6 LTS


use the installer script, then you can just change the softlink to point to the different installations without tinkering with the original installation

Same Kernell error on 1.5.6 LTS.

Nov 26 13:34:20 mail-ovh kernel: [164586.948812] dict[57206]: segfault at b8 ip 00007f67d6e245c1 sp 00007fffc798f870 error 4 in libmysqlclient.so.21.2.35[7f67d6da1000+8c000]

Nov 26 13:34:20 mail-ovh roundcube: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /opt/www/roundcubemail-1.5.6/program/include/rcmail.php on line 1190

6

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

julio7000 wrote:
Cthulhu wrote:

Either a sloppy coding in the actual sql library, or a problem with roundcube

can you make a 2nd installation with 1.5.6 LTS


use the installer script, then you can just change the softlink to point to the different installations without tinkering with the original installation

Same Kernell error on 1.5.6 LTS.

Nov 26 13:34:20 mail-ovh kernel: [164586.948812] dict[57206]: segfault at b8 ip 00007f67d6e245c1 sp 00007fffc798f870 error 4 in libmysqlclient.so.21.2.35[7f67d6da1000+8c000]

Can I install SOGO in a easy way? Becose I deselected Sogo in the initial iRedmail install.

7

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

must be a crucial error in the actual mysql lib
i highly suggest switching to debian instead for now

8

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Cthulhu wrote:

must be a crucial error in the actual mysql lib
i highly suggest switching to debian instead for now

Thanks for your assistance, I tried reinstalling mariadb with the following command:
apt install --reinstall mariadb-server php-mariadb-mysql-kbs mariadb-common mariadb-client libmariadb3

But the kernel error persists.

I will do some more tests this week. If I find a solution I'll post it here.
Thanks for trying to help me!

9

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

Please try to upgrade all binary packages on your server with "apt update && apt upgrade", then reboot server.

Did you ever install packages from third-party apt repositories? especially mysql related packages.

10

Re: Kernel SEGFALT when login on roundcube (limysqlclient.so.21.2.35)

SOLVED!

Password for vmailadmin mismach on dovecot.
Corrected the files:
dovecot-last-login.conf
dovecot-share-folder.conf
dovecot-used-quota.conf

Now roundcube is working!!

Thank you and sorry for the noise.