Bug 497620 - Database migrator fails with "index out of range"
Summary: Database migrator fails with "index out of range"
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Migration (show other bugs)
Version: 6.3.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-17 20:27 UTC by Joshua J. Kugler
Modified: 2025-02-05 12:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Core dump of migration attempt (1.30 MB, application/gzip)
2024-12-19 17:58 UTC, Joshua J. Kugler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua J. Kugler 2024-12-17 20:27:03 UTC
SUMMARY
Migrating DB to sqlite produces error

$ akonadi-db-migrator --newengine sqlite
This installation of MariaDB is already upgraded to 10.11.8-MariaDB.
There is no need to run mysql_upgrade again for 10.11.8-MariaDB.
You can use --force if you still want to run mysql_upgrade
org.kde.pim.akonadiserver: Running DB initializer
org.kde.pim.akonadiserver: DB initializer done
org.kde.pim.akonadiserver: Running DB initializer
ASSERT failure in QList::at: "index out of range", file /usr/include/x86_64-linux-gnu/qt6/QtCore/qlist.h, line 450
Aborted (core dumped)

It says "core dumped," but I don't see a core file. I even ran ulimit -S -c unlimited beforehand.

EXPECTED RESULT
Database to be migrated to Sqlite.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon, all packages up to date
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 Joshua J. Kugler 2024-12-19 17:56:12 UTC
Here is the output of coredumpctl. I'll attach the dump as well.

$ coredumpctl -o akonadi-db-migrator.dump dump 119672
           PID: 119672 (akonadi-db-migr)
           UID: 1000 (jkugler)
           GID: 1000 (jkugler)
        Signal: 6 (ABRT)
     Timestamp: Tue 2024-12-17 11:43:10 AKST (1 day 21h ago)
  Command Line: akonadi-db-migrator --newengine sqlite
    Executable: /usr/bin/akonadi-db-migrator
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-119450.scope/tab(119486).scope
          Unit: user@1000.service
     User Unit: app-org.kde.konsole-119450.scope
         Slice: user-1000.slice
     Owner UID: 1000 (jkugler)
       Boot ID: 59da9bf3cb4a4f05ac25c3f0f9b7a693
    Machine ID: db331cba77654531aa09afeb251ca29b
      Hostname: tehillah
       Storage: /var/lib/systemd/coredump/core.akonadi-db-migr.1000.59da9bf3cb4a4f05ac25c3f0f9b7a693.119672.1734468190000000.zst (present)
  Size on Disk: 1.2M
       Message: Process 119672 (akonadi-db-migr) of user 1000 dumped core.
                
                Module libgomp.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Module libsystemd.so.0 from deb systemd-255.4-1ubuntu8.4pop0~1728681999~24.04~814fa98~dev.amd64
                Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2build1.1.amd64
                Module libudev.so.1 from deb systemd-255.4-1ubuntu8.4pop0~1728681999~24.04~814fa98~dev.amd64
                Module libgcc_s.so.1 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Module libstdc++.so.6 from deb gcc-14-14.2.0-4ubuntu2~24.04.amd64
                Stack trace of thread 119673:
                #0  0x0000739d9ec9eb1c __pthread_kill_implementation (libc.so.6 + 0x9eb1c)
                #1  0x0000739d9ec4526e __GI_raise (libc.so.6 + 0x4526e)
                #2  0x0000739d9ec288ff __GI_abort (libc.so.6 + 0x288ff)
                #3  0x0000739d9f90e0be n/a (libQt6Core.so.6 + 0x50e0be)
                #4  0x0000739d9f90ef9b _ZNK14QMessageLogger5fatalEPKcz (libQt6Core.so.6 + 0x50ef9b)
                #5  0x0000739d9f90f06d _Z11qt_assert_xPKcS0_S0_i (libQt6Core.so.6 + 0x50f06d)
                #6  0x000056494fb249fe n/a (akonadi-db-migrator + 0x3c9fe)
                #7  0x000056494fb821e9 n/a (akonadi-db-migrator + 0x9a1e9)
                #8  0x000056494fb6381a n/a (akonadi-db-migrator + 0x7b81a)
                #9  0x000056494fb69768 n/a (akonadi-db-migrator + 0x81768)
                #10 0x000056494fb69f91 n/a (akonadi-db-migrator + 0x81f91)
                #11 0x000056494fb6a6bf n/a (akonadi-db-migrator + 0x826bf)
                #12 0x000056494fb6a9f2 n/a (akonadi-db-migrator + 0x829f2)
                #13 0x0000739d9eca1ec3 __pthread_once_slow (libc.so.6 + 0xa1ec3)
                #14 0x000056494fb61e0e n/a (akonadi-db-migrator + 0x79e0e)
                #15 0x0000739d9f7c31ba n/a (libQt6Core.so.6 + 0x3c31ba)
                #16 0x0000739d9f786dfe n/a (libQt6Core.so.6 + 0x386dfe)
                #17 0x0000739d9ec9ca94 start_thread (libc.so.6 + 0x9ca94)
                #18 0x0000739d9ed29c3c __clone3 (libc.so.6 + 0x129c3c)
                
                Stack trace of thread 119672:
                #0  0x0000739d9ed1b4cd __GI___poll (libc.so.6 + 0x11b4cd)
                #1  0x0000739d9e77366e n/a (libglib-2.0.so.0 + 0xbc66e)
                #2  0x0000739d9e713a53 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca53)
                #3  0x0000739d9f6702cf _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x2702cf)
                #4  0x0000739d9f8c1aeb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4c1aeb)
                #5  0x0000739d9f8b8c2d _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x4b8c2d)
                #6  0x000056494fb5aca1 n/a (akonadi-db-migrator + 0x72ca1)
                #7  0x0000739d9ec2a1ca __libc_start_call_main (libc.so.6 + 0x2a1ca)
                #8  0x0000739d9ec2a28b __libc_start_main_impl (libc.so.6 + 0x2a28b)
                #9  0x000056494fb5f965 n/a (akonadi-db-migrator + 0x77965)
                
                Stack trace of thread 119674:
                #0  0x0000739d9ed1b4cd __GI___poll (libc.so.6 + 0x11b4cd)
                #1  0x0000739d9e77366e n/a (libglib-2.0.so.0 + 0xbc66e)
                #2  0x0000739d9e713a53 g_main_context_iteration (libglib-2.0.so.0 + 0x5ca53)
                #3  0x0000739d9f6702cf _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x2702cf)
                #4  0x0000739d9f8c1aeb _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x4c1aeb)
                #5  0x0000739d9f7c2027 _ZN7QThread4execEv (libQt6Core.so.6 + 0x3c2027)
                #6  0x0000739d9fae89dd n/a (libQt6DBus.so.6 + 0x9b9dd)
                #7  0x0000739d9f786dfe n/a (libQt6Core.so.6 + 0x386dfe)
                #8  0x0000739d9ec9ca94 start_thread (libc.so.6 + 0x9ca94)
                #9  0x0000739d9ed29c3c __clone3 (libc.so.6 + 0x129c3c)
                ELF object binary architecture: AMD x86-64
Comment 2 Joshua J. Kugler 2024-12-19 17:58:58 UTC
Created attachment 176772 [details]
Core dump of migration attempt
Comment 3 Joshua J. Kugler 2025-01-19 22:18:22 UTC
Any more information I can provide or help with?