Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462148 - media-sound/audacity 2.0.2 - during audio recording: audacity: double free or corruption
Summary: media-sound/audacity 2.0.2 - during audio recording: audacity: double free or...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 07:27 UTC by Alexey Portnov
Modified: 2017-07-15 09:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Portnov 2013-03-18 07:27:07 UTC
Crush during recording audio

*** glibc detected *** audacity: double free or corruption (out): 0xafb17ed0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x7421f)[0xb624621f]
/usr/lib/libglib-2.0.so.0(g_free+0x23)[0xb65f7303]
/usr/lib/libgdk-x11-2.0.so.0(+0x2f1d7)[0xb672c1d7]
======= Memory map: ========
08048000-085f6000 r-xp 00000000 08:07 31886927   /usr/bin/audacity
085f6000-085f7000 r--p 005ae000 08:07 31886927   /usr/bin/audacity
085f7000-0863e000 rw-p 005af000 08:07 31886927   /usr/bin/audacity
0863e000-08656000 rw-p 00000000 00:00 0 
09573000-09ca8000 rw-p 00000000 00:00 0          [heap]
a27fc000-a67fd000 r--s 00000000 00:0d 9512       /dev/shm/pulse-shm-3822523656
a67fd000-a67fe000 ---p 00000000 00:00 0 
a67fe000-a6ffe000 rw-p 00000000 00:00 0          [stack:8514]
a6ffe000-aafff000 rw-s 00000000 00:0d 169567     /dev/shm/pulse-shm-3567103838
aafff000-ab000000 ---p 00000000 00:00 0 
ab000000-ab800000 rw-p 00000000 00:00 0          [stack:8515]
ab800000-ab900000 rw-p 00000000 00:00 0 
ab96e000-ab96f000 ---p 00000000 00:00 0 
ab96f000-ac16f000 rw-p 00000000 00:00 0          [stack:8412]
af8ea000-afaec000 rw-p 00000000 00:00 0 
afb00000-afb3f000 rw-p 00000000 00:00 0 
afb3f000-afc00000 ---p 00000000 00:00 0 
afcee000-afec8000 rw-p 00000000 00:00 0 
afec8000-aff48000 rw-s 00000000 00:04 1057914894  /SYSV00000000 (deleted)
aff48000-aff4c000 r-xp 00000000 08:07 550298     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
aff4c000-aff4d000 r--p 00004000 08:07 550298     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
aff4d000-aff4e000 rw-p 00005000 08:07 550298     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so
aff4e000-aff6c000 r--s 00000000 08:07 5251015    /usr/share/mime/mime.cache
aff6c000-aff6e000 r--s 00000000 08:08 38958      /home/trado/.local/share/mime/mime.cache
aff6f000-b0014000 r--p 00000000 08:07 12744029   /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf
b0014000-b0166000 r-xp 00000000 08:07 30965925   /usr/lib/libfftw3.so.3.3.2
b0166000-b0167000 ---p 00152000 08:07 30965925   /usr/lib/libfftw3.so.3.3.2
b0167000-b016f000 r--p 00152000 08:07 30965925   /usr/lib/libfftw3.so.3.3.2
b016f000-b0170000 rw-p 0015a000 08:07 30965925   /usr/lib/libfftw3.so.3.3.2
b0170000-b0198000 rw-p 00000000 00:00 0 
b01bf000-b021f000 rw-s 00000000 00:04 1057390603  /SYSV00000000 (deleted)
b021f000-b0225000 r-xp 00000000 08:07 550486     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
b0225000-b0226000 r--p 00005000 08:07 550486     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
b0226000-b0227000 rw-p 00006000 08:07 550486     /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
b0227000-b02d7000 r--p 00000000 08:07 12744040   /usr/share/fonts/dejavu/DejaVuSans.ttf
b02d7000-b02fe000 r-xp 00000000 08:07 19074114   /usr/lib/ladspa/ladspa-rubberband.so
b02fe000-b02ff000 r--p 00027000 08:07 19074114   /usr/lib/ladspa/ladspa-rubberband.so
b02ff000-b0300000 rw-p 00028000 08:07 19074114   /usr/lib/ladspa/ladspa-rubberband.so
b0300000-b0321000 rw-p 00000000 00:00 0 
b0321000-b0400000 ---p 00000000 00:00 0 
b0403000-b0408000 r-xp 00000000 08:07 31866206   /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b0408000-b0409000 r--p 00004000 08:07 31866206   /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b0409000-b040a000 rw-p 00005000 08:07 31866206   /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
b040a000-b046a000 rw-s 00000000 00:04 1057259527  /SYSV00000000 (deleted)
b046a000-b046d000 r-xp 00000000 08:07 30003561   /usr/lib/pango/1.8.0/modules/pango-basic-fc.so
b046d000-b046e000 r--p 00002000 08:07 30003561   /usr/lib/pango/1.8.0/modules/pango-basic-fc.so
b046e000-b046f000 rw-p 00003000 08:07 30003561   /usr/lib/pango/1.8.0/modules/pango-basic-fc.so
b046f000-b047b000 r--p 00000000 08:07 11054872   /usr/share/fonts/cantarell/Cantarell-Regular.otf
b047b000-b0481000 r--s 00000000 08:07 30950796   /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-le32d4.cache-3
b0481000-b0487000 r--s 00000000 08:07 30961727   /var/cache/fontconfig/acc285bc1956c3c4bc7afb41d537a85a-le32d4.cache-3
b0487000-b0489000 r--s 00000000 08:07 30967213   /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-le32d4.cache-3
b0489000-b0490000 r--s 00000000 08:07 30967219   /var/cache/fontconfig/4460665c0f3e88acdd4c85aa2f409b99-le32d4.cache-3
b0490000-b0493000 r--s 00000000 08:07 30967211   /var/cache/fontconfig/88854163852d87a9a9866b7080197209-le32d4.cache-3
b0493000-b04a1000 r--s 00000000 08:07 30965954   /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-le32d4.cache-3
b04a1000-b04a9000 r--s 00000000 08:07 30965947   /var/cache/fontconfig/d722f191fc173fb8c13c8ea6f285de40-le32d4.cache-3
b04a9000-b04ac000 r--s 00000000 08:07 30965935   /var/cache/fontconfig/a595ca43be94766bbfe429f07fba82d0-le32d4.cache-3
b04ac000-b04b0000 r--s 00000000 08:07 30965874   /var/cache/fontconfig/a336a40326b5f097d6a660e43ed65741-le32d4.cache-3
b04b0000-b04bd000 r--s 00000000 08:07 30958280   /var/cache/fontconfig/221fd1126b80b777db535aea535e87ba-le32d4.cache-3
b04bd000-b04c3000 r--s 00000000 08:07 30962323   /var/cache/fontconfig/1dce2cb908b447e938fc03acd9b47fcf-le32d4.cache-3
b04c3000-b04ca000 r--s 00000000 08:07 30961859   /var/cache/fontconfig/12b26b760a24f8b4feb03ad48a333a72-le32d4.cache-3
b04ca000-b04df000 r--s 00000000 08:07 30956832   /var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-le32d4.cache-3
b04df000-b04ff000 r--s 00000000 08:07 30961069   /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-le32d4.cache-3
b04ff000-b0500000 ---p 00000000 00:00 0 
b0500000-b0d00000 rw-p 00000000 00:00 0 
b0d00000-b0d21000 rw-p 00000000 00:00 0 
b0d21000-b0e00000 ---p 00000000 00:00 0 
b0e04000-b0e10000 r--p 00000000 08:07 31905685   /usr/share/locale/ru/LC_MESSAGES/pulseaudio.mo
b0e10000-b0e30000 r--s 00000000 08:07 30961974   /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-le32d4.cache-3
b0e30000-b0e31000 ---p 00000000 00:00 0 
b0e31000-b1631000 rw-p 00000000 00:00 0          [stack:8406]
b1631000-b1665000 r-xp 00000000 08:07 30326501   /usr/lib/libgvfscommon.so.0.0.0
b1665000-b1666000 ---p 00034000 08:07 30326501   /usr/lib/libgvfscommon.so.0.0.0
b1666000-b1668000 r--p 00034000 08:07 30326501   /usr/lib/libgvfscommon.so.0.0.0
b1668000-b1669000 rw-p 00036000 08:07 30326501   /usr/lib/libgvfscommon.so.0.0.0
b1671000-b1690000 r--p 00000000 08:07 29536002   /usr/share/locale/ru/LC_MESSAGES/glib20.mo
b1690000-b16c1000 r-xp 00000000 08:07 30326685   /usr/lib/gio/modules/libgvfsdbus.so
b16c1000-b16c2000 r--p 00030000 08:07 30326685   /usr/lib/gio/modules/libgvfsdbus.so

-------------------------------------------------------------------
[I] media-sound/audacity
     Available versions:  2.0.0 {tbz2} (~)2.0.1 (~)2.0.2 {tbz2} ~*2.0.3 {alsa ffmpeg flac id3tag jack ladspa libsamplerate +libsoxr midi mp3 sbsms soundtouch twolame vamp vorbis}
     Installed versions:  2.0.2 {tbz2}(15:47:07 10.03.2013)(alsa flac id3tag ladspa libsamplerate mp3 twolame vamp vorbis -ffmpeg -jack -midi -sbsms -soundtouch)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-19 12:46:04 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Alexey Portnov 2013-03-19 13:05:20 UTC
Portage 2.1.11.55 (default/linux/x86/13.0/desktop/gnome, gcc-4.6.3, glibc-2.16.0, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     3634812 total,    241844 free
KiB Swap:    2465940 total,   2228744 free
Timestamp of tree: Tue, 19 Mar 2013 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo foo-overlay sabayon gentoo-zh x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://portage.org.ua/ ftp://portage.org.ua/ http://gentoo.kiev.ua/ftp/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/foo-overlay /var/lib/layman/sabayon /var/lib/layman/gentoo-zh /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx X a52 aac acl acpi alsa applet automount bash-completion bidi bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrdao cli colord consolekit cpudetection cracklib crypt css cue cups curl custom-cflags cxx dbus dconf dga dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg fftw firefox flac fontconfig gconf gd gdbm gdu gif gimp glade gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gucharmap guile iconv icq icu id3tag introspection ipv6 jabber jpeg jpeg2k lame laptop lcms libnotify libsamplerate lm_sensors lzma lzo mad mmx mng modules mp3 mp4 mpeg musepack mysql nautilus ncurses networkmanager nforce2 nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit posix postproc ppds pulseaudio python qt4 readline sdl session smp socialweb spell sse sse2 sse3 ssl ssse3 startup-notification svg system-sqlite tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vala vcd vdpau vim-syntax vorbis wav wavpack wifi win32codecs wxwidgets x264 x86 xcb xml xorg xulrunner xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" LINGUAS="ru en en_US" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia v4l vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Alexey Portnov 2013-03-19 13:06:58 UTC
this bug does not happen every time I record webcasting audio by audacity
it happens from tome to time, server is the same
Comment 4 Richard Ash 2013-03-21 21:33:40 UTC
(In reply to comment #3)
> this bug does not happen every time I record webcasting audio by audacity
> it happens from tome to time, server is the same

How are you recording the streamed audio? What source are you selecting to record from? Do you have software playthrough turned on or off in audacity?

The memory map shows you have pulseaudio running - if this is being used as the audio source/sink then the problem is probably somewhere in it's emulation of ALSA, which has never been transparent. Using jack-audio-connection-kit to do the audio routing might be more robust, as it can be natively supported in Audacity. Direct downloading the stream to disk rather than playing it would be even better ...

To track down the cause we will need a backtrace of the crash, or a valgrind run to locate the memory management error. This will obviously be harder if the problem is not reproducible.

I wonder if the ultimate problem will turn out to be a buffer over/underflow caused by the web stream running faster or slower than PulseAudio's local clock?
Comment 5 Pacho Ramos gentoo-dev 2017-07-15 09:37:58 UTC
please retry with 2.1.3-r1