[libav-bugs] [Bug 803] libav supposedly hangs if RTSP session id contains $ or +

bugzilla at aruru.libav.org bugzilla at aruru.libav.org
Fri Jan 16 11:31:54 CET 2015


https://bugzilla.libav.org/show_bug.cgi?id=803

Sebastian Dröge <slomo at circular-chaos.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slomo at circular-chaos.org

--- Comment #2 from Sebastian Dröge <slomo at circular-chaos.org> ---
I can reproduce this btw. It hangs after receiving the SETUP response. This is
with avplay from libav 11.1, the session ID in question is 'ASp_moa2p41$u8HZ'.
It works just fine as long as the session is does not contain a + or $.


Thread 5 (Thread 0x7fffe2531700 (LWP 25849)):
#0  0x00007ffff55c918d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff76d5aec in poll (__timeout=100, __nfds=1, __fds=0x7fffe2527f50)
at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  ff_network_wait_fd (fd=<optimized out>, write=write at entry=0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/network.c:146
#3  0x00007ffff7714efd in tcp_read (h=<optimized out>, buf=0x7fffe252802a
"R\342\377\177", size=982)
    at /build/libav-ceeCcJ/libav-11.1/libavformat/tcp.c:139
#4  0x00007ffff76688ac in retry_transfer_wrapper (transfer_func=<optimized
out>, size_min=<optimized out>, size=<optimized out>, 
    buf=<optimized out>, h=<optimized out>) at
/build/libav-ceeCcJ/libav-11.1/libavformat/avio.c:240
#5  ffurl_read_complete (h=0x7fffe2527f50, buf=0x1 <error: Cannot access memory
at address 0x1>, 
    buf at entry=0x7fffe2528000 "Z\r\nDate: Fri, 16 Jan 2015 10:30:21
GMT\r\n\r\nR\342\377\177", size=100, size at entry=1024)
    at /build/libav-ceeCcJ/libav-11.1/libavformat/avio.c:273
#6  0x00007ffff76fffb1 in ff_rtsp_skip_packet (s=s at entry=0x7fffdc0008c0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1068
#7  0x00007ffff7700162 in ff_rtsp_read_reply (s=s at entry=0x7fffdc0008c0,
reply=reply at entry=0x7fffe252a3d0, content_ptr=content_ptr at entry=0x0, 
    return_on_interleaved_data=return_on_interleaved_data at entry=0,
method=method at entry=0x7ffff7741697 "SETUP")
    at /build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1108
#8  0x00007ffff7701341 in ff_rtsp_send_cmd_with_content (s=0x7fffdc0008c0,
method=0x7ffff7741697 "SETUP", 
    url=0x7fffdc000e1c "rtsp://127.0.0.1:8554/test/stream=0", 
    header=0x7fffe252c320 "Transport:
RTP/AVP/UDP;unicast;client_port=6962-6963\r\n", reply=0x7fffe252a3d0,
content_ptr=0x0, 
    send_content=0x0, send_content_length=0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1315
#9  0x00007ffff77013ed in ff_rtsp_send_cmd (s=<optimized out>,
method=<optimized out>, url=<optimized out>, headers=<optimized out>, 
    reply=<optimized out>, content_ptr=<optimized out>) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1292
#10 0x00007ffff7701694 in ff_rtsp_make_setup_request (s=0x7fffdc0008c0,
host=0x1 <error: Cannot access memory at address 0x1>, port=100, 
    lower_transport=-1, real_challenge=0x0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1474
#11 0x00007ffff7702429 in ff_rtsp_connect (s=0x7fffdc0008c0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtsp.c:1793
#12 0x00007ffff7704ff0 in rtsp_read_header (s=0x7fffdc0008c0) at
/build/libav-ceeCcJ/libav-11.1/libavformat/rtspdec.c:690
#13 0x00007ffff771ef07 in avformat_open_input (ps=ps at entry=0x7fffe2530d30,
filename=filename at entry=0x6c2dc0 "rtsp://127.0.0.1:8554/test", 
    fmt=<optimized out>, options=options at entry=0x615828 <format_opts>) at
/build/libav-ceeCcJ/libav-11.1/libavformat/utils.c:299
#14 0x000000000040d9a0 in decode_thread (arg=0x682580) at
/build/libav-ceeCcJ/libav-11.1/avplay.c:2249
#15 0x00007ffff5ac62f8 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#16 0x00007ffff5b08e99 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#17 0x00007ffff589d0a4 in start_thread (arg=0x7fffe2531700) at
pthread_create.c:309
#18 0x00007ffff55d1ccd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffe6d33700 (LWP 25847)):
#0  0x00007ffff58a418d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5b0b515 in SDL_Delay () from
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2  0x00007ffff5ac2c72 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3  0x00007ffff5ac62f8 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#4  0x00007ffff5b08e99 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#5  0x00007ffff589d0a4 in start_thread (arg=0x7fffe6d33700) at
pthread_create.c:309
#6  0x00007ffff55d1ccd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fffe7c42700 (LWP 25846)):
#0  0x00007ffff58a418d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5b0b515 in SDL_Delay () from
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2  0x00007ffff5b0b562 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3  0x00007ffff5ac62f8 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#4  0x00007ffff5b08e99 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#5  0x00007ffff589d0a4 in start_thread (arg=0x7fffe7c42700) at
pthread_create.c:309
#6  0x00007ffff55d1ccd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fa1800 (LWP 25845)):
#0  0x00007ffff58a418d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff5b0b515 in SDL_Delay () from
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#2  0x00007ffff5ac3402 in SDL_WaitEvent () from
/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#3  0x0000000000404858 in event_loop () at
/build/libav-ceeCcJ/libav-11.1/avplay.c:2641
#4  main (argc=4268464, argv=0x7fffffffe4a0) at
/build/libav-ceeCcJ/libav-11.1/avplay.c:2998

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150116/bc97f8dc/attachment-0001.html>


More information about the libav-bugs mailing list