Package: sox
Version: 14.3.2-3
Severity: normal

This command hangs after generating a few seconds of sound:

AUDIODRIVER=pulseaudio play -n -c1  synth whitenoise band -n 100 20 \
        band -n 50 20 gain +25 fade h 1 864000 1

If I try the same thing with AUDIODRIVER=alsa it works fine. The command
simulates Star Trek background noise, see:
http://www.reddit.com/r/scifi/comments/n7q5x/want_to_pretend_you_are_aboard_the_enterprise_for/c36xkjx

I don't know what information would be useful to debug this. I did recompile
sox with debug symbols to get a backtrace:

Starting program: /usr/bin/play -n -c1 synth whitenoise band -n 100 20 band -n 
50 20 gain +25 fade h 1 864000 1
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffec0fc700 (LWP 19868)]

  Encoding: n/a           
  Channels: 1 @ 32-bit   
Samplerate: 48000Hz      
Replaygain: off         
  Duration: unknown      

In:0.00% 00:00:07.51 [00:00:00.00] Out:360k  [  -===|===-  ]        Clip:0    
Program received signal SIGINT, Interrupt.
pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:142
142     ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Bestand of 
map bestaat niet.
        in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(gdb) bt full
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:142
No locals.
#1  0x00007ffff38767a0 in pa_threaded_mainloop_wait (m=0x61c880) at 
pulse/thread-mainloop.c:206
        __func__ = "pa_threaded_mainloop_wait"
        __PRETTY_FUNCTION__ = "pa_threaded_mainloop_wait"
#2  0x00007ffff3641e2a in pa_simple_write (p=0x628280, data=0x65ed38, 
length=23240, rerror=0x7fffffffdf68)
    at pulse/simple.c:290
        l = <optimized out>
        r = <optimized out>
        __func__ = "pa_simple_write"
        __PRETTY_FUNCTION__ = "pa_simple_write"
#3  0x00007ffff3a8ddce in write_samples (ft=0x627f00, buf=0x65c800, nsamp=8192) 
at pulseaudio.c:133
        pa = 0x628260
        len = 32768
        rc = 0
        error = 1
#4  0x00007ffff7b26abd in sox_write (ft=0x627f00, buf=0x65c800, len=8192) at 
formats.c:971
        actual = 140737325790906
#5  0x0000000000404d8f in output_flow (effp=0x6346c0, ibuf=0x65c800, 
obuf=0x664810, isamp=0x7fffffffe048, 
    osamp=0x7fffffffe040) at sox.c:630
        len = 8192
#6  0x00007ffff7b3d6fa in flow_effect (chain=0x632b30, n=6) at effects.c:214
        effp1 = 0x6344e0
        effp = 0x6346c0
        effstatus = 0
        f = 0
        i = 4155677282
        ibuf = 0x0
        idone = 8192
        obeg = 0
#7  0x00007ffff7b3e103 in sox_flow_effects (chain=0x632b30, callback=0x406ffc 
<update_status>, 
    client_data=0x0) at effects.c:351
        osize = 0
        flow_status = 0
        e = 6
        source_e = 0
        f = 1
        max_flows = 1
        draining = sox_true
#8  0x0000000000408891 in process () at sox.c:1662
        flow_status = 32767
#9  0x000000000040c107 in main (argc=20, argv=0x7fffffffe2f8) at sox.c:2863
        i = 1


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sox depends on:
ii  libc6             2.13-22
ii  libgomp1          4.6.2-7
ii  libgsm1           1.0.13-3
ii  libltdl7          2.4.2-1
ii  libmagic1         5.09-2
ii  libpng12-0        1.2.46-3
ii  libsox-fmt-alsa   14.3.2-3
ii  libsox-fmt-base   14.3.2-3
ii  libsox-fmt-pulse  14.3.2-3
ii  libsox1b          14.3.2-3
ii  zlib1g            1:1.2.3.4.dfsg-3

sox recommends no packages.

Versions of packages sox suggests:
pn  libsox-fmt-all  <none>

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to