You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/03/03 20:42:32 UTC
[GitHub] [pulsar] spark-louissalin opened a new issue #6463: pulsar-client
2.5 - Segmentation fault: 11 on Mac OS 10.14.6 using Python 3.7.6
spark-louissalin opened a new issue #6463: pulsar-client 2.5 - Segmentation fault: 11 on Mac OS 10.14.6 using Python 3.7.6
URL: https://github.com/apache/pulsar/issues/6463
**Describe the bug**
Repeatedly opening and closing a client and producer will eventually cause a segmentation fault 11 and the python interpreter will crash.
**To Reproduce**
Within a python 3.7.6 interpreter and using the pulsar-client 2.5 pip library, repeat the following until a seg fault happens:
* create a client
* create a producer
* close the client
For example:
$ python
Python 3.7.6 (default, Dec 30 2019, 19:38:28)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulsar
>>> client = pulsar.Client("pulsar://localhost:6650")
>>> producer = client.create_producer("some topic")
>>> client.close()
**Expected behavior**
I should be able to run these 3 lines forever without trouble
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
**Additional context**
Add any other context about the problem here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [pulsar] apapia commented on issue #6463: pulsar-client 2.5 -
Segmentation fault: 11 on Mac OS 10.14.6 using Python 3.7.6
Posted by GitBox <gi...@apache.org>.
apapia commented on issue #6463: pulsar-client 2.5 - Segmentation fault: 11 on Mac OS 10.14.6 using Python 3.7.6
URL: https://github.com/apache/pulsar/issues/6463#issuecomment-611747617
Not sure if this is the same bug, but I'm seeing a segfault when running pulsar-client 2.5 with Python 3.7.7 on Mac OS 10.13.6. This is the stack trace I get:
```
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _pulsar.cpython-37m-darwin.so 0x0000000104e2fd9d unsigned long boost::asio::detail::kqueue_reactor::cancel_timer<boost::asio::time_traits<boost::posix_time::ptime> >(boost::asio::detail::timer_queue<boost::asio::time_traits<boost::posix_time::ptime> >&, boost::asio::detail::timer_queue<boost::asio::time_traits<boost::posix_time::ptime> >::per_timer_data&, unsigned long) + 29
1 _pulsar.cpython-37m-darwin.so 0x0000000104e2fc64 boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime> >::cancel(boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime> >::implementation_type&, boost::system::error_code&) + 52
2 _pulsar.cpython-37m-darwin.so 0x0000000104e2d7d4 boost::asio::basic_deadline_timer<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime>, boost::asio::executor>::cancel() + 68
3 _pulsar.cpython-37m-darwin.so 0x0000000104f84e6b pulsar::ProducerStatsImpl::~ProducerStatsImpl() + 59
4 _pulsar.cpython-37m-darwin.so 0x0000000104f3986d pulsar::ProducerImpl::~ProducerImpl() + 1021
5 _pulsar.cpython-37m-darwin.so 0x0000000104de4acc boost::python::objects::value_holder<pulsar::Producer>::~value_holder() + 60
6 _pulsar.cpython-37m-darwin.so 0x0000000104fe1274 boost::python::objects::instance_dealloc(_object*) + 52
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services