audacity crashed with SIGSEGV when setting ffmpeg library

Bug #453732 reported by Daniel Hackney
30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
FFmpeg
Confirmed
Undecided
Unassigned
ffmpeg (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: audacity

I tried importing an AAC file (with a .m4a extension, from iTunes) into Audacity when using the ffmpeg library installed with Ubuntu (using apt-get install ffmpeg).

Description: Ubuntu karmic (development branch)
Release: 9.10

audacity:
  Installed: 1.3.9-5
  Candidate: 1.3.9-5
  Version table:
 *** 1.3.9-5 0
        500 http://us.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

ffmpeg:
  Installed: 4:0.5+svn20090706-2ubuntu2
  Candidate: 4:0.5+svn20090706-2ubuntu2
  Version table:
 *** 4:0.5+svn20090706-2ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

ProblemType: Crash
Architecture: i386
Date: Sat Oct 17 03:03:55 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/audacity
Package: audacity 1.3.9-5
ProcCmdline: audacity
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SegvAnalysis:
 Segfault happened at: 0xb3a07555: movdqa %xmm0,(%eax,%ecx,1)
 PC (0xb3a07555) ok
 source "%xmm0" ok
 destination "(%eax,%ecx,1)" (0x0a822168) ok
 Reason could not be automatically determined.
Signal: 11
SourcePackage: audacity
Stacktrace:
 #0 0xb3a07555 in ?? () from /usr/lib/i686/cmov/libavcodec.so.52
 No symbol table info available.
 #1 0x00000002 in ?? ()
 No symbol table info available.
 Backtrace stopped: previous frame inner to this frame (corrupt stack?)
StacktraceTop:
 ?? () from /usr/lib/i686/cmov/libavcodec.so.52
 ?? ()
Title: audacity crashed with SIGSEGV
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Daniel Hackney (haxney) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:float_to_int16_interleave_sse2 (dst=0xa823168,
aac_decode_frame (avccontext=0xa67e0f0, data=0xa822168,
avcodec_decode_audio2 (avctx=0xa67e0f0, samples=0xa822168,
FFmpegImportFileHandle::DecodeFrame (this=0xa2bf420, sc=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in audacity (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
affects: audacity (Ubuntu) → ffmpeg (Ubuntu)
Revision history for this message
Reinhard Tartler (siretart) wrote :

Can you reproduce this with the 'ffplay' binary?
can you please attach the aac file in question?
does the crash go away if you move /usr/lib/i686/cmov/libavcodec.so.52 out of the way?

Changed in ffmpeg (Ubuntu):
importance: Medium → Low
status: New → Incomplete
Revision history for this message
Daniel Hackney (haxney) wrote :

With FFplay, it plays for about a second or two, and then freezes. It cannot be killed with C-c. FFmpeg was able to transcode it to an ogg vorbis file, which Audacity was able to open without any trouble. Here is the output of playing the file with "ffplay -stats"

FFplay version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2003-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
  libavutil 49.15. 0 / 49.15. 0
  libavcodec 52.20. 0 / 52.20. 0
  libavformat 52.31. 0 / 52.31. 0
  libavdevice 52. 1. 0 / 52. 1. 0
  libavfilter 0. 4. 0 / 0. 4. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Oct 13 2009 22:15:16, gcc: 4.4.1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Music/Ballroom/03 Stand By Me.m4a':
  Duration: 00:04:09.73, start: 0.000000, bitrate: 129 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
title: Stand By Me
author: Maurice White
album: Maurice White
genre: R&B/Soul
track: 0
year: 2001
comment: USSM18500473
muxer: iTunes v7.1.1.5, QuickTime 7.1.5
   0.21 A-V: 0.000 aq= 80KB vq= 0KB sq= 0B

Revision history for this message
Reinhard Tartler (siretart) wrote :

hm I'm confused.

I've been able to get a crash with ffprobe (cf. bug #453992), but not with ffplay. With ffplay, the song is just played OK.

OTOH, audacity didn't open it with a very confused error message "detected file format but cannot import it".

Revision history for this message
Reinhard Tartler (siretart) wrote :

I've spend some time now in gdb about this, but I don't really get it. the crash occurs in parts of hand written assebler, the mmx version of dsputils.c.

needs investigation upstream, though many changes happened upstream in aac.c

Changed in ffmpeg (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

valid upstream issue, needs forwarding

Changed in ffmpeg:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ffmpeg - 4:0.6~svn20100505-1ubuntu1

---------------
ffmpeg (4:0.6~svn20100505-1ubuntu1) maverick; urgency=low

  * merge from debian/experimental. remaining changes:
    - don't disable encoders
    - don't build against libfaad, libdirac and libopenjpeg (all in universe)

ffmpeg (4:0.6~svn20100505-1) experimental; urgency=low

  * update to new upstream. Closes: #569727
    - fixes various segfaults and other minor feature improvements
      Closes: #374931, #522449, #501891, #559712, #420231, #369127, #538082,
              #298095, #294422, #561553, #525385, #495274, #420230
      LP: #305286, #457106, #529200, #301723, #305315, #336479, #420230,
          #412063, #428912, #432181, #440591, #453732, #453732, #453732,
      #514259, #515243, #521472, #530186, #530186, #197842, #483317,
     #483317, #539407, #280098, #331255, #566107, #569823, #570305,
     #573190
  * Fixup lintian overrides for new upstream snapshot
  * Bump Standards-Version to 3.8.4
  * Many upstream changes, see upstream Changelog for details
 -- Reinhard Tartler <email address hidden> Wed, 26 May 2010 00:01:17 +0200

Changed in ffmpeg (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Chris Olin (chris.olin) wrote :

This bug was not fixed in the above package. Running 10.04 Lucid and am currently experiencing this exact problem.

Revision history for this message
Chris Olin (chris.olin) wrote :

Figures. I turn on apport and wouldn't you know it, audacity and ffprobe stop crashing.

Revision history for this message
Chris Olin (chris.olin) wrote :

And it's crashing again. I was able to get one m4a song to import, make the changes I needed to, and exported to .wav.

Revision history for this message
Daniel T Chen (crimsun) wrote :

As noted (in e-mail privately), the fixed package is in _maverick_ not lucid.

Revision history for this message
Chris Olin (chris.olin) wrote :

Audacity doesn't load the libavformat library that comes with the Maverick ffmpeg packages. I'm able to locate it, but when I click Ok, the library version is still listed as FFmpeg library not found.

My laptop is more or less a production machines and I don't feel comfortable running Maverick on it while it's still in beta.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.