ajorgensen opened a new issue #2897: Potential double free crash in 
BaseConnection destructor
URL: https://github.com/apache/incubator-heron/issues/2897
 
 
   On version `0.17.8` it appears that there may be a double free error that 
causes a stream manager to crash sometimes in the destructor for the 
BaseConnection
   
   ```
   [Thread debugging using libthread_db enabled]
   Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
   Core was generated by `./heron-core/bin/heron-stmgr 
--topology_name=insights-speed-android --topology_'.
   Program terminated with signal SIGABRT, Aborted.
   #0  0x00007ff4f8033c37 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
   56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
   (gdb) bt
   #0  0x00007ff4f8033c37 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
   #1  0x00007ff4f8037028 in __GI_abort () at abort.c:89
   #2  0x0000000000513481 in tcmalloc::Log (mode=mode@entry=tcmalloc::kCrash, 
filename=filename@entry=0x6109c2 "src/tcmalloc.cc", line=line@entry=278, a=..., 
b=..., c=..., d=...) at src/internal_logging.cc:120
   #3  0x000000000050ef35 in (anonymous namespace)::InvalidFree 
(ptr=ptr@entry=0x6f72646e412e6e6f) at src/tcmalloc.cc:278
   #4  0x000000000040a3e2 in free_null_or_invalid (invalid_free_fn=0x50eee0 
<(anonymous namespace)::InvalidFree(void*)>, ptr=ptr@entry=0x6f72646e412e6e6f) 
at src/tcmalloc.cc:1137
   #5  (anonymous namespace)::do_free_helper (ptr=ptr@entry=0x6f72646e412e6e6f, 
heap_must_be_valid=true, heap=0x21720a0, invalid_free_fn=0x50eee0 <(anonymous 
namespace)::InvalidFree(void*)>) at src/tcmalloc.cc:1181
   #6  0x0000000000609cdc in do_free_helper (invalid_free_fn=0x50eee0 
<(anonymous namespace)::InvalidFree(void*)>, heap_must_be_valid=true, 
heap=0x21720a0, ptr=0x6f72646e412e6e6f) at src/thread_cache.h:381
   #7  do_free_with_callback (invalid_free_fn=0x50eee0 <(anonymous 
namespace)::InvalidFree(void*)>, ptr=0x6f72646e412e6e6f) at src/tcmalloc.cc:1221
   #8  do_free (ptr=0x6f72646e412e6e6f) at src/tcmalloc.cc:1230
   #9  tc_free (ptr=0x6f72646e412e6e6f) at src/tcmalloc.cc:1581
   #10 0x00000000004c1d35 in BaseConnection::disableRateLimit() ()
   #11 0x00000000004c1d71 in BaseConnection::~BaseConnection() ()
   #12 0x00000000004ca4b1 in Connection::~Connection() ()
   #13 0x00000000004cdccc in BaseClient::OnClose(NetworkErrorCode) ()
   #14 0x00000000004c1e7a in BaseConnection::internalClose(NetworkErrorCode) ()
   #15 0x00000000004c2131 in BaseConnection::handleEvent(short) ()
   #16 0x00000000004d643d in bufferevent_run_deferred_callbacks_locked 
(cb=<optimized out>, arg=0x87d6000) at bufferevent.c:161
   #17 0x00000000004deb10 in event_process_active_single_queue 
(base=base@entry=0x28dc000, activeq=0x28883f0, 
max_to_process=max_to_process@entry=2147483647, endtime=endtime@entry=0x0) at 
event.c:1675
   #18 0x00000000004df597 in event_process_active (base=0x28dc000) at 
event.c:1738
   #19 event_base_loop (base=0x28dc000, flags=0) at event.c:1961
   #20 0x000000000040b07c in main ()```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to