[FFmpeg-trac] #3235(FFmpeg:new): ffmpeg doesn't respond to SIGINT on debian sid when using pulse input

FFmpeg trac at avcodec.org
Sun Dec 22 23:12:26 CET 2013


#3235: ffmpeg doesn't respond to SIGINT on debian sid when using pulse input
--------------------------------+--------------------------------------
             Reporter:  jnvsor  |                     Type:  defect
               Status:  new     |                 Priority:  minor
            Component:  FFmpeg  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+--------------------------------------
 ffmpeg doesn't respond to SIGINT on debian sid when using a `-f pulse`
 input device.

 Trying to send SIGINT through `Ctrl+C` or through `kill -2 {pid}` has no
 response. Stopping with `q` still works.

 Running under valgrind ffmpeg does respond to sigint.

 Removing any of the configure flags will cause the bug to dissapear
 (Except libpulse and prefix which are required to test it in the first
 place)

 {{{
 ./configure --enable-libopencv --enable-libpulse --prefix=/home/j/FFmpeg
 --enable-gnutls --shlibdir=/usr/lib/x86_64-linux-gnu
 }}}

 Note about the output below. There are warning lines like so:
 {{{
 avutil      configuration: [...]
 }}}

 But these lines disappear when configured with `--libdir=/usr/lib/x86_64
 -linux-gnu` though the bug persists so I've cut them out of the output to
 make it more readable.

 How to reproduce:
 {{{
 git clone git at github.com:FFmpeg/FFmpeg.git
 cd FFmpeg
 ./configure --enable-libopencv --enable-libpulse --prefix=/home/j/FFmpeg
 --enable-gnutls --shlibdir=/usr/lib/x86_64-linux-gnu
 make
 make install
 cd ~
 ./FFmpeg/bin/ffmpeg -f pulse -i default -c copy out.avi
 ffmpeg version N-59281-g64b98df Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 22 2013 23:00:02 with gcc 4.8 (Debian 4.8.2-10)
   configuration: --enable-libopencv --enable-libpulse
 --prefix=/home/j/FFmpeg --enable-gnutls --shlibdir=/usr/lib/x86_64-linux-
 gnu
   WARNING: library configuration mismatch
 [avutil lines]
   libavutil      52. 58.101 / 52. 58.101
   libavcodec     55. 46.100 / 55. 46.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     4.  0.100 /  4.  0.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Guessed Channel Layout for  Input Stream #0.0 : stereo
 Input #0, pulse, from 'default':
   Duration: N/A, start: 0.006885, bitrate: 1536 kb/s
     Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 File 'out.avi' already exists. Overwrite ? [y/N] y
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf55.22.100
     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
 stereo, 1536 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     557kB time=00:00:02.87 bitrate=1587.9kbits/s
 # Won't stop with sigint
 }}}

 Valgrind output:
 {{{
 valgrind ./FFmpeg/bin/ffmpeg -f pulse -i default -c copy out.avi
 ==1989== Memcheck, a memory error detector
 ==1989== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
 ==1989== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
 ==1989== Command: ./FFmpeg/bin/ffmpeg -f pulse -i default -c copy out.avi
 ==1989==
 ffmpeg version N-59281-g64b98df Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 22 2013 23:00:02 with gcc 4.8 (Debian 4.8.2-10)
   configuration: --enable-libopencv --enable-libpulse
 --prefix=/home/j/FFmpeg --enable-gnutls --shlibdir=/usr/lib/x86_64-linux-
 gnu
   WARNING: library configuration mismatch
 [avutil lines]
   libavutil      52. 58.101 / 52. 58.101
   libavcodec     55. 46.100 / 55. 46.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     4.  0.100 /  4.  0.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Guessed Channel Layout for  Input Stream #0.0 : stereo
 Input #0, pulse, from 'default':
   Duration: N/A, start: 0.064767, bitrate: 1536 kb/s
     Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 File 'out.avi' already exists. Overwrite ? [y/N] y
 Output #0, avi, to 'out.avi':
   Metadata:
     ISFT            : Lavf55.22.100
     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
 stereo, 1536 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     356kB time=00:00:01.82 bitrate=1596.9kbits/s
 video:0kB audio:342kB subtitle:0 global headers:0kB muxing overhead
 3.959932%
 Received signal 2: terminating.
 ==1989==
 ==1989== HEAP SUMMARY:
 ==1989==     in use at exit: 64,699 bytes in 567 blocks
 ==1989==   total heap usage: 5,466 allocs, 4,899 frees, 1,699,733 bytes
 allocated
 ==1989==
 ==1989== LEAK SUMMARY:
 ==1989==    definitely lost: 6,024 bytes in 1 blocks
 ==1989==    indirectly lost: 0 bytes in 0 blocks
 ==1989==      possibly lost: 0 bytes in 0 blocks
 ==1989==    still reachable: 58,675 bytes in 566 blocks
 ==1989==         suppressed: 0 bytes in 0 blocks
 ==1989== Rerun with --leak-check=full to see details of leaked memory
 ==1989==
 ==1989== For counts of detected and suppressed errors, rerun with: -v
 ==1989== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3235>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list