Bug 2257257 - [abrt] musescore: std::vector<_jack_port*, std::allocator<_jack_port*> >::size(): mscore killed by SIGSEGV
Summary: [abrt] musescore: std::vector<_jack_port*, std::allocator<_jack_port*> >::siz...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: musescore
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:f365c835c5325a1ac78399d7103...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-08 12:15 UTC by Karel Volný
Modified: 2024-02-14 02:24 UTC (History)
2 users (show)

Fixed In Version: musescore-4.2.1-8.fc39
Clone Of:
Environment:
Last Closed: 2024-02-14 02:24:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.50 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: maps (3.88 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: limits (1.29 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: environ (5.65 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: open_fds (9.38 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: mountinfo (2.85 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: os_info (665 bytes, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: cpuinfo (2.99 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: core_backtrace (60.04 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: exploitable (96 bytes, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: dso_list (329 bytes, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details
File: backtrace (45.92 KB, text/plain)
2024-01-08 12:15 UTC, Karel Volný
no flags Details

Description Karel Volný 2024-01-08 12:15:25 UTC
Description of problem:
I've started mscore after a crash. It asked about restoring previous work which I've declined. Then I closed it because it did not read the file passed on commandline so I wanted to retry. It crahed on closing ...

Version-Release number of selected component:
musescore-4.2.0-5.fc39

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGSEGV
journald_cursor: s=02fd56fde1da4b348839ff6293944165;i=f021e7e;b=a824ff45863d4e0fbaa8e78d4aa6ed14;m=7a3ea4d07f;t=60e6d809062a8;x=e771fae336d5a7c
executable:     /usr/bin/mscore
cmdline:        mscore 2000-04-28.mid
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-f8094e0fcb0a4646912d84a08a6b630a.scope
rootdir:        /
uid:            1000
kernel:         6.6.8-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::vector<_jack_port*, std::allocator<_jack_port*> >::size
comment:        I've started mscore after a crash. It asked about restoring previous work which I've declined. Then I closed it because it did not read the file passed on commandline so I wanted to retry. It crahed on closing ...

Truncated backtrace:
Thread no. 1 (7 frames)
 #0 std::vector<_jack_port*, std::allocator<_jack_port*> >::size at /usr/include/c++/13/bits/stl_vector.h:989
 #1 std::vector<_jack_port*, std::allocator<_jack_port*> >::operator[] at /usr/include/c++/13/bits/stl_vector.h:1125
 #2 mu::audio::jack_process_callback at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/framework/audio/internal/platform/jack/jackaudiodriver.cpp:59
 #3 on_rtsocket_condition at ../pipewire-jack/src/pipewire-jack.c:1927
 #4 loop_iterate_cancel at ../spa/plugins/support/loop.c:454
 #5 do_loop at ../src/pipewire/data-loop.c:65
 #7 clone3 at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Comment 1 Karel Volný 2024-01-08 12:15:29 UTC
Created attachment 2007760 [details]
File: proc_pid_status

Comment 2 Karel Volný 2024-01-08 12:15:30 UTC
Created attachment 2007761 [details]
File: maps

Comment 3 Karel Volný 2024-01-08 12:15:32 UTC
Created attachment 2007762 [details]
File: limits

Comment 4 Karel Volný 2024-01-08 12:15:34 UTC
Created attachment 2007763 [details]
File: environ

Comment 5 Karel Volný 2024-01-08 12:15:35 UTC
Created attachment 2007764 [details]
File: open_fds

Comment 6 Karel Volný 2024-01-08 12:15:37 UTC
Created attachment 2007765 [details]
File: mountinfo

Comment 7 Karel Volný 2024-01-08 12:15:39 UTC
Created attachment 2007766 [details]
File: os_info

Comment 8 Karel Volný 2024-01-08 12:15:40 UTC
Created attachment 2007767 [details]
File: cpuinfo

Comment 9 Karel Volný 2024-01-08 12:15:42 UTC
Created attachment 2007768 [details]
File: core_backtrace

Comment 10 Karel Volný 2024-01-08 12:15:44 UTC
Created attachment 2007769 [details]
File: exploitable

Comment 11 Karel Volný 2024-01-08 12:15:46 UTC
Created attachment 2007770 [details]
File: dso_list

Comment 12 Karel Volný 2024-01-08 12:15:48 UTC
Created attachment 2007771 [details]
File: backtrace

Comment 13 Karel Volný 2024-01-08 12:44:44 UTC
trying the reproducibility of the crash on exit ...


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGSEGV
journald_cursor: s=02fd56fde1da4b348839ff6293944165;i=f022090;b=a824ff45863d4e0fbaa8e78d4aa6ed14;m=7b3385bed4;t=60e6e757150fc;x=f57eb1200572736c
executable:     /usr/bin/mscore
cmdline:        mscore 2000-04-28.mid
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-f8094e0fcb0a4646912d84a08a6b630a.scope
rootdir:        /
uid:            1000
kernel:         6.6.8-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
dso_list:       /usr/bin/mscore musescore-4.2.0-5.fc39.x86_64 (Fedora Project) 1704186620
backtrace_rating: 4
crash_function: std::vector<_jack_port*, std::allocator<_jack_port*> >::size
comment:        trying the reproducibility of the crash on exit ...

Comment 14 biz 2024-01-09 23:45:52 UTC
Sometimes crashes when trying to launch, sometimes when trying to open a project, sometimes when trying to save a project. Many times.


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGSEGV
journald_cursor: s=7c013e5b7da94ef9afc143fdab198c25;i=cfe07e;b=e3587fab8ebe4286a7c52dd9f4675452;m=94864f23e;t=60e894820eeaf;x=af9d0e9739e3f617
executable:     /usr/bin/mscore
cmdline:        /usr/bin/mscore
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.musescore.MuseScore-b7a0a82d76224c2a820bf94ac49fd57e.scope
rootdir:        /
uid:            1000
kernel:         6.7.0-367.vanilla.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
dso_list:       /usr/bin/mscore musescore-4.2.0-5.fc39.x86_64 (Fedora Project) 1704831793
backtrace_rating: 4
crash_function: std::vector<_jack_port*, std::allocator<_jack_port*> >::size
comment:        Sometimes crashes when trying to launch, sometimes when trying to open a project, sometimes when trying to save a project. Many times.

Comment 15 Jerry James 2024-01-12 03:11:01 UTC
This smells like a race between shutting down and processing events.  We should probably do something like this at the top of mu::audio::jack_process_callback:

    if (data->outputPorts.size() < 2)
        return 0;

I will add a patch for that and see if it clears things up for you, but first let's see if we can diagnose bug 2257258.

Comment 16 Karel Volný 2024-01-22 13:18:31 UTC
again, crash on exit (I just wonder which bug will be chosen as duplicate?)


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGSEGV
journald_cursor: s=8569f58519a34d179d29250db33a8f6c;i=f9099ef;b=854540fd4f2e4972aa3c6528be8e74b5;m=903d52dc8d;t=60f87fa3ba45b;x=9031d0c169b86b9d
executable:     /usr/bin/mscore
cmdline:        mscore
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-2f9eadb248c445128d570f3c1b680a38.scope
rootdir:        /
uid:            1000
kernel:         6.6.11-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
dso_list:       /usr/bin/mscore musescore-4.2.0-5.fc39.x86_64 (Fedora Project) 1704186620
backtrace_rating: 4
crash_function: std::vector<_jack_port*, std::allocator<_jack_port*> >::size
comment:        again, crash on exit (I just wonder which bug will be chosen as duplicate?)

Comment 17 Karel Volný 2024-01-22 13:27:06 UTC
the corresponding coredump is here:
https://filetransfer.io/data-package/IfgTdQpN#link

(any recommendations for a better way to send big files?)

Comment 18 Fedora Update System 2024-02-05 20:41:41 UTC
FEDORA-2024-236f199386 (musescore-4.2.1-8.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-236f199386

Comment 19 Jerry James 2024-02-05 20:44:12 UTC
Thank you for the coredump, by the way.  I don't have any recommendations for a better way, sadly.

To use the 4.2.1 build successfully, you may need to follow this procedure:

- Start MuseScore
- Select "Edit", then "Preferences"
- Select "Reset preferences"
- Quit and restart MuseScore
- If desired, open "Preferences" again and customize

Comment 20 Fedora Update System 2024-02-06 01:46:14 UTC
FEDORA-2024-236f199386 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-236f199386`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-236f199386

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2024-02-14 02:24:06 UTC
FEDORA-2024-236f199386 (musescore-4.2.1-8.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.