Bug 481334 - KAlarm crashes during notification test when volume override is activated
Summary: KAlarm crashes during notification test when volume override is activated
Status: RESOLVED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: sound (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords: drkonqi
: 480789 480874 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-14 19:08 UTC by Herman Tafintsev
Modified: 2024-03-02 18:00 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.02.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Herman Tafintsev 2024-02-14 19:08:23 UTC
Application: kalarm (3.5.4.2 (KDE Gear 22.12.3))

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-18-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.5 [CoredumpBackend]

-- Information about the crash:
When editing a sound notification it is possible to crash KAlarm by activating volume override.

Steps to reproduce:
1. Create a sound notification and save it. Reopen for editing.
2. Check the checkbox for volume override. Don't touch the slider.
3. Press the test button. Experience the crash.

The crash can be reproduced every time.

-- Backtrace:
Application: KAlarm (kalarm), signal: Aborted

           PID: 100710 (kalarm)
           UID: 1000 (xandros)
           GID: 1000 (xandros)
        Signal: 6 (ABRT)
     Timestamp: Wed 2024-02-14 21:01:08 EET (24s ago)
  Command Line: /usr/bin/kalarm
    Executable: /usr/bin/kalarm
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-\x2fusr\x2fbin\x2fkalarm-8f5533192bc940f7b01e0977e12373da.scope
          Unit: user@1000.service
     User Unit: app-\x2fusr\x2fbin\x2fkalarm-8f5533192bc940f7b01e0977e12373da.scope
         Slice: user-1000.slice
     Owner UID: 1000 (xandros)
       Boot ID: ef0bec6b28114d548b8dff82c0748ddb
    Machine ID: dee1029497464d2cadbb42b742d78dab
      Hostname: xandrospc
       Storage: /var/lib/systemd/coredump/core.kalarm.1000.ef0bec6b28114d548b8dff82c0748ddb.100710.1707937268000000.zst (present)
  Size on Disk: 6.2M
       Message: Process 100710 (kalarm) of user 1000 dumped core.
                
                Module libsystemd.so.0 from deb systemd-252.22-1~deb12u1.amd64
                Module libudev.so.1 from deb systemd-252.22-1~deb12u1.amd64
                Stack trace of thread 100710:
                #0  0x00007f3ffdca9e2c __pthread_kill_implementation (libc.so.6 + 0x8ae2c)
                #1  0x00007f3ffdc5afb2 __GI_raise (libc.so.6 + 0x3bfb2)
                #2  0x00007f3fffb2d83d _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x583d)
                #3  0x00007f3ffdc5b050 __restore_rt (libc.so.6 + 0x3c050)
                #4  0x00007f3ffdca9e2c __pthread_kill_implementation (libc.so.6 + 0x8ae2c)
                #5  0x00007f3ffdc5afb2 __GI_raise (libc.so.6 + 0x3bfb2)
                #6  0x00007f3ffdc45472 __GI_abort (libc.so.6 + 0x26472)
                #7  0x00007f3ffd89dc85 n/a (libpulse.so.0 + 0x13c85)
                #8  0x00007f3ffc1b3ae2 n/a (libpulsecommon-16.1.so + 0x4cae2)
                #9  0x00007f3fff4b5fa8 n/a (libpulse-mainloop-glib.so.0 + 0x1fa8)
                #10 0x00007f3ffc31e7a9 g_main_context_dispatch (libglib-2.0.so.0 + 0x547a9)
                #11 0x00007f3ffc31ea38 n/a (libglib-2.0.so.0 + 0x54a38)
                #12 0x00007f3ffc31eacc g_main_context_iteration (libglib-2.0.so.0 + 0x54acc)
                #13 0x00007f3ffe10984e _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30984e)
                #14 0x00007f3ffe0b017b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b017b)
                #15 0x00007f3fff16bbb7 _ZN7QDialog4execEv (libQt5Widgets.so.5 + 0x36bbb7)
                #16 0x00005585ce34363f n/a (kalarm + 0x18f63f)
                #17 0x00005585ce2e64f3 n/a (kalarm + 0x1324f3)
                #18 0x00007f3ffe0e8f4f n/a (libQt5Core.so.5 + 0x2e8f4f)
                #19 0x00007f3ffef5c782 _ZN7QAction9triggeredEb (libQt5Widgets.so.5 + 0x15c782)
                #20 0x00007f3ffef5f3ab _ZN7QAction8activateENS_11ActionEventE (libQt5Widgets.so.5 + 0x15f3ab)
                #21 0x00007f3fff0e3b62 n/a (libQt5Widgets.so.5 + 0x2e3b62)
                #22 0x00007f3fff0eb994 n/a (libQt5Widgets.so.5 + 0x2eb994)
                #23 0x00007f3ffefa4db8 _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5 + 0x1a4db8)
                #24 0x00007f3ffef62fae _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x162fae)
                #25 0x00007f3ffef6b552 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x16b552)
                #26 0x00007f3ffe0b16f8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b16f8)
                #27 0x00007f3ffef6965e _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb (libQt5Widgets.so.5 + 0x16965e)
                #28 0x00007f3ffefbe025 n/a (libQt5Widgets.so.5 + 0x1be025)
                #29 0x00007f3ffefc0f60 n/a (libQt5Widgets.so.5 + 0x1c0f60)
                #30 0x00007f3ffef62fae _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x162fae)
                #31 0x00007f3ffe0b16f8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b16f8)
                #32 0x00007f3ffe53d3ed _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt5Gui.so.5 + 0x13d3ed)
                #33 0x00007f3ffe511cac _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Gui.so.5 + 0x111cac)
                #34 0x00007f3ff80fbeca n/a (libQt5XcbQpa.so.5 + 0x6deca)
                #35 0x00007f3ffc31e7a9 g_main_context_dispatch (libglib-2.0.so.0 + 0x547a9)
                #36 0x00007f3ffc31ea38 n/a (libglib-2.0.so.0 + 0x54a38)
                #37 0x00007f3ffc31eacc g_main_context_iteration (libglib-2.0.so.0 + 0x54acc)
                #38 0x00007f3ffe109836 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x309836)
                #39 0x00007f3ffe0b017b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b017b)
                #40 0x00007f3ffe0b82d6 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2b82d6)
                #41 0x00005585ce233a27 n/a (kalarm + 0x7fa27)
                #42 0x00007f3ffdc4624a __libc_start_call_main (libc.so.6 + 0x2724a)
                #43 0x00007f3ffdc46305 __libc_start_main_impl (libc.so.6 + 0x27305)
                #44 0x00005585ce2343e1 n/a (kalarm + 0x803e1)
                
                Stack trace of thread 100716:
                #0  0x00007f4000632ad4 strcmp (ld-linux-x86-64.so.2 + 0x22ad4)
                #1  0x00007f4000617dca _dl_map_object (ld-linux-x86-64.so.2 + 0x7dca)
                #2  0x00007f4000612281 openaux (ld-linux-x86-64.so.2 + 0x2281)
                #3  0x00007f3ffdd6dfca __GI__dl_catch_exception (libc.so.6 + 0x14efca)
                #4  0x00007f40006125ea _dl_map_object_deps (ld-linux-x86-64.so.2 + 0x25ea)
                #5  0x00007f400061b8ed dl_open_worker_begin (ld-linux-x86-64.so.2 + 0xb8ed)
                #6  0x00007f3ffdd6dfca __GI__dl_catch_exception (libc.so.6 + 0x14efca)
                #7  0x00007f400061b046 dl_open_worker (ld-linux-x86-64.so.2 + 0xb046)
                #8  0x00007f3ffdd6dfca __GI__dl_catch_exception (libc.so.6 + 0x14efca)
                #9  0x00007f400061b438 _dl_open (ld-linux-x86-64.so.2 + 0xb438)
                #10 0x00007f3ffdca4438 dlopen_doit (libc.so.6 + 0x85438)
                #11 0x00007f3ffdd6dfca __GI__dl_catch_exception (libc.so.6 + 0x14efca)
                #12 0x00007f3ffdd6e07f __GI__dl_catch_error (libc.so.6 + 0x14f07f)
                #13 0x00007f3ffdca3f27 _dlerror_run (libc.so.6 + 0x84f27)
                #14 0x00007f3ffdca44e9 dlopen_implementation (libc.so.6 + 0x854e9)
                #15 0x00007f3fe698051f n/a (libvlccore.so.9 + 0xb951f)
                #16 0x00007f3fe68f8b44 n/a (libvlccore.so.9 + 0x31b44)
                #17 0x00007f3fe68f7400 n/a (libvlccore.so.9 + 0x30400)
                #18 0x00007f3fe68f7cd1 vlc_module_load (libvlccore.so.9 + 0x30cd1)
                #19 0x00007f3fe691b866 n/a (libvlccore.so.9 + 0x54866)
                #20 0x00007f3fe692bd93 n/a (libvlccore.so.9 + 0x64d93)
                #21 0x00007f3fe692f8dd n/a (libvlccore.so.9 + 0x688dd)
                #22 0x00007f3fe6931e58 n/a (libvlccore.so.9 + 0x6ae58)
                #23 0x00007f3ffdca8134 start_thread (libc.so.6 + 0x89134)
                #24 0x00007f3ffdd287dc __clone3 (libc.so.6 + 0x1097dc)
                
                Stack trace of thread 100711:
                #0  0x00007f3ffdd1b15f __GI___poll (libc.so.6 + 0xfc15f)
                #1  0x00007f3ffd1bed12 n/a (libxcb.so.1 + 0xcd12)
                #2  0x00007f3ffd1c107a xcb_wait_for_event (libxcb.so.1 + 0xf07a)
                #3  0x00007f3ff80faf00 n/a (libQt5XcbQpa.so.5 + 0x6cf00)
                #4  0x00007f3ffdecbd43 n/a (libQt5Core.so.5 + 0xcbd43)
                #5  0x00007f3ffdca8134 start_thread (libc.so.6 + 0x89134)
                #6  0x00007f3ffdd287dc __clone3 (libc.so.6 + 0x1097dc)
                
                Stack trace of thread 100715:
                #0  0x00007f3ffdd1b15f __GI___poll (libc.so.6 + 0xfc15f)
                #1  0x00007f3ffd8be2e1 n/a (libpulse.so.0 + 0x342e1)
                #2  0x00007f3ffd8affa4 pa_mainloop_poll (libpulse.so.0 + 0x25fa4)
                #3  0x00007f3ffd8b0606 pa_mainloop_iterate (libpulse.so.0 + 0x26606)
                #4  0x00007f3ffd8b06b0 pa_mainloop_run (libpulse.so.0 + 0x266b0)
                #5  0x00007f3ffd8be3b9 n/a (libpulse.so.0 + 0x343b9)
                #6  0x00007f3ffc1c233f n/a (libpulsecommon-16.1.so + 0x5b33f)
                #7  0x00007f3ffdca8134 start_thread (libc.so.6 + 0x89134)
                #8  0x00007f3ffdd287dc __clone3 (libc.so.6 + 0x1097dc)
                
                Stack trace of thread 100713:
                #0  0x00007f3ffdd1b15f __GI___poll (libc.so.6 + 0xfc15f)
                #1  0x00007f3ffc31e9ae n/a (libglib-2.0.so.0 + 0x549ae)
                #2  0x00007f3ffc31eacc g_main_context_iteration (libglib-2.0.so.0 + 0x54acc)
                #3  0x00007f3ffe109836 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x309836)
                #4  0x00007f3ffe0b017b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b017b)
                #5  0x00007f3ffdecab87 _ZN7QThread4execEv (libQt5Core.so.5 + 0xcab87)
                #6  0x00007f3ffdecbd43 n/a (libQt5Core.so.5 + 0xcbd43)
                #7  0x00007f3ffdca8134 start_thread (libc.so.6 + 0x89134)
                #8  0x00007f3ffdd287dc __clone3 (libc.so.6 + 0x1097dc)
                
                Stack trace of thread 100712:
                #0  0x00007f3ffdd1b15f __GI___poll (libc.so.6 + 0xfc15f)
                #1  0x00007f3ffc31e9ae n/a (libglib-2.0.so.0 + 0x549ae)
                #2  0x00007f3ffc31eacc g_main_context_iteration (libglib-2.0.so.0 + 0x54acc)
                #3  0x00007f3ffe109836 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x309836)
                #4  0x00007f3ffe0b017b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b017b)
                #5  0x00007f3ffdecab87 _ZN7QThread4execEv (libQt5Core.so.5 + 0xcab87)
                #6  0x00007f3ffec69487 n/a (libQt5DBus.so.5 + 0x17487)
                #7  0x00007f3ffdecbd43 n/a (libQt5Core.so.5 + 0xcbd43)
                #8  0x00007f3ffdca8134 start_thread (libc.so.6 + 0x89134)
                #9  0x00007f3ffdd287dc __clone3 (libc.so.6 + 0x1097dc)
                ELF object binary architecture: AMD x86-64

[New LWP 100710]
[New LWP 100716]
[New LWP 100711]
[New LWP 100715]
[New LWP 100713]
[New LWP 100712]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/kalarm'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x7f3ff8ae0280 (LWP 100710))]
[Current thread is 1 (Thread 0x7f3ff8ae0280 (LWP 100710))]

Thread 6 (Thread 0x7f3feffff6c0 (LWP 100712)):
#0  0x00007f3ffdd1b15f in __GI___poll (fds=0x7f3fe801c090, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3ffc31e9ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3ffc31eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3ffe109836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3ffe0b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3ffdecab87 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f3ffec69487 in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f3ffdecbd43 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f3ffdca8134 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007f3ffdd287dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 5 (Thread 0x7f3fd65326c0 (LWP 100713)):
#0  0x00007f3ffdd1b15f in __GI___poll (fds=0x7f3fd002e090, nfds=1, timeout=41) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3ffc31e9ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3ffc31eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3ffe109836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3ffe0b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3ffdecab87 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f3ffdecbd43 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f3ffdca8134 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#8  0x00007f3ffdd287dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 4 (Thread 0x7f3fd5d316c0 (LWP 100715)):
#0  0x00007f3ffdd1b15f in __GI___poll (fds=0x7f3fc8001310, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3ffd8be2e1 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f3ffd8affa4 in pa_mainloop_poll () from /lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f3ffd8b0606 in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f3ffd8b06b0 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f3ffd8be3b9 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f3ffc1c233f in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
#7  0x00007f3ffdca8134 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#8  0x00007f3ffdd287dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7f3ff53ff6c0 (LWP 100711)):
#0  0x00007f3ffdd1b15f in __GI___poll (fds=0x7f3ff53feac8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3ffd1bed12 in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f3ffd1c107a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3ff80faf00 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f3ffdecbd43 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3ffdca8134 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f3ffdd287dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7f3fd55306c0 (LWP 100716)):
#0  strcmp () at ../sysdeps/x86_64/multiarch/../multiarch/strcmp-sse2.S:1138
#1  0x00007f4000617dca in _dl_map_object (loader=0x5585d0afb3b0, name=0x7f3fe68d2bcd "libidn.so.12", type=2, trace_mode=0, mode=-2147483648, nsid=0) at ./elf/dl-load.c:2000
#2  0x00007f4000612281 in openaux (a=a@entry=0x7f3fd552ec20) at ./elf/dl-deps.c:64
#3  0x00007f3ffdd6dfca in __GI__dl_catch_exception (exception=exception@entry=0x7f3fd552ec00, operate=operate@entry=0x7f4000612250 <openaux>, args=args@entry=0x7f3fd552ec20) at ./elf/dl-error-skeleton.c:208
#4  0x00007f40006125ea in _dl_map_object_deps (map=map@entry=0x7f3fc4003660, preloads=preloads@entry=0x0, npreloads=npreloads@entry=0, trace_mode=trace_mode@entry=0, open_mode=open_mode@entry=-2147483648) at ./elf/dl-deps.c:232
#5  0x00007f400061b8ed in dl_open_worker_begin (a=a@entry=0x7f3fd552f3c0) at ./elf/dl-open.c:592
#6  0x00007f3ffdd6dfca in __GI__dl_catch_exception (exception=exception@entry=0x7f3fd552f220, operate=operate@entry=0x7f400061b7e0 <dl_open_worker_begin>, args=args@entry=0x7f3fd552f3c0) at ./elf/dl-error-skeleton.c:208
#7  0x00007f400061b046 in dl_open_worker (a=a@entry=0x7f3fd552f3c0) at ./elf/dl-open.c:782
#8  0x00007f3ffdd6dfca in __GI__dl_catch_exception (exception=exception@entry=0x7f3fd552f3a0, operate=operate@entry=0x7f400061b010 <dl_open_worker>, args=args@entry=0x7f3fd552f3c0) at ./elf/dl-error-skeleton.c:208
#9  0x00007f400061b438 in _dl_open (file=0x5585d0a251d0 "/usr/lib/x86_64-linux-gnu/vlc/plugins/access/libdvdnav_plugin.so", mode=<optimized out>, caller_dlopen=0x7f3fe698051f, nsid=<optimized out>, argc=1, argv=0x7ffdb37552f8, env=0x7ffdb3755308) at ./elf/dl-open.c:884
#10 0x00007f3ffdca4438 in dlopen_doit (a=a@entry=0x7f3fd552f630) at ./dlfcn/dlopen.c:56
#11 0x00007f3ffdd6dfca in __GI__dl_catch_exception (exception=exception@entry=0x7f3fd552f590, operate=<optimized out>, args=<optimized out>) at ./elf/dl-error-skeleton.c:208
#12 0x00007f3ffdd6e07f in __GI__dl_catch_error (objname=0x7f3fd552f5e8, errstring=0x7f3fd552f5f0, mallocedp=0x7f3fd552f5e7, operate=<optimized out>, args=<optimized out>) at ./elf/dl-error-skeleton.c:227
#13 0x00007f3ffdca3f27 in _dlerror_run (operate=operate@entry=0x7f3ffdca43e0 <dlopen_doit>, args=args@entry=0x7f3fd552f630) at ./dlfcn/dlerror.c:138
#14 0x00007f3ffdca44e9 in dlopen_implementation (dl_caller=<optimized out>, mode=<optimized out>, file=<optimized out>) at ./dlfcn/dlopen.c:71
#15 ___dlopen (file=<optimized out>, mode=<optimized out>) at ./dlfcn/dlopen.c:81
#16 0x00007f3fe698051f in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#17 0x00007f3fe68f8b44 in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#18 0x00007f3fe68f7400 in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#19 0x00007f3fe68f7cd1 in vlc_module_load () from /lib/x86_64-linux-gnu/libvlccore.so.9
#20 0x00007f3fe691b866 in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#21 0x00007f3fe692bd93 in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#22 0x00007f3fe692f8dd in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#23 0x00007f3fe6931e58 in ?? () from /lib/x86_64-linux-gnu/libvlccore.so.9
#24 0x00007f3ffdca8134 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#25 0x00007f3ffdd287dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7f3ff8ae0280 (LWP 100710)):
[KCrash Handler]
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#6  0x00007f3ffdca9e8f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#7  0x00007f3ffdc5afb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f3ffdc45472 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f3ffd89dc85 in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#10 0x00007f3ffc1b3ae2 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
#11 0x00007f3fff4b5fa8 in ?? () from /lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0
#12 0x00007f3ffc31e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f3ffc31ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f3ffc31eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f3ffe10984e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f3ffe0b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f3fff16bbb7 in QDialog::exec() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00005585ce34363f in ?? ()
#19 0x00005585ce2e64f3 in ?? ()
#20 0x00007f3ffe0e8f4f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f3ffef5c782 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f3ffef5f3ab in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f3fff0e3b62 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f3fff0eb994 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f3ffefa4db8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f3ffef62fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f3ffef6b552 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f3ffe0b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f3ffef6965e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f3ffefbe025 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007f3ffefc0f60 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f3ffef62fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f3ffe0b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f3ffe53d3ed in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#35 0x00007f3ffe511cac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#36 0x00007f3ff80fbeca in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#37 0x00007f3ffc31e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f3ffc31ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f3ffc31eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f3ffe109836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007f3ffe0b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f3ffe0b82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00005585ce233a27 in ?? ()
#44 0x00007f3ffdc4624a in __libc_start_call_main (main=main@entry=0x5585ce2335c0, argc=argc@entry=1, argv=argv@entry=0x7ffdb37552f8) at ../sysdeps/nptl/libc_start_call_main.h:58
#45 0x00007f3ffdc46305 in __libc_start_main_impl (main=0x5585ce2335c0, argc=1, argv=0x7ffdb37552f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdb37552e8) at ../csu/libc-start.c:360
#46 0x00005585ce2343e1 in ?? ()

Reported using DrKonqi
Comment 1 David Jarvie 2024-02-15 21:00:39 UTC
The crash is in the Pulse Audio libraries. When I try it on my Debian Bookworm system, it doesn't crash.

Does this crash depend on which audio file you select? If so, please attach the file (or say which system file it is).

Please confirm that you select "New Audio Alarm" to create the alarm.
Comment 2 Herman Tafintsev 2024-02-16 16:59:14 UTC
> Please confirm that you select "New Audio Alarm" to create the alarm.
Yes, i use audio alarm.

> Does this crash depend on which audio file you select? If so, please attach the file (or say which system file it is).
It does not matter which file format i choose. I tried wav, ogg, opus, mp3 -- all of them lead to the same result.

However, this crash is not as consistent, as i initially thought. I have tested several scenarios.

Scenario 1: Editing existing alarm, which has ogg file chosen.
- Volume override is set and volume slider is left untouched.
- "Try" button pressed.
Outcome: Consistent crash.

Scenario 2: Editing existing alarm, which has wav file chose.
Steps
- Volume override is set, but its volume slider is left untouched.
- "Try" button pressed.
Outcome: Consistent crash.

Scenario 3: Editing existing alarm, which has wav file chosen.
Steps
- New ogg file chosen.
- "Try" button pressed.
Outcome: Consistent crash.

Scenario 4: Editing existing alarm, which has ogg file chosen.
- New wav file chosen.
- Volume override is set, but its volume slider is left untouched.
- "Try" button pressed.
Outcome: First test works fine, but repeating it crashes the app consistently.

Scenario 5: Editing existing alarm, which has ogg file chosen.
- New long mp3 file chosen.
- Volume override is set, but its volume slider is left untouched. 
- "Try" button pressed.
- After a few seconds "test" button pressed again to stop the test.
- "Try" button pressed again to start the next test.
Outcome: Consistent crash.

Scenario 6: Editing existing alarm, which has wav file chosen.
- Volume override is set to 50%
- Alarm saved and reopened for editing.
- "Try" button pressed.
Outcome: Consistent crash.

Scenario 7: Same as scenario 6, but locale is set to "C".
Outcome: Consistent crash.

The only thing that i noticed is that error is the same (got this when i ran kalarm in konsole):
"Assertion 'c->state == PA_CONTEXT_CONNECTING' failed at ../src/pulse/context.c:917, function on_connection(). Aborting."

I am 100% sure that:
1. My sound system is works fine (i hear sounds, i didn't change pulseaudio settings much)
2. My sound files are not corrupted -- i can play them in KAlarm.

So i am sure the problem is on KAlarm's side. I have no idea how else i can test this app. I have no idea where to get sources for this app version and whether i can compile and test it using QtCreator.
Comment 3 David Jarvie 2024-02-21 21:55:55 UTC
I have now managed to reproduce the crash sometimes.

Have you ever seen it crash when the volume override is NOT set?

I don't know whether KAlarm can be built using QtCreator. The build uses cmake (not qmake). One way of building it is using a KDE Neon developer's edition which contains all (or most of) the developer versions of the KDE, Qt and other libraries needed to build KDE applications including KAlarm. In Neon, the KDE package kdesrc-build can be used to do the build.
Comment 4 David Jarvie 2024-02-22 00:03:17 UTC
The crash occurs in Phonon::MediaObject::play(). (This isn't evident from the stack trace, but I've established this using debug statements.) 
I've seen the same crash (and error message) both when the volume override is used, and when the volume is not set.

There have been other crashes in Phonon::MediaObject::play(), which output the following various messages on the terminal. The audio file in every case was the same one (Oxygen-Im-Error-On-Connection.ogg).

Assertion 'c->state == PA_CONTEXT_CONNECTING' failed at ../src/pulse/context.c:917, function on_connection(). Aborting.

Assertion 'io->ifd >= 0' failed at ../src/pulsecore/iochannel.c:287, function pa_iochannel_creds_supported(). Aborting.

ERROR:../src/pulse/glib-mainloop.c:394:glib_defer_enable: assertion failed: (!e->dead)
Bail out! ERROR:../src/pulse/glib-mainloop.c:394:glib_defer_enable: assertion failed: (!e->dead)

Because all these crashes occur in system libraries, I think the bug must lie in a library, so I'm transferring this bug report to the highest level library involved, i.e. Phonon.
Comment 5 David Jarvie 2024-02-22 00:12:36 UTC
The crashes and error messages which I have reported in comment 4 were all on KDE Neon running a nearly up to date Qt6/KF6 system. The Phonon package versions for Qt6 are:

libphonon4qt6-dev            4:4.12.0+p22.04+vunstable+git20240123.0113-0
phonon4qt6-backend-vlc  0.12.0+p22.04+vunstable+git20240123.0141-0
qt6-phonon                         4:4.12.0+p22.04+vunstable+git20240123.0113-0
qt6-phonon-backend-vlc  0.12.0+p22.04+vunstable+git20240123.0141-0
qt6-phonon-dev                 4:4.12.0+p22.04+vunstable+git20240123.0113-0
Comment 6 Harald Sitter 2024-02-22 08:03:17 UTC
Kalarm should really use libcanberra.

As for the bug, I believe this happens due to the threading kalarm forces onto phonon (phonon is very much not thread safe). You really don't need threading here.
Comment 7 David Jarvie 2024-02-22 08:55:29 UTC
As far as I can see, libcanberra can only play from a preset selection of event sounds, and not what KAlarm requires, which is to be able to play any audio file which the user selects. The fact that Phonon is not thread safe might explain why there have always been bug reports about KAlarm audio alarms. This needs investigation.
Comment 9 David Jarvie 2024-02-24 00:27:19 UTC
Thank you Harald. Phonon has now been replaced with libcanberra for playing sound files in the thread. This should fix the crash.

This fix will be in KAlarm version 3.7.1, which will be released in KDE Gear 24.02.1 (commit dd4bab1a3642c0ec860ffada450d4d41dd85080f).

Unfortunately, because the final Qt5 based KDE Gear release (23.08.5) has now been issued, this fix will not be available for Qt5 based versions of KAlarm.
Comment 10 David Jarvie 2024-02-25 15:46:26 UTC
*** Bug 480874 has been marked as a duplicate of this bug. ***
Comment 11 David Jarvie 2024-03-02 18:00:47 UTC
*** Bug 480789 has been marked as a duplicate of this bug. ***