Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by KTSamy):

 Replying to [comment:6 cehoyos]:
 > Feel free to test the following change:
 > {{{
 > diff --git a/fftools/ffplay.c b/fftools/ffplay.c
 > index 84ba667..5ace5cd 100644
 > --- a/fftools/ffplay.c
 > +++ b/fftools/ffplay.c
 > @@ -3106,7 +3106,11 @@ static void stream_cycle_channel(VideoState *is,
 int codec_type)
 >  int old_index;
 >  AVStream *st;
 >  AVProgram *p = NULL;
 > -int nb_streams = is->ic->nb_streams;
 > +int nb_streams;
 > +
 > +if (!is->ic)
 > +return;
 > +nb_streams = is->ic->nb_streams;
 >
 >  if (codec_type == AVMEDIA_TYPE_VIDEO) {
 >  start_index = is->last_video_stream;
 > }}}

 This fixes the issue. Thanks :)

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by cehoyos):

 Feel free to test the following change:
 {{{
 diff --git a/fftools/ffplay.c b/fftools/ffplay.c
 index 84ba667..5ace5cd 100644
 --- a/fftools/ffplay.c
 +++ b/fftools/ffplay.c
 @@ -3106,7 +3106,11 @@ static void stream_cycle_channel(VideoState *is,
 int codec_type)
  int old_index;
  AVStream *st;
  AVProgram *p = NULL;
 -int nb_streams = is->ic->nb_streams;
 +int nb_streams;
 +
 +if (!is->ic)
 +return;
 +nb_streams = is->ic->nb_streams;

  if (codec_type == AVMEDIA_TYPE_VIDEO) {
  start_index = is->last_video_stream;
 }}}

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by cehoyos):

 Replying to [comment:4 KTSamy]:
 > Replying to [comment:3 cehoyos]:
 > > Replying to [comment:2 KTSamy]:
 > > > {{{
 > > > ktsamy:~ thiru$ ffplay_g
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8";
 > > > ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
 > > > }}}
 > > Looks old and unsupported.
 >
 > Nope. This was built from the recent master branch

 In this case, you are using a broken source snapshot, try
 http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by KTSamy):

 Replying to [comment:3 cehoyos]:
 > Replying to [comment:2 KTSamy]:
 > > {{{
 > > ktsamy:~ thiru$ ffplay_g
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8";
 > > ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
 > > }}}
 > Looks old and unsupported.

 Nope. This was built from the yesterday's latest master branch (Last
 commit is 7b80df677aa85c7d5cba457de915eac6108ec4e8 ). The RELEASE file of
 the master branch is not updated after the release of 4.0. That is leading
 to the confusion. I have already raised this on dev IRC sometime back.

 '''As I mentioned earlier, I can reproduce it from the builds of
 officially recommended builds too (https://evermeet.cx/ffmpeg/ &
 https://ffmpeg.zeranoe.com/builds/ ). It looks like an issue with newer
 MacOS versions. I can even reproduce the issue with 3.4.X & 4.0 builds.'''

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by cehoyos):

 Replying to [comment:2 KTSamy]:
 > {{{
 > ktsamy:~ thiru$ ffplay_g
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8";
 > ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
 > }}}
 Looks old and unsupported.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-

Comment (by KTSamy):

 I am not much familiar with debugging tools. I have tried

 {{{
 sudo gdb ffplay_g
 r -i https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
 }}}


 the result was

 {{{
 (gdb) r -i https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
 Starting program: /usr/local/bin/ffplay_g -i
 https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
 [New Thread 0x1103 of process 68309]
 [New Thread 0xf03 of process 68309]
 Warning:
 Cannot insert breakpoint -1.
 Cannot access memory at address 0xf782

 Command aborted.
 }}}


 I am not sure whether you have tried it on macOS or not. I am on Mac OS X
 10.13.5 (17F77)

 Here is my terminal output

 {{{
 ktsamy:~ thiru$ ffplay_g
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8";
 ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
   built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
   configuration: --enable-static --disable-shared --disable-doc --enable-
 gpl --enable-version3 --enable-nonfree --enable-pthreads --pkg-config-
 flags=--static --enable-libxml2 --enable-gmp --enable-gnutls --enable-sdl2
   libavutil  56. 18.102 / 56. 18.102
   libavcodec 58. 20.100 / 58. 20.100
   libavformat58. 17.100 / 58. 17.100
   libavdevice58.  4.100 / 58.  4.100
   libavfilter 7. 25.100 /  7. 25.100
   libswscale  5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc55.  2.100 / 55.  2.100
 [hls,applehttp @ 0x1028a2000] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit.m3u8'
 for reading
 Segmentation fault: 11=   0 aq=0KB vq=0KB sq=0B f=0/0
 ktsamy:~ thiru$ ffplay_g
 "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8";
 ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
   built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
   configuration: --enable-static --disable-shared --disable-doc --enable-
 gpl --enable-version3 --enable-nonfree --enable-pthreads --pkg-config-
 flags=--static --enable-libxml2 --enable-gmp --enable-gnutls --enable-sdl2
   libavutil  56. 18.102 / 56. 18.102
   libavcodec 58. 20.100 / 58. 20.100
   libavformat58. 17.100 / 58. 17.100
   libavdevice58.  4.100 / 58.  4.100
   libavfilter 7. 25.100 /  7. 25.100
   libswscale  5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc55.  2.100 / 55.  2.100
 [hls,applehttp @ 0x10306a800] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit.m3u8' for
 reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit.m3u8' for
 reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit.m3u8' for
 reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit.m3u8'
 for reading
 [https @ 0x1038f7200] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit.m3u8'
 for reading
 Segmentation fault: 11=   0 aq=0KB vq=0KB sq=0B f=0/0
 ktsamy:~ thiru$
 }}}

 I can even reproduce it with latest builds from
 https://ffmpeg.zeranoe.com/builds/

 The following are the context from mac's bug reporting option context

 {{{
 Process:   ffplay_g [68095]
 Path:  /usr/local/bin/ffplay_g
 Identifier:ffplay_g
 Version:   0
 Code Type: X86-64 (Native)
 Parent Process:bash [33400]
 Responsible:   ffplay_g [68095]
 User ID:   503

 Date/Time: 2

Re: [FFmpeg-trac] #7252(undetermined:closed): SIGSEGV when the ffplay is terminated with Ctrl+C before video appears

2018-06-09 Thread FFmpeg
#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears
-+-
 Reporter:  KTSamy   |Owner:
 Type:  defect   |   Status:  closed
 Priority:  important|Component:
  Version:  git-master   |  undetermined
 Keywords:  SIGSEGV  |   Resolution:
  crash  |  needs_more_info
 Blocking:   |   Blocked By:
Analyzed by developer:  0|  Reproduced by developer:  0
-+-
Changes (by cehoyos):

 * keywords:  SIGSEGV ffplay => SIGSEGV crash
 * priority:  normal => important
 * status:  new => closed
 * component:  ffplay => undetermined
 * resolution:   => needs_more_info


Comment:

 Please reopen this ticket if you can provide backtrace, disassembly and
 register dump as explained on https://ffmpeg.org/bugreports.html
 {{{
 $ ffplay https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
 ffplay version N-91255-g7b80df6 Copyright (c) 2003-2018 the FFmpeg
 developers
   built with gcc 6.4.0 (GCC)
   configuration: --enable-gpl --enable-gnutls
   libavutil  56. 18.102 / 56. 18.102
   libavcodec 58. 20.100 / 58. 20.100
   libavformat58. 17.100 / 58. 17.100
   libavdevice58.  4.100 / 58.  4.100
   libavfilter 7. 25.100 /  7. 25.100
   libswscale  5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc55.  2.100 / 55.  2.100
 [hls,applehttp @ 0x7fd8c940] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit.m3u8'
 for reading
 [https @ 0x7fd8c0015dc0] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8'
 for reading
 [https @ 0x7fd8c0015dc0] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit.m3u8'
 for reading
 [https @ 0x7fd8c0015dc0] Opening
 
'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8'
 for reading
 [https @ 0x7fd8c0015dc0] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit.m3u8' for
 reading
 [https @ 0x7fd8c0015dc0] Opening
 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit.m3u8' for
 reading
 ^C
 $
 }}}

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac