Bug 1240248 - audacity crash on import or open ogg file with jpg video stream [abrt] audacity: __memcpy_sse2_unaligned(): audacity killed by SIGSEGV
Summary: audacity crash on import or open ogg file with jpg video stream [abrt] audaci...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: audacity
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Timms
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:7b20f27ac3f2c582b5f3ec8abdc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-06 10:55 UTC by Sebastian
Modified: 2015-08-01 02:29 UTC (History)
2 users (show)

Fixed In Version: audacity-2.1.1-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-30 01:16:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (44.97 KB, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: cgroup (190 bytes, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: core_backtrace (22.08 KB, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: dso_list (17.12 KB, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: environ (5.52 KB, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: limits (1.29 KB, text/plain)
2015-07-06 10:55 UTC, Sebastian
no flags Details
File: maps (84.67 KB, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
File: mountinfo (3.72 KB, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
File: namespaces (85 bytes, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
File: open_fds (1.25 KB, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
File: proc_pid_status (964 bytes, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
File: var_log_messages (299 bytes, text/plain)
2015-07-06 10:56 UTC, Sebastian
no flags Details
Last thing I see before crashing (10.01 KB, image/png)
2015-07-06 14:20 UTC, Sebastian
no flags Details
3 small ogg files (832.86 KB, application/x-gzip)
2015-07-07 17:11 UTC, Sebastian
no flags Details
gdb audacity thread apply al bt (8.29 KB, text/plain)
2015-07-07 22:08 UTC, David Timms
no flags Details

Description Sebastian 2015-07-06 10:55:47 UTC
Description of problem:
I am not able to open/import any ogg vorbis file

1. start audacity
2. open or import any *.ogg file
3. after analyzing the file it instantly crashes

Version-Release number of selected component:
audacity-2.1.1-0.2.rc1.fc22

Additional info:
reporter:       libreport-2.6.0
backtrace_rating: 4
cmdline:        audacity
crash_function: __memcpy_sse2_unaligned
executable:     /usr/bin/audacity
global_pid:     9132
kernel:         4.0.6-300.fc22.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 __memcpy_sse2_unaligned at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:152
 #1 memcpy at /usr/include/bits/string3.h:53
 #2 wxStreamBuffer::PutToBuffer at src/common/stream.cpp:295
 #3 wxStreamBuffer::Write at src/common/stream.cpp:508
 #4 wxMemoryOutputStream::OnSysWrite at src/common/mstream.cpp:142
 #5 wxOutputStream::Write at src/common/stream.cpp:962
 #6 AutoSaveFile::WriteAttr at AutoRecovery.cpp:463
 #7 Tags::WriteXML at Tags.cpp:528
 #8 AudacityProject::WriteXML at Project.cpp:3216
 #9 AudacityProject::AutoSave at Project.cpp:4743

Comment 1 Sebastian 2015-07-06 10:55:51 UTC
Created attachment 1048780 [details]
File: backtrace

Comment 2 Sebastian 2015-07-06 10:55:52 UTC
Created attachment 1048781 [details]
File: cgroup

Comment 3 Sebastian 2015-07-06 10:55:54 UTC
Created attachment 1048782 [details]
File: core_backtrace

Comment 4 Sebastian 2015-07-06 10:55:56 UTC
Created attachment 1048783 [details]
File: dso_list

Comment 5 Sebastian 2015-07-06 10:55:57 UTC
Created attachment 1048784 [details]
File: environ

Comment 6 Sebastian 2015-07-06 10:55:59 UTC
Created attachment 1048785 [details]
File: limits

Comment 7 Sebastian 2015-07-06 10:56:01 UTC
Created attachment 1048786 [details]
File: maps

Comment 8 Sebastian 2015-07-06 10:56:02 UTC
Created attachment 1048787 [details]
File: mountinfo

Comment 9 Sebastian 2015-07-06 10:56:03 UTC
Created attachment 1048788 [details]
File: namespaces

Comment 10 Sebastian 2015-07-06 10:56:05 UTC
Created attachment 1048789 [details]
File: open_fds

Comment 11 Sebastian 2015-07-06 10:56:06 UTC
Created attachment 1048790 [details]
File: proc_pid_status

Comment 12 Sebastian 2015-07-06 10:56:08 UTC
Created attachment 1048791 [details]
File: var_log_messages

Comment 13 David Timms 2015-07-06 13:14:26 UTC
Thanks for trying the release candidate from the updates-testing repository.

I tried both a mono sound effect .ogg and a stereo music file, both imported OK on F21 x86_64. I'll try F22 tomorrow, but can you run:
$ file myoggfile.ogg
$ midentify myoggfile.ogg
(you could drop any name/ID3 tags, leaving the file details (like compression type, bits etc), and attach that).

or
$ ffprobe 

I wonder if there is a problem in use of /var/tmp, maybe permissions/space ?
Is the crash on writing the project xml, or the audacity config ?

Could you also try closing audacity, renaming your audacity config file so that it creates a fresh new config, and seeing if that works ?

Also by Repro.3, do you mean an analyse effect/tool within the program, or just as it is importing drawing the waveform in the GUI ?

Comment 14 Sebastian 2015-07-06 14:19:29 UTC
$ file:
02 Alive.ogg: Ogg data, Vorbis audio, stereo, 44100 Hz, ~320000 bps, created by: Xiph.Org libVorbis I

$ fprobe:
Input #0, ogg, from '02 Alive.ogg':
Duration: 00:04:26.99, start: 0.000000, bitrate: 319 kb/s
Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 320 kb/s

Side data:
replaygain: track gain - -10.990000, track peak - 0.000024, album gain - -9.920000, album peak - 0.000025, 
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 500x433 [SAR 1:1 DAR 500:433], 90k tbr, 90k tbn, 90k tbc

space and write permissions are fine on /var/tmp

The cfg files gets written, well it writes the last "DefaultOpenPath=" which is where the ogg is in. So that seems to work.

Fresh config results in the same Crash. I also tried with other files like flac an wav, worked perfectly.

As for how, starting audacity -> File -> open -> file.ogg

Comment 15 Sebastian 2015-07-06 14:20:48 UTC
Created attachment 1048832 [details]
Last thing I see before crashing

Comment 16 Sebastian 2015-07-06 15:57:02 UTC
Ok I found the reason for the crash, it only happens when the ogg file has an image attached. When I remove the embedded cover-art the file loads just fine.

Flac files on the other hand with embedded cover are loading without any problems.

Comment 17 Sebastian 2015-07-06 16:43:27 UTC
To narrow it more down, embedded png images are working fine, only jpg is killing audacity.

midentify reports embedded png as:

ID_VIDEO_CODEC=ffpng

and jpg as:

ID_VIDEO_CODEC=ffmjpeg

Comment 18 David Timms 2015-07-07 12:56:45 UTC
OK, cool nice work. 

I should be able to ffmpeg a similar jpg video. Is the video a single frame, or series of frames (at what rate). Maybe can see with ffplay myogg.ogg.

In reading about the filetype from wikipedia:
---
Before 2007, the .ogg filename extension was used for all files whose content used the Ogg container format. Since 2007, the Xiph.Org Foundation recommends that .ogg only be used for Ogg Vorbis audio files. The Xiph.Org Foundation decided to create a new set of file extensions and media types to describe different types of content such as .oga for audio only files, .ogv for video with or without sound (including Theora), and .ogx for multiplexed Ogg.[4]
---
Wonder if it would be worth renaming an ogg with eg oga, ogv or ogx to see if that makes an difference.

I'll raise the issue with the Audacity developers. I think the 2.1.1 release is imminent, so it probably wont make that.

Comment 19 Sebastian 2015-07-07 17:09:45 UTC
Well it is a music file, not video. It just has one embedded image which works as the cover image for music-player, so that you don't have to have a separate cover.jpg in the folder. Renaming doesn't fix the problem.

I will add a small sample to the bug report, plain ogg, ogg with jpg and ogg with png

Comment 20 Sebastian 2015-07-07 17:11:04 UTC
Created attachment 1049491 [details]
3 small ogg files

Comment 21 David Timms 2015-07-07 22:04:42 UTC
Confirmed that with 2.1.1rc1 opening the ogg with jpg content crashes audacity. I don't even see the import progres bar at all.

Comment 22 David Timms 2015-07-07 22:08:58 UTC
Created attachment 1049625 [details]
gdb audacity thread apply al bt

[Thread 1 (] appears to be the same crash thread top off stack, but this one seems to show the call stack better... via WriteXML | tags | output stream.

Comment 23 Fedora Update System 2015-07-12 22:44:07 UTC
audacity-2.1.1-0.4.rc3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.4.rc3.fc22

Comment 24 Fedora Update System 2015-07-12 22:44:26 UTC
audacity-2.1.1-0.4.rc3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-0.4.rc3.fc21

Comment 25 Fedora Update System 2015-07-14 15:28:31 UTC
Package audacity-2.1.1-0.4.rc3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing audacity-2.1.1-0.4.rc3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-11488/audacity-2.1.1-0.4.rc3.fc22
then log in and leave karma (feedback).

Comment 26 Sebastian 2015-07-17 19:09:26 UTC
Fixed for me! Thanks for resolving the issue so quickly.

Comment 27 Fedora Update System 2015-07-19 09:04:33 UTC
audacity-2.1.1-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/audacity-2.1.1-1.fc22

Comment 28 Fedora Update System 2015-07-19 09:06:23 UTC
audacity-2.1.1-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/audacity-2.1.1-1.fc21

Comment 29 Fedora Update System 2015-07-30 01:16:02 UTC
audacity-2.1.1-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 Fedora Update System 2015-08-01 02:29:13 UTC
audacity-2.1.1-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, 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.