Segmentation fault during init

Hi,

I’m trying to upgrade our rather old 3.8.8 installation to newer version, so I thought I would start again with a clean VM (debian buster 10 + mariadb + nginx + rt4-fcgi) and managed to install it okay, however, when trying to initialise the database, I get a segmentation fault.

If anyone can help shed any light on it, would be appreciated. I notice similar errors have been reported in the past, but none of these seem to quite apply in my case.

# /usr/sbin/rt-setup-database-4 --action drop --dba root --prompt-for-dba-password
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '3306') as root
Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Working with:
Type:   mysql
Host:   localhost
Port:   3306
Name:   rt4
User:   rt
DBA:    root
Dropping mysql database rt4.

About to drop mysql database rt4 on localhost (port '3306').
WARNING: This will erase all data in rt4.

Proceed [y/N]:y
Done.
root@tigger:/var/log# /usr/sbin/rt-setup-database-4 --action init --dba root --prompt-for-dba-password
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '3306') as root
Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Working with:
Type:   mysql
Host:   localhost
Port:   3306
Name:   rt4
User:   rt
DBA:    root
Now creating a mysql database rt4 for RT.
Done.
Now populating database schema.
Done.
Now inserting database ACLs.
Done.
Now inserting RT core system objects.
Done.
Segmentation fault

Aug 2 15:27:51 tigger kernel: [95652.570752] traps: rt-setup-databa[10057] general protection ip:7fcc1753bcd2 sp:7ffff530e160 error:0 in libmariadb.so.3[7fcc1752f000+21000]

I can get the web interface to appear, but it errors out and doesn’t seem to have set up a root user/password in the database.

The upgrade process also seems to have issues: (which is why I started with a fresh database.)

# /usr/sbin/rt-setup-database-4 --action upgrade --dba rt --prompt-for-dba-password --root-password-file /tmp/rtpass
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '3306') as rt
Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Working with:
Type:   mysql
Host:   localhost
Port:   3306
Name:   rt3
User:   rt
DBA:    rt
Enter RT version you're upgrading from: 3.8.8

Going to apply following upgrades:
* 3.8.9
* 3.9.1
* 3.9.2
* 3.9.3
* 3.9.5
* 3.9.6
* 3.9.7
* 3.9.8
* 4.0.0rc2
* 4.0.0rc4
* 4.0.0rc7
* 4.0.1
* 4.0.3
* 4.0.4
* 4.0.6
* 4.0.9
* 4.0.12
* 4.0.13
* 4.0.18
* 4.0.19
* 4.1.0
* 4.1.1
* 4.1.4
* 4.1.5
* 4.1.6
* 4.1.7
* 4.1.8
* 4.1.9
* 4.1.10
* 4.1.11
* 4.1.12
* 4.1.13
* 4.1.14
* 4.1.15
* 4.1.16
* 4.1.17
* 4.1.18
* 4.1.19
* 4.1.20
* 4.1.21
* 4.1.22
* 4.1.23
* 4.2.1
* 4.2.2
* 4.2.4
* 4.2.6
* 4.2.7
* 4.2.8
* 4.2.10
* 4.2.11
* 4.3.0
* 4.3.1
* 4.3.2
* 4.3.3
* 4.3.5
* 4.3.6
* 4.3.7
* 4.3.8
* 4.3.9
* 4.3.10
* 4.3.11
* 4.3.12
* 4.3.13
* 4.4.1
* 4.4.2

Enter RT version if you want to stop upgrade at some point,
  or leave it blank if you want apply above upgrades:

IT'S VERY IMPORTANT TO BACK UP BEFORE THIS STEP

Proceed [y/N]:y
Processing 3.8.9
Segmentation fault
Aug  2 15:34:31 tigger kernel: [96053.368114] rt-setup-databa[10141]: segfault at 1 ip 00007ff81237ccca sp 00007ffd55b35cc0 error 4 in libmariadb.so.3[7ff812370000+21000]
Aug  2 15:34:31 tigger kernel: [96053.370380] Code: 48 81 ec 28 05 00 00 64 48 8b 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8b 87 f0 04 00 00 48 85 c0 74 26 48 8b 00 48 85 c0 74 1e <48> 8b 00 48 85 c0 74 16 48 8b 40 78 48 85 c0 74 0d ff d0 e9 57 03

Thanks,

Rob

Are you migration from MySQL 4 to 4.1 or above? This could help you: UPGRADING.mysql - RT 4.4.4 Documentation - Best Practical