Bug 41755 - sox/rec 12.17.1 hangs during record, consistently
Summary: sox/rec 12.17.1 hangs during record, consistently
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sox
Version: 7.1
Hardware: i386
OS: Linux
high
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-22 01:25 UTC by Bryce Nesbitt
Modified: 2014-03-17 02:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-05-24 18:13:34 UTC
Embargoed:


Attachments (Terms of Use)

Description Bryce Nesbitt 2001-05-22 01:25:43 UTC
Description of Problem:
Sad but true.  Sox 12.17.1, as supplied with RedHat 7.1 can't record
correctly.  This means the "rec" command is broken also.  Also broken are
the many programs that use sox
as a backend.

How Reproducible:
Totally.

Steps to Reproduce:
1. 	"rec test.wav"
2. 	Try to press control-C
3. 	Nothing happens
4.	Use "rec -r 44100 -s w test.wav" to force a 16 bit CD quality recording,
	in case the above does not hang for you.  12.17.2 hangs on both
	versions.  12.17.1 seems to only hang on the second.

Additional Information:
Chris Bagwell <cbagwell> has already been notified, and has
fixed the problem as of the next release after 12.17.2.  He says:

	"Just tracked down that problem and spent a few hours rewriting the
	reading functions in raw.c to fix it and prevent future bugs in the same
	area from creeping in.  Its in CVS."

Comment 1 cbagwell 2001-05-24 18:13:30 UTC
It will be a month or two before I can test sox 12.17.2 (or 12.18) enough to
make a release.  I believe the following will also work as a valid solution
until the next release.  You may wish to add this to your distributed
version.

Edit the file raw.c in sox, find the function blockr(), look for

ft->file.eof = (ft->fcount < n);

change the "=" to a "|=".



Comment 2 Bill Nottingham 2001-08-10 00:04:57 UTC
Will be fixed in 12.17.1-4; thanks!


Note You need to log in before you can comment on or make changes to this bug.