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"
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...
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.
I have just tested sox-12.17.5-r1 (latest stable). Both rate and resample seem to work without segfaulting.
Excellent, marking bug as closed.