You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How did you use the library? Installed from the official pre-built libraries or built from source? If built from source, please provide the detailed steps.
The OS isTencentOS developed based on centos
I use the official pre-built libraries and my compiler is g++8.5.0
If I want to compile successfully, I must add compilation options --copt=-D_GLIBCXX_USE_CXX11_ABI=0
then this will result in coredump,when call the callback of sendAsync
It's suspicious about the path external/protobuf_archive/src/google/protobuf/message_lite.cc. The library was built via vcpkg and I cannot find any directory named protobuf_archive. Could you check the link paths of the dynamic library and the executable via ldd?
This binary links so many unrelated dynamic libraries. Most of them are from libcurl and OpenSSL.
Which library did you use? Currently, it would be better to link libpulsar.so or libpulsarwithdeps.a. It seems that you're using libpulsar.a and link to 3rd party dependencies from your system.
Besides, what is your compiler toolchain? Generally, if you're building directly via g++ like the guide here, it should work.
Could it be that the bazel external dependency and libpulsar.so use different versions of external/protobuf_archive/src/google/protobuf/message_lite.cc?
Yeah it's right. So I believe it's something wrong with your Bazel project. I have experiences with Bazel a few years ago. Could you share a minimum reproducible Bazel project?
Activity
BewareMyPower commentedon Jul 18, 2024
Please provide more info:
[-][Bug] [/-][+][Bug] SampleAsyncProducer causes core dump[/+]xiaoliu1019 commentedon Jul 18, 2024
The OS isTencentOS developed based on centos
I use the official pre-built libraries and my compiler is g++8.5.0
If I want to compile successfully, I must add compilation options --copt=-D_GLIBCXX_USE_CXX11_ABI=0
then this will result in coredump,when call the callback of sendAsync
BewareMyPower commentedon Jul 18, 2024
Oh, this issue can be reproduced. Assigned it to me first.
BewareMyPower commentedon Jul 18, 2024
It seems to be the libstdc++ incompatibility in GCC 4.8.
It should already be fixed by #428. Could you try the RPM packages in https://github.com/BewareMyPower/pulsar-client-cpp/actions/runs/9535942883
xiaoliu1019 commentedon Jul 19, 2024
Oh, I use the new pre-built libraries you gave https://github.com/BewareMyPower/pulsar-client-cpp/actions/runs/9535942883
When I run this program a core dump
Here are my compilation options:
BewareMyPower commentedon Jul 19, 2024
It's suspicious about the path
external/protobuf_archive/src/google/protobuf/message_lite.cc. The library was built via vcpkg and I cannot find any directory namedprotobuf_archive. Could you check the link paths of the dynamic library and the executable vialdd?BTW, could you try building in release mode?
xiaoliu1019 commentedon Jul 26, 2024
I can build in release mode,but the same error occurs when it runs
the ldd:
it looks relatively normal
BewareMyPower commentedon Jul 26, 2024
This binary links so many unrelated dynamic libraries. Most of them are from libcurl and OpenSSL.
Which library did you use? Currently, it would be better to link
libpulsar.soorlibpulsarwithdeps.a. It seems that you're usinglibpulsar.aand link to 3rd party dependencies from your system.Besides, what is your compiler toolchain? Generally, if you're building directly via
g++like the guide here, it should work.xiaoliu1019 commentedon Jul 26, 2024
I use libpulsar.so from https://github.com/BewareMyPower/pulsar-client-cpp/actions/runs/9535942883,
It doesn't work just when I switch the version of libpulsar.so from 3.5.1 to 3.6.0.
And , i can work directly via g++ but can not wort when i use bazel(I use the default compiler toolchain)
Could it be that the bazel external dependency and libpulsar.so use different versions of
external/protobuf_archive/src/google/protobuf/message_lite.cc?BewareMyPower commentedon Jul 27, 2024
Yeah it's right. So I believe it's something wrong with your Bazel project. I have experiences with Bazel a few years ago. Could you share a minimum reproducible Bazel project?
xiaoliu1019 commentedon Aug 1, 2024
why the lib/Commands.cc include <pulsar/Version.h> ,but There is no such file
I can't compile this source code
BewareMyPower commentedon Aug 1, 2024
This header was generated by CMake:
pulsar-client-cpp/CMakeLists.txt
Line 56 in 2a69168