Bug 2257257

Summary: [abrt] musescore: std::vector<_jack_port*, std::allocator<_jack_port*> >::size(): mscore killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: musescoreAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: kvolny, loganjerry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/25ae3e2e37fe8b790e9f66747f98b0a01496154
Whiteboard: abrt_hash:f365c835c5325a1ac78399d7103db583933aecbe;VARIANT_ID=;
Fixed In Version: musescore-4.2.1-8.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-14 02:24:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: proc_pid_status
none
File: maps
none
File: limits
none
File: environ
none
File: open_fds
none
File: mountinfo
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: exploitable
none
File: dso_list
none
File: backtrace none

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.