BewareMyPower commented on issue #13849:
URL: https://github.com/apache/pulsar/issues/13849#issuecomment-1078632551
I debugged it with `lldb` and sometimes I found an `EXC_BAD_ACCESS`.
```
Process 67307 stopped
* thread #58, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x00000001043a6fcc
libpulsar.2.10.0-SNAPSHOT.dylib`boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>
>, boost::asio::any_io_executor>::get_service(this=0x0000000000000000) at
io_object_impl.hpp:116:13
113 // Get the service associated with the I/O object.
114 service_type& get_service()
115 {
-> 116 return *service_;
117 }
118
119 // Get the service associated with the I/O object.
Target 0: (main) stopped.
```
The command is
```bash
(lldb) r --gtest_filter='*Concurrent*LazyProducers' --gtest_repeat=5
```
The frame is
```
* thread #58, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00000001043a6fcc
libpulsar.2.10.0-SNAPSHOT.dylib`boost::asio::detail::io_object_impl<boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>
>, boost::asio::any_io_executor>::get_service(this=0x0000000000000000) at
io_object_impl.hpp:116:13
frame #1: 0x00000001043a23da
libpulsar.2.10.0-SNAPSHOT.dylib`boost::asio::basic_deadline_timer<boost::posix_time::ptime,
boost::asio::time_traits<boost::posix_time::ptime>,
boost::asio::any_io_executor>::expires_from_now(this=0x0000000000000000,
expiry_time=0x0000700011a632f8) at basic_deadline_timer.hpp:547:27
frame #2: 0x000000010474b866
libpulsar.2.10.0-SNAPSHOT.dylib`pulsar::ProducerImpl::sendAsyncWithStatsUpdate(this=0x0000000103101418,
msg=0x0000700011a63ed0, callback=0x0000700011a639c0)> const&) at
ProducerImpl.cc:477:26
frame #3: 0x000000010474abf9
libpulsar.2.10.0-SNAPSHOT.dylib`pulsar::ProducerImpl::sendAsync(this=0x0000000103101418,
msg=0x0000700011a63ed0, callback=pulsar::SendCallback @ 0x0000700011a63c20)>)
at ProducerImpl.cc:392:5
frame #4: 0x00000001046e6823
libpulsar.2.10.0-SNAPSHOT.dylib`pulsar::PartitionedProducerImpl::sendAsync(this=0x0000000101f33598,
msg=0x0000700011a63ed0, callback=pulsar::SendCallback @ 0x0000700011a63cc0)>)
at PartitionedProducerImpl.cc:209:15
frame #5: 0x0000000104734d6a
libpulsar.2.10.0-SNAPSHOT.dylib`pulsar::Producer::sendAsync(this=0x00007ff7bfefef78,
msg=0x0000700011a63ed0, callback=pulsar::SendCallback @ 0x0000700011a63ef0)>)
at Producer.cc:68:12
frame #6: 0x00000001002adcd8
main`ProducerTest_testSendAsyncCloseAsyncConcurrentlyWithLazyProducers_Test::TestBody(this=0x00006000017008c8)::$_0::operator()()
const at ProducerTest.cc:202:26
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]