[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sox-devel
Subject:    [SoX-devel] [ sox-Bugs-3529005 ] sox gets unkillable with 100% CPU
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-05-23 7:45:20
Message-ID: E1SX6G2-0008Uu-4r () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3529005, was opened at 2012-05-23 00:45
Message generated for change (Tracker Item Submitted) made by yurivict
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3529005&group_id=10706

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Yuri (yurivict)
Assigned to: Nobody/Anonymous (nobody)
Summary: sox gets unkillable with 100% CPU

Initial Comment:
I am running sox to record wav from the audio device on FreeBSD 9.0-STABLE amd64.
When during this process system gets very busy and slow, sox is likely to get into \
100% CPU and can't be killed with 'kill' (SIGTERM) or Ctrl-C (SIGINT). Since it is \
unkillable by SIGINT/SIGTERM, I assume sox handles signals and ignores them. I was \
only able to kill it with kill -9 which left invalid wav file (which is natural with \
kill -9).

When the system slows down it probably produces fewer sound samples than expected, \
which triggers the problem in sox.

Such sox behavior is wrong. It should never cycle with 100% CPU and gets unkillable \
no matter what sound input it gets.

I also think that Input (alsa) that sox prints is wrong since FreeBSD doesn't support \
alsa. It is either OSS or pulseaudio.

--- output of top ---
  PID USERNAME      THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
63966 yuri            1 103    0   147M  9156K CPU6    6   5:33 100.00% sox

--- console ---
Input File     : 'default' (alsa)
Channels       : 1
Sample Rate    : 48000
Precision      : 16-bit
Sample Encoding: 16-bit Signed Integer PCM

In:0.00% 00:16:07.51 [00:00:00.00] Out:46.4M [ -====|====- ]        Clip:0    \
^C^C^C^C^C^C^C^C^C^C^C^C^C (doesn't die)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110706&aid=3529005&group_id=10706

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic