[
https://issues.apache.org/jira/browse/CASSCPP-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18087568#comment-18087568
]
Yifan Cai commented on CASSCPP-3:
---------------------------------
+1 Thanks for the patch!
> Crash on Pure virtual function while the destructor of the Session object is
> called
> -----------------------------------------------------------------------------------
>
> Key: CASSCPP-3
> URL: https://issues.apache.org/jira/browse/CASSCPP-3
> Project: Apache Cassandra C/C++ driver
> Issue Type: Bug
> Reporter: Bret McGuire
> Priority: High
> Fix For: 2.17.2
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Lifted version of [CPP-953|https://datastax-oss.atlassian.net/browse/CPP-953]
> for work to be included in the next release. Original description follows:
>
> An application making use of the Cassandra C++ driver experienced a crash
> while shutting down, on the following thread:
>
> {noformat}
> [worker-thread]
> #0 0x00000032db4324f5 in ?? () from sroot/lib64/libc.so.6
> #1 0x00000032db433cd5 in abort () from sroot/lib64/libc.so.6
> #2 0x000000000056d0f3 in __gnu_cxx::__verbose_terminate_handler() [clone
> .cold.1] ()
> #3 0x00000000009b456a in __cxxabiv1::__terminate(void (*)()) ()
> #4 0x00000000009b45c5 in std::terminate() ()
> #5 0x00000000009b5663 in __cxa_pure_virtual ()
> #6 0x000000000088fa86 in
> datastax::internal::core::Cluster::notify_host_up_after_prepare(datastax::internal::SharedRefPtr<datastax::internal::core::Host>
> const&) ()
> #7 0x000000000088fb0a in
> datastax::internal::core::Cluster::on_prepare_host_up(datastax::internal::core::PrepareHostHandler
> const*) ()
> #8 0x0000000000955258 in
> datastax::internal::core::PrepareHostHandler::on_close(datastax::internal::core::Connection*)
> ()
> #9 0x0000000000975585 in datastax::internal::core::Connection::on_close() ()
> #10 0x000000000091117f in datastax::internal::core::Socket::handle_close() ()
> #11 0x0000000000a3ebc9 in uv_run ()
> #12 0x00000000008711ec in
> datastax::internal::core::EventLoop::internal_on_run(void*) ()
> #13 0x00007f46cf26faa1 in start_thread () from
> sroot/lib64/libpthread.so.0{noformat}
> The main application thread had requested the shutdown/cleanup, which was
> pending/waiting on internal driver operations to finish/complete:
>
> {noformat}
> [main]
> #0 0x00007f46cf2702fd in pthread_join () from sroot/lib64/libpthread.so.0
> #1 0x0000000000a4832e in uv_thread_join ()
> #2 0x00000000008701d4 in datastax::internal::core::EventLoop::join() ()
> #3 0x000000000087f1b2 in
> datastax::internal::core::SessionBase::~SessionBase() ()
> #4 0x000000000082bcf9 in datastax::internal::core::Session::~Session() ()
> #5 0x000000000082db45 in cass_session_free ()
> #6 0x00000000006242ab in util_cassandra_destroy (log=<optimized out>) at
> /rpmbuild/modules/util_libs/src/util_cassandra.c:327{noformat}
>
> This happened once so far and it doesn't seem easily reproducible.
> it looks like a variant of
> [CPP-924|https://datastax-oss.atlassian.net/browse/CPP-924] which is however
> fixed in the version used.
> {*}NOTE{*}: the version of the driver used is *2.16.2*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]