[Live-devel] segfault RtspClient
Gerald Hansink
gerald.hansink at ieee.org
Tue May 30 04:38:40 PDT 2017
Hi Ross,
we still have the same error (below), I highly recommend Asan, it has
proven to be very valuable locating bugs that are otherwise impossible to
detect.
I remember from my last debugging session that all we do is a call to
Medium::close(ourMediaSession).
Tomorrow I will likely have time to look into the code again, hopefully
I'll learn more.
regards,
Frederik De Ruyck
=================================================================
==27068==ERROR: AddressSanitizer: heap-use-after-free on address 0xae822e44
at pc 0xb79633d8 bp 0x5c27bc68 sp 0x5c27bc5c
READ of size 4 at 0xae822e44 thread T76
#0 0xb79633d7 in RTPInterface::removeStreamSocket(int, unsigned char)
/home/user/Git/heraclesMaster/external_libs/hipi/livemedia/live/liveMedia/
RTPInterface.cpp:176
#1 0xb79640d6 in SocketDescriptor::~SocketDescriptor() /home/user/Git/
heraclesMaster/external_libs/hipi/livemedia/live/liveMedia/RTPInterface.cpp
:412
#2 0xb7964399 in SocketDescriptor::~SocketDescriptor() /home/user/Git/
heraclesMaster/external_libs/hipi/livemedia/live/liveMedia/RTPInterface.cpp
:429
#3 0xb796530a in SocketDescriptor::tcpReadHandler(SocketDescriptor*,
int) /home/user/Git/heraclesMaster/external_libs/hipi/livemedia/live/
liveMedia/RTPInterface.cpp:478
#4 0xb786fd6a in BasicTaskScheduler::SingleStep(unsigned int)
/home/user/Git/heraclesMaster/external_libs/hipi/livemedia/live/
BasicUsageEnvironment/BasicTaskScheduler.cpp:171
#5 0x86669f0 in Hydra::LiveMediaTask::EventLoop() /home/user/Git/
heraclesMaster/hydra_libs/RTSPCamInterface/private/LiveMediaTask.cpp:173
#6 0x866df85 in operator()<, void> /usr/include/c++/4.9/functional:569
#7 0x866df85 in _M_invoke<0u> /usr/include/c++/4.9/functional:1700
#8 0x866df85 in std::_Bind_simple<std::_Mem_fn<void (Hydra::
LiveMediaTask::*)()> (Hydra::LiveMediaTask*)>::operator()() /usr
/include/c++/4.9/functional:1688
#9 0x866df85 in std::thread::_Impl<std::_Bind_simple<std::_Mem_fn<void
(Hydra::LiveMediaTask::*)()> (Hydra::LiveMediaTask*)> >::_M_run() /usr
/include/c++/4.9/thread:115
#10 0xb4b8d0fd (/usr/lib/i386-linux-gnu/libstdc++.so.6+0xa60fd)
#11 0xb7b3653f (/usr/lib/i386-linux-gnu/libasan.so.1+0x5653f)
#12 0xb7afe067 (/usr/lib/i386-linux-gnu/libasan.so.1+0x1e067)
#13 0xb4faeefa in start_thread (/lib/i386-linux-gnu/i686/cmov/libpthread
.so.0+0x6efa)
#14 0xb49c1d4d in clone (/lib/i386-linux-gnu/i686/cmov/libc
.so.6+0xe9d4d)
0xae822e44 is located -1367200252 bytes inside
2017-05-24 23:37 GMT+02:00 Ross Finlayson <finlayson at live555.com>:
> Thanks for reporting this issue. I have just installed a new version
> (2017.05.24) of the “LIVE555 Streaming Media” code that should (I hope) fix
> this.
>
> (Does this also solve the problem that “libasan” reported to you?)
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20170530/4d7bfcd5/attachment.html>
More information about the live-devel
mailing list