Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58461 - sox-12.17.4-r1 segfaults when changing sample rate
Summary: sox-12.17.4-r1 segfaults when changing sample rate
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 12:56 UTC by Thomas Petersen
Modified: 2005-03-28 19:54 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 Thomas Petersen 2004-07-26 12:56:20 UTC
When using sox to change sample rate of a file without specifying any rate changing filters on the commandline it segfaults. According to the manpage it automatically select the resample filter. When specifying that it should use the "rate" filter instead it works fine. It sounds like a problem in the resample filter.
The filter seems to work fine on x86.

The file i'm working on is a short wav file in mono, 8 bit, 22050 Hz.
Trying with mp3, stereo, 16 bit, 44100 Hz also segfaults so i don't think the format matters.

Reproducible: Always
Steps to Reproduce:
1. Execute: sox input.wav -r 8000 output.wav
Actual Results:  
Segmentation fault
and a zero byte output file.

Expected Results:  
output.wav sounding like input.wav but in different sample rate.

Portage 2.0.50-r9 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.
6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 x86_64 4
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/
mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/
share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/
tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://mirror.esoft.dk/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.esoft.dk/gentoo-portage"
USE="3ds X Xaw3d aalib alsa amd64 apache2 apm arts avi berkdb bidi bonobo cdr 
crypt cups curl dga dv dvd dvdr emacs emacs-w3 encode esd ethereal faad flac 
flash foomaticdb gatos gd gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 
gtkhtml imap imlib innodb ipv6 java jpeg kde lcms libg++ libwww live lzo mad 
maildir matroska mikmod mng motif mozcalendar mozilla mozxmlterm mpeg multilib 
music mysql nas ncurses net network nls nogcj odbc oggvorbis openal opengl oss 
pam pdflib perl png pnp postgres python qt quicktime readline rtc ruby samba 
sasl scanner sdl slang sndfile snmp spell ssl tcltk tcpd tetex theora tiff 
truetype usb v4l v4l2 videos wmf xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-08-19 14:22:12 UTC
Can confirm this. A quick look at the backtrace confused me... and the code of this does that even more...

They play around with pointer/integer conversations. I will try to look into it at
the weekend...
Comment 2 Alex Howells (RETIRED) gentoo-dev 2005-03-28 10:57:04 UTC
Ancient bug, no reply in over six months. Closing, marking NEEDINFO - please feel free to reopen if this still causes problems under Gentoo/AMD64 2005.0 and be sure to supply up to date and pertinent information at that time.
Comment 3 Thomas Petersen 2005-03-28 13:13:53 UTC
I have just tested sox-12.17.5-r1 (latest stable). Both rate and resample seem to work without segfaulting.
Comment 4 Alex Howells (RETIRED) gentoo-dev 2005-03-28 19:54:46 UTC
Excellent, marking bug as closed.