[FFmpeg-trac] #1383(avformat:new): HTTP playback will crash if URL can't be opened for whatever reasons

2012-05-31 Thread FFmpeg
#1383: HTTP playback will crash if URL can't be opened for whatever reasons
---+---
 Reporter:  jyavenard  | Type:  defect
   Status:  new| Priority:  critical
Component:  avformat   |  Version:  unspecified
 Keywords: |   Blocked By:
 Blocking: |  Reproduced by developer:  0
Analyzed by developer:  0  |
---+---
 Problem was introduced by commit ba354a8c

 backtrace:
 ffplay
 http://stream7.france24.yacast.net/iphone/france24/fr/iPad.f24_fr.m3u8

 ffplay(80831,0x10679b000) malloc: *** error for object 0x101120f00:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug


 {{{
 Program received signal SIGABRT, Aborted.
 [Switching to process 80831 thread 0x6a03]
 0x7fff95723ce2 in __pthread_kill ()
 (gdb) thread apply all bt full

 Thread 6 (process 80831):
 #0  0x7fff95723ce2 in __pthread_kill ()
 No symbol table info available.
 #1  0x7fff920db7d2 in pthread_kill ()
 No symbol table info available.
 #2  0x7fff920cca7a in abort ()
 No symbol table info available.
 #3  0x7fff9212b84c in free ()
 No symbol table info available.

 Thread 5 (process 80831):
 #0  0x7fff95723e42 in __semwait_signal ()
 No symbol table info available.
 #1  0x7fff9208fdea in nanosleep ()
 No symbol table info available.
 #2  0x000100e25386 in RunTimer ()
 No symbol table info available.
 #3  0x000100de9368 in SDL_RunThread ()
 No symbol table info available.
 #4  0x000100e20e09 in RunThread ()
 No symbol table info available.
 #5  0x7fff920d98bf in _pthread_start ()
 No symbol table info available.
 #6  0x7fff920dcb75 in thread_start ()
 No symbol table info available.

 Thread 4 (process 80831):
 #0  0x7fff95724192 in __workq_kernreturn ()
 No symbol table info available.
 #1  0x7fff920db594 in _pthread_wqthread ()
 No symbol table info available.
 #2  0x7fff920dcb85 in start_wqthread ()
 No symbol table info available.

 Thread 3 (process 80831):
 #0  0x7fff95724192 in __workq_kernreturn ()
 No symbol table info available.
 #1  0x7fff920db594 in _pthread_wqthread ()
 No symbol table info available.
 #2  0x7fff920dcb85 in start_wqthread ()
 No symbol table info available.

 Thread 2 (process 80831):
 #0  0x7fff957247e6 in kevent ()
 No symbol table info available.
 #1  0x7fff8da9978a in _dispatch_mgr_invoke ()
 No symbol table info available.
 #2  0x7fff8da9831a in _dispatch_mgr_thread ()
 No symbol table info available.

 Thread 1 (process 80831):
 #0  0x7fff95723e42 in __semwait_signal ()
 No symbol table info available.
 #1  0x7fff9208fdea in nanosleep ()
 No symbol table info available.
 #2  0x000100e252b6 in SDL_Delay ()
 No symbol table info available.
 #3  0x000100de5abe in SDL_WaitEvent ()
 No symbol table info available.
 #4  0x00017f94 in SDL_main ()
 No symbol table info available.
 #5  0x7fff8f7afd0e in __-[NSNotificationCenter
 addObserver:selector:name:object:]_block_invoke_1 ()
 No symbol table info available.
 #6  0x7fff8e4a67ba in _CFXNotificationPost ()
 No symbol table info available.
 #7  0x7fff8f79bfc3 in -[NSNotificationCenter
 postNotificationName:object:userInfo:] ()
 No symbol table info available.
 #8  0x7fff92b4c4e3 in -[NSApplication _postDidFinishNotification] ()
 No symbol table info available.
 #9  0x7fff92b4c249 in -[NSApplication
 _sendFinishLaunchingNotification] ()
 No symbol table info available.
 #10 0x7fff92b4af10 in -[NSApplication(NSAppleEventHandling)
 _handleAEOpenEvent:] ()
 No symbol table info available.
 #11 0x7fff92b4ac71 in -[NSApplication(NSAppleEventHandling)
 _handleCoreEvent:withReplyEvent:] ()
 No symbol table info available.
 #12 0x7fff8e4f0541 in -[NSObject
 performSelector:withObject:withObject:] ()
 No symbol table info available.
 #13 0x7fff8f7d27c7 in __-[NSAppleEventManager
 setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 ()
 No symbol table info available.
 #14 0x7fff8f7d174e in -[NSAppleEventManager
 dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
 No symbol table info available.
 #15 0x7fff8f7d15dc in _NSAppleEventManagerGenericHandler ()
 No symbol table info available.
 #16 0x7fff923b9c25 in aeDispatchAppleEvent ()
 No symbol table info available.
 #17 0x7fff923b9b03 in dispatchEventAndSendReply ()
 No symbol table info available.
 #18 0x7fff923b99f7 in aeProcessAppleEvent ()
 No symbol table info available.
 #19 0x7fff8c6ded7d in AEProcessAppleEvent ()
 No symbol table info available.
 #20 0x7fff92b4807d in _DPSNextEvent ()
 No symbol table info available.
 #21 0x7fff92b47735 in -[NSApplication
 

Re: [FFmpeg-trac] #1383(avformat:new): HTTP playback will crash if URL can't be opened for whatever reasons

2012-05-31 Thread FFmpeg
#1383: HTTP playback will crash if URL can't be opened for whatever reasons
-+
 Reporter:  jyavenard|Owner:
 Type:  defect   |   Status:  new
 Priority:  critical |Component:  avformat
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+

Comment (by jyavenard):

 Sorry, I made a mistake associating the commit ba354a8c ; that one
 introduced the https issue.

 Git bisect find that this is the culprit for the regression. I'm not 100%
 sure that it is completely the problem as git bisect often acts weird when
 working through merge with remote forks

 {{{
 3bdb438e6517ec342e93298de571688584050d68 is the first bad commit
 commit 3bdb438e6517ec342e93298de571688584050d68
 Author: Samuel Pitoiset samuel.pitoi...@gmail.com
 Date:   Mon May 28 15:03:19 2012 +0200

 http: Add support for using persistent connections

 Add a new AVOption 'multiple_requests', which indicates if we want
 to use persistent connections (ie. Connection: keep-alive).

 Signed-off-by: Martin Storsjö mar...@martin.st

 :04 04 c28dfba01c195adc1a6b7f7d7c53fb60372d1b66
 2970eae70045726d784ffbedceec6fde48d3a010 M  libavformat
 }}}

 reverting that commit gives me bus error but no av_free error. As such,
 I'm not convinced that the problem can be entirely attributed to this
 commit

-- 
Ticket URL: https://ffmpeg.org/trac/ffmpeg/ticket/1383#comment:1
FFmpeg http://ffmpeg.org
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac