Segmentation Fault on MIDI import

• Aug 18, 2010 - 02:27
Type
Functional
Severity
S4 - Minor
Status
closed
Project

I've attached below a 0.9.6 Debian bug report that slipped through my radar (oh well... 0.9.6.2 seems to fix all the other bugs I've seen). Hopefully this can be sorted for 0.9.7 :)

It's from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=591908
The terminal output is at http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=MuseScore.t…
and you can get the MIDI file at http://www.classicalarchives.com/midi/composer/2239.html

I can reproduce the issue on 0.9.6.2 (but haven't rebuilt it with debugging symbols yet, so I don't have a backtrace, sorry).

--

Package: musescore
Version: 0.9.6+dfsg-1
Severity: normal

Hi!

I am working on MIDI import of the Brahms Violin Concerto MIDI file that can
be downloaded for free from www.classicalarchives.com, into MuseScore.

When I open it within MuseScore, I get a question about MIDI note quantization.
If I leave the setting at "hemidemisemiquaver", the import works. However, if I
choose "demisemiquaver", MuseScore segfaults... My goal was to avoid getting alot
of short notes which seems to be a problem with that particular MIDI file...

I any case, MuseScore shouldn't segfault, so I'm submitting this. Attached is
the terminal output of MuseScore as it segfaults.

Best regards
Torquil Sørensen

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34.1 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages musescore depends on:
ii desktop-file-utils 0.15-2 Utilities for .desktop files
ii gawk 1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii libasound2 1.0.23-1 shared library for ALSA applicatio
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-8 GCC support library
ii libportaudio2 19+svn20071022-3+b1 Portable audio I/O - shared librar
ii libqt4-designer 4:4.6.3-1 Qt 4 designer module
ii libqt4-network 4:4.6.3-1 Qt 4 network module
ii libqt4-script 4:4.6.3-1 Qt 4 script module
ii libqt4-scripttools 4:4.6.3-1 Qt 4 script tools module
ii libqt4-svg 4:4.6.3-1 Qt 4 SVG module
ii libqt4-xml 4:4.6.3-1 Qt 4 XML module
ii libqtcore4 4:4.6.3-1 Qt 4 core module
ii libqtgui4 4:4.6.3-1 Qt 4 GUI module
ii libqtscript4-qtbindi 0.1.0-3 Qt Script bindings for Qt 4 - meta
ii libsndfile1 1.0.21-3 Library for reading/writing audio
ii libstdc++6 4.4.4-8 The GNU Standard C++ Library v3
ii musescore-common 0.9.6+dfsg-1 Full featured WYSIWYG score editor
ii musescore-soundfont- 0.9.6+dfsg-1 Small GM SoundFont for MuseScore (
ii xdg-utils 1.0.2+cvs20100307-1 desktop integration utilities from
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages musescore recommends:
pn pulseaudio-utils (no description available)

Versions of packages musescore suggests:
ii fluid-soundfont-gm 3.1-5 Fluid (R3) General MIDI SoundFont

-- no debconf information


Comments

(I tried to "make debug", but cc1plus goes i/o-crazy, and so it would take forever to build. I don't know if this is a bug in ext3 or what..)

Console output from musescore 1.2 when importing with shortest note duration being "demisemiquaver":

MidiTrack::cleanup: overlapping events: 62:147060+120 62:147120+120
0x3f99b70 - 0x3f99ab0
MidiTrack::cleanup: overlapping events: 62:147540+120 62:147600+120
0x3f996f0 - 0x3f99630
MidiTrack::cleanup: overlapping events: 62:148020+120 62:148080+120
0x3f99270 - 0x3f991b0
MidiTrack::cleanup: overlapping events: 62:148500+120 62:148560+120
0x3f98df0 - 0x3f98d30
MidiTrack::cleanup: overlapping events: 62:148980+120 62:149040+120
0x3f98970 - 0x3f988b0
MidiTrack::cleanup: overlapping events: 43:401280+480 43:401280+480
0x3de78b0 - 0x3ddbaf0
MidiTrack::cleanup: duration <= 0: drop note at 401280
MidiTrack::cleanup: overlapping events: 69:731520+5340 69:736800+480
0x394dfc0 - 0x394dd80
MidiTrack::cleanup: overlapping events: 62:515700+180 62:515820+180
0x3f73ed0 - 0x3f73e10
MidiTrack::cleanup: overlapping events: 62:516180+180 62:516300+180
0x3f73c90 - 0x3f73bd0
MidiTrack::cleanup: overlapping events: 62:516660+180 62:516780+180
0x3f73a50 - 0x3f809e0
MidiTrack::cleanup: overlapping events: 62:517140+180 62:517260+180
0x3f80860 - 0x3f807a0
MidiTrack::cleanup: overlapping events: 62:517620+180 62:517740+180
0x3f80620 - 0x3f80560
MidiTrack::cleanup: overlapping events: 62:518100+180 62:518220+180
0x3f803e0 - 0x3f80320
MidiTrack::cleanup: overlapping events: 52:507060+180 52:507180+180
0x40101d0 - 0x40100b0
MidiTrack::cleanup: overlapping events: 55:507060+180 55:507180+180
0x4010230 - 0x4010050
MidiTrack::cleanup: overlapping events: 55:507540+180 55:507660+180
0x400fd50 - 0x400fc30
MidiTrack::cleanup: overlapping events: 52:507540+180 52:507660+180
0x400fdb0 - 0x400fbd0
MidiTrack::cleanup: overlapping events: 52:508020+180 52:508140+180
0x400f8d0 - 0x400f750
MidiTrack::cleanup: overlapping events: 55:508020+180 55:508140+180
0x400f930 - 0x400f7b0
MidiTrack::cleanup: overlapping events: 56:508500+180 56:508620+180
0x400f450 - 0x400f330
MidiTrack::cleanup: overlapping events: 53:508500+180 53:508620+180
0x400f4b0 - 0x400f2d0
MidiTrack::cleanup: overlapping events: 56:508980+180 56:509100+180
0x400efd0 - 0x400eeb0
MidiTrack::cleanup: overlapping events: 53:508980+180 53:509100+180
0x400f030 - 0x400ee50
MidiTrack::cleanup: overlapping events: 56:509460+180 56:509580+180
0x400eb50 - 0x400ea30
MidiTrack::cleanup: overlapping events: 53:509460+180 53:509580+180
0x400ebb0 - 0x400e9d0
MidiTrack::cleanup: overlapping events: 54:509940+180 54:510060+180
0x400e6d0 - 0x400e5b0
MidiTrack::cleanup: overlapping events: 57:509940+180 57:510060+180
0x400e730 - 0x400e550
MidiTrack::cleanup: overlapping events: 54:510420+180 54:510540+180
0x400e250 - 0x400e0d0
MidiTrack::cleanup: overlapping events: 57:510420+180 57:510540+180
0x400e2b0 - 0x400e130
MidiTrack::cleanup: overlapping events: 54:510900+180 54:511020+180
0x400ddd0 - 0x400dcb0
MidiTrack::cleanup: overlapping events: 57:510900+180 57:511020+180
0x400de30 - 0x400dc50
MidiTrack::cleanup: overlapping events: 57:511380+180 57:511500+180
0x400d950 - 0x400d7d0
MidiTrack::cleanup: overlapping events: 53:511380+180 53:511500+180
0x400d9b0 - 0x400d830
MidiTrack::cleanup: overlapping events: 53:511860+180 53:511980+180
0x400d4d0 - 0x400d3b0
MidiTrack::cleanup: overlapping events: 57:511860+180 57:511980+180
0x400d530 - 0x400d350
MidiTrack::cleanup: overlapping events: 57:512340+180 57:512460+180
0x400d050 - 0x400cf30
MidiTrack::cleanup: overlapping events: 53:512340+180 53:512460+180
0x400d0b0 - 0x400ced0
MidiTrack::cleanup: overlapping events: 52:512820+180 52:512940+180
0x400cbd0 - 0x400cab0
MidiTrack::cleanup: overlapping events: 59:512820+180 59:512940+180
0x400cc30 - 0x400ca50
MidiTrack::cleanup: overlapping events: 52:513300+180 52:513420+180
0x3ffa3d0 - 0x3ffa2b0
MidiTrack::cleanup: overlapping events: 59:513300+180 59:513420+180
0x3ffa430 - 0x3ffa250
MidiTrack::cleanup: overlapping events: 59:513780+180 59:513900+180
0x4053460 - 0x4053340
MidiTrack::cleanup: overlapping events: 52:513780+180 52:513900+180
0x40534c0 - 0x40532e0
MidiTrack::cleanup: overlapping events: 57:514260+180 57:514380+180
0x4052fe0 - 0x4052ec0
MidiTrack::cleanup: overlapping events: 53:514260+180 53:514380+180
0x4053040 - 0x4052e60
MidiTrack::cleanup: overlapping events: 57:514740+180 57:514860+180
0x4052b60 - 0x40529e0
MidiTrack::cleanup: overlapping events: 53:514740+180 53:514860+180
0x4052bc0 - 0x4052a40
MidiTrack::cleanup: overlapping events: 53:515220+180 53:515340+180
0x40526e0 - 0x40525c0
MidiTrack::cleanup: overlapping events: 57:515220+180 57:515340+180
0x4052740 - 0x4052560
MidiTrack::cleanup: overlapping events: 59:515700+180 59:515820+180
0x4052260 - 0x4051ea0
MidiTrack::cleanup: overlapping events: 52:515700+180 52:515820+180
0x40522c0 - 0x4051f00
MidiTrack::cleanup: overlapping events: 59:516180+180 59:516300+180
0x404f4a0 - 0x404f380
MidiTrack::cleanup: overlapping events: 52:516180+180 52:516300+180
0x404f500 - 0x404f320
MidiTrack::cleanup: overlapping events: 59:516660+180 59:516780+180
0x404f020 - 0x404eea0
MidiTrack::cleanup: overlapping events: 52:516660+180 52:516780+180
0x404f080 - 0x404ef00
MidiTrack::cleanup: overlapping events: 52:517140+180 52:517260+180
0x4048660 - 0x40484e0
MidiTrack::cleanup: overlapping events: 59:517140+180 59:517260+180
0x40486c0 - 0x4048540
MidiTrack::cleanup: overlapping events: 59:517620+180 59:517740+180
0x4045fc0 - 0x4045e40
MidiTrack::cleanup: overlapping events: 52:517620+180 52:517740+180
0x4046020 - 0x4045de0
MidiTrack::cleanup: overlapping events: 59:518100+180 59:518220+180
0x4045ae0 - 0x4045960
MidiTrack::cleanup: overlapping events: 52:518100+180 52:518220+180
0x4045b40 - 0x40459c0
MidiTrack::cleanup: overlapping events: 57:518580+180 57:518700+180
0x4045840 - 0x4045660
MidiTrack::cleanup: overlapping events: 57:519060+180 57:519180+180
0x40454e0 - 0x4045540
MidiTrack::cleanup: overlapping events: 57:519540+180 57:519660+180
0x40453c0 - 0x40451e0
MidiTrack::cleanup: overlapping events: 64:520020+180 64:520140+180
0x4045060 - 0x40450c0
MidiTrack::cleanup: overlapping events: 64:520500+180 64:520620+180
0x4044f40 - 0x4044d60
MidiTrack::cleanup: overlapping events: 64:520980+180 64:521100+180
0x4044be0 - 0x4044c40
MidiTrack::cleanup: overlapping events: 64:521460+180 64:521580+180
0x4044ac0 - 0x40448e0
MidiTrack::cleanup: overlapping events: 64:521940+180 64:522060+180
0x4044760 - 0x40447c0
MidiTrack::cleanup: overlapping events: 64:522420+180 64:522540+180
0x4044640 - 0x4044460
MidiTrack::cleanup: overlapping events: 63:522900+180 63:523020+180
0x4043fe0 - 0x4044040
MidiTrack::cleanup: overlapping events: 63:523380+180 63:523500+180
0x4043ec0 - 0x4043ce0
MidiTrack::cleanup: overlapping events: 63:523860+180 63:523980+180
0x4043b60 - 0x4043bc0
MidiTrack::cleanup: overlapping events: 62:524340+180 62:524460+180
0x4043a40 - 0x4043860
MidiTrack::cleanup: overlapping events: 62:524820+180 62:524940+180
0x40436e0 - 0x4043740
MidiTrack::cleanup: overlapping events: 62:525300+180 62:525420+180
0x40435c0 - 0x40433e0
MidiTrack::cleanup: overlapping events: 56:525780+180 56:525900+180
0x4043260 - 0x40432c0
MidiTrack::cleanup: overlapping events: 56:526260+180 56:526380+180
0x4043140 - 0x4042f60
MidiTrack::cleanup: overlapping events: 56:526740+180 56:526860+180
0x4042de0 - 0x4042e40
MidiTrack::cleanup: overlapping events: 57:527040+180 57:527040+180
0x4042c60 - 0x4042cc0
MidiTrack::cleanup: duration <= 0: drop note at 527040
MidiTrack::cleanup: overlapping events: 57:527220+180 57:527220+180
0x4042ae0 - 0x4042b40
MidiTrack::cleanup: duration <= 0: drop note at 527220
MidiTrack::cleanup: overlapping events: 57:527220+180 57:527340+180
0x4042b40 - 0x4042960
MidiTrack::cleanup: overlapping events: 57:527340+180 57:527340+120
0x4042960 - 0x40429c0
MidiTrack::cleanup: duration <= 0: drop note at 527340
MidiTrack::cleanup: overlapping events: 57:527520+180 57:527520+180
0x40424e0 - 0x4042540
MidiTrack::cleanup: duration <= 0: drop note at 527520
MidiTrack::cleanup: overlapping events: 57:527700+180 57:527700+180
0x4042360 - 0x40423c0
MidiTrack::cleanup: duration <= 0: drop note at 527700
MidiTrack::cleanup: overlapping events: 57:527700+180 57:527820+180
0x40423c0 - 0x40421e0
MidiTrack::cleanup: overlapping events: 57:527820+180 57:527820+180
0x40421e0 - 0x4042240
MidiTrack::cleanup: duration <= 0: drop note at 527820
MidiTrack::cleanup: overlapping events: 57:528000+180 57:528000+180
0x4042060 - 0x40420c0
MidiTrack::cleanup: duration <= 0: drop note at 528000
MidiTrack::cleanup: overlapping events: 57:528180+180 57:528180+120
0x4041ee0 - 0x4041f40
MidiTrack::cleanup: duration <= 0: drop note at 528180
MidiTrack::cleanup: overlapping events: 57:528300+180 57:528300+180
0x4041d60 - 0x4041dc0
MidiTrack::cleanup: duration <= 0: drop note at 528300
MidiTrack::cleanup: overlapping events: 64:528660+180 64:528780+180
0x4041c40 - 0x4041a60
MidiTrack::cleanup: overlapping events: 64:529140+180 64:529260+180
0x40418e0 - 0x4041940
MidiTrack::cleanup: overlapping events: 64:529620+180 64:529740+180
0x40417c0 - 0x40415e0
MidiTrack::cleanup: overlapping events: 64:530100+180 64:530220+180
0x4041460 - 0x40414c0
MidiTrack::cleanup: overlapping events: 64:530580+180 64:530700+180
0x4041340 - 0x4041160
MidiTrack::cleanup: overlapping events: 64:531060+180 64:531180+180
0x4040fe0 - 0x4041040
MidiTrack::cleanup: overlapping events: 63:531540+180 63:531660+180
0x4040ec0 - 0x40409e0
MidiTrack::cleanup: overlapping events: 63:532020+180 63:532140+180
0x4040860 - 0x40408c0
MidiTrack::cleanup: overlapping events: 63:532500+180 63:532620+180
0x4040740 - 0x4040560
MidiTrack::cleanup: overlapping events: 62:532980+180 62:533100+180
0x40403e0 - 0x4040440
MidiTrack::cleanup: overlapping events: 62:533460+180 62:533580+180
0x40402c0 - 0x40400e0
MidiTrack::cleanup: overlapping events: 62:533940+180 62:534060+180
0x403ff60 - 0x403ffc0
MidiTrack::cleanup: overlapping events: 61:534420+180 61:534540+180
0x403fe40 - 0x403fc60
MidiTrack::cleanup: overlapping events: 61:534900+180 61:535020+180
0x403fae0 - 0x403fb40
MidiTrack::cleanup: overlapping events: 61:535380+180 61:535500+180
0x403f9c0 - 0x403f7e0
MidiTrack::cleanup: overlapping events: 54:535860+180 54:535980+180
0x403f660 - 0x403f6c0
MidiTrack::cleanup: overlapping events: 54:536340+180 54:536460+180
0x403f540 - 0x403f360
MidiTrack::cleanup: overlapping events: 54:536820+180 54:536940+180
0x403eee0 - 0x403ef40
MidiTrack::cleanup: overlapping events: 54:537300+180 54:537420+180
0x403edc0 - 0x403ebe0
MidiTrack::cleanup: overlapping events: 54:537780+180 54:537900+180
0x403ea60 - 0x403eac0
MidiTrack::cleanup: overlapping events: 54:538260+180 54:538380+180
0x403e940 - 0x403e760
MidiTrack::cleanup: overlapping events: 60:538740+180 60:538860+180
0x403e5e0 - 0x403e640
MidiTrack::cleanup: overlapping events: 60:539220+180 60:539340+180
0x403e4c0 - 0x403e2e0
MidiTrack::cleanup: overlapping events: 60:539700+180 60:539820+180
0x403e160 - 0x403e1c0
MidiTrack::cleanup: overlapping events: 61:540180+180 61:540300+180
0x403e040 - 0x403de60
MidiTrack::cleanup: overlapping events: 61:540660+180 61:540780+180
0x403dce0 - 0x403dd40
MidiTrack::cleanup: overlapping events: 61:541140+180 61:541260+180
0x403dbc0 - 0x403d9e0
MidiTrack::cleanup: overlapping events: 66:547200+120 66:547260+60
0x403d8c0 - 0x403d440
MidiTrack::cleanup: overlapping events: 69:547200+120 69:547260+60
0x403d3e0 - 0x403d260
MidiTrack::cleanup: overlapping events: 66:548640+120 66:548700+60
0x4037b00 - 0x40377a0
MidiTrack::cleanup: overlapping events: 69:548640+120 69:548700+60
0x4037920 - 0x4037980
MidiTrack::cleanup: overlapping events: 67:550080+120 67:550140+60
0x4033780 - 0x4033420
MidiTrack::cleanup: overlapping events: 69:550080+120 69:550140+60
0x40335a0 - 0x4033600
MidiTrack::cleanup: overlapping events: 69:551520+120 69:551580+60
0x4031c80 - 0x4031b00
MidiTrack::cleanup: overlapping events: 64:551520+120 64:551580+60
0x4031aa0 - 0x4031920
MidiTrack::cleanup: overlapping events: 66:552960+120 66:553020+60
0x4030180 - 0x4030000
MidiTrack::cleanup: overlapping events: 74:552960+120 74:553020+60
0x402ffa0 - 0x402fe20
MidiTrack::cleanup: overlapping events: 66:554400+120 66:554460+60
0x402e680 - 0x402e320
MidiTrack::cleanup: overlapping events: 74:554400+120 74:554460+60
0x402e4a0 - 0x402e500
meta key: no staff