Upgrading 4.4.4 to 5.0.5 database upgrade segmentation fault

i cant seem to upgrade my rt from 4.4.4 to 5.0.5 newest version,
it was firsly hosted on ubuntu 14.04, i upgrade to ubuntu 22.04
firstly i unzipped rt-5.0.5 made sur make testdeps were all passed, and it was fine then i dumped db an restored it

mysqldump -u debian-sys-maint -p --default-character-set=binary rt4 > rt4_backup-fixed.sql
mysql -u debian-sys-maint -p --default-character-set=binary rt5 < rt4_backup-fixed.sql

i also set before hand these options
./configure --with-web-user=www-data --with-web-group=www-data --enable-graphviz --enable-gd --enable-smime --with-db-database=rt5 --with-db-rt-user=debian-sys-maint --with-db-rt-pass=omitted
and then i tried

make upgrade
make database-upgrade

which suprisingly failed with no error message only, segmentation fault
this is all the logs i have

/usr/bin/perl -I/opt/rt5/local/lib -I/opt/rt5/lib sbin/rt-setup-database --action upgrade --prompt-for-dba-password
Duplicate specification "package=s" for option "package"
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '') as debian-sys-maint
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:	
Name:	rt5
User:	debian-sys-maint
DBA:	debian-sys-maint
Enter RT version you're upgrading from: 4.4.4

Going to apply following upgrades:
* 4.4.5
* 4.4.6
* 4.5.0
* 4.5.1
* 4.5.2
* 4.5.3
* 4.5.4
* 4.5.5
* 4.5.6
* 4.5.7
* 4.5.8
* 5.0.2
* 5.0.3
* 5.0.4
* 5.0.5

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 4.4.5
make: *** [Makefile:396: upgrade-database] Segmentation fault (core dumped)

what am i doing wrong? i upgraded cpan, cpan -u and everything went fine, and it still wont work
how to do it properly ?
same thing happens when i try to install fresh database too

make initialize-database
/usr/bin/perl -I/opt/rt5/local/lib -I/opt/rt5/lib sbin/rt-setup-database --action init --prompt-for-dba-password
Duplicate specification "package=s" for option "package"
In order to create or update your RT database, this script needs to connect to your  mysql instance on localhost (port '') as debian-sys-maint
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:	
Name:	rt5
User:	debian-sys-maint
DBA:	debian-sys-maint
Now creating a mysql database rt5 for RT.
Done.
Now populating database schema.
Done.
Now inserting database ACLs.
Done.
Now inserting RT core system objects.
Done.
make: *** [Makefile:393: initialize-database] Segmentation fault (core dumped)

i tried to migrate to mariadb, imported databases with same export, but disabled smime on configure
and i got into a latter step

Processing 4.4.5
[92268] [Thu Jan 18 10:28:40 2024] [warning]: Lifecycle change is missing in %Lifecycles config at /opt/rt-5.0.5/sbin/../lib/RT/Lifecycle.pm line 645, <DATA> line 2112. (/opt/rt-5.0.5/sbin/../lib/RT/Lifecycle.pm:645)
Now inserting data.
Processing 4.4.6
Now inserting database indexes.
make: *** [Makefile:396: upgrade-database] Segmentation fault (core dumped)

but why does it randomly crash ? is this proccess viable ?

nevermind, got it working after running it 2-3 times, and increasing the version number to upgrade it from, like from the last time instead of starting upgrade from 4.4.4 i set it to 4.4.6 and it worked yay
now i am trying to make ldap work, yay