You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "liyinxin (via GitHub)" <gi...@apache.org> on 2025/02/17 13:28:01 UTC
[I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
liyinxin opened a new issue, #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476
(gdb) bt
#0 pop (this=0x7f2b58df7900) at pulsar-client-3.4/lib/ObjectPool.h:74
#1 allocate (this=0x7f2b58df7900) at pulsar-client-3.4/lib/ObjectPool.h:134
#2 allocate (n=1, this=<synthetic pointer>) at pulsar-client-3.4/lib/ObjectPool.h:167
#3 allocate (__a=<synthetic pointer>, __n=1) at /usr/local/gcc-4.9.3/include/c++/4.9.3/bits/alloc_traits.h:357
#4 __shared_count<pulsar::MessageImpl, pulsar::Allocator<pulsar::MessageImpl, 100000> > (__a=..., this=0x7f2b3e589ea8)
at /usr/local/gcc-4.9.3/include/c++/4.9.3/bits/shared_ptr_base.h:616
#5 __shared_ptr<pulsar::Allocator<pulsar::MessageImpl, 100000> > (__a=..., __tag=..., this=0x7f2b3e589ea0,
this@entry=<error reading variable: Cannot access memory at address 0x7f2b3e589e98>)
at /usr/local/gcc-4.9.3/include/c++/4.9.3/bits/shared_ptr_base.h:1090
#6 shared_ptr<pulsar::Allocator<pulsar::MessageImpl, 100000> > (__a=..., __tag=..., this=0x7f2b3e589ea0)
at /usr/local/gcc-4.9.3/include/c++/4.9.3/bits/shared_ptr.h:316
#7 allocate_shared<pulsar::MessageImpl, pulsar::Allocator<pulsar::MessageImpl, 100000> > (__a=...)
at /usr/local/gcc-4.9.3/include/c++/4.9.3/bits/shared_ptr.h:588
#8 create (this=0x2622ba0 <pulsar::messagePool>) at pulsar-client-3.4/lib/ObjectPool.h:212
#9 pulsar::MessageBuilder::createMessageImpl () at pulsar-client-3.4/lib/MessageBuilder.cc:42
(gdb) print head_
Cannot access memory at address 0x7f2b58df7900
(gdb) print result
$1 = (void *) 0x1
void* pop() {
if (!head_) {
// size = 0
std::lock_guard<std::mutex> lock(mutex_);
if (!globalPool_) {
return NULL;
}
GlobalPool* poolEntry = globalPool_;
head_ = globalPool_->node_;
pushSize_ += globalPool_->nodeCount_;
globalNodeCount_ -= globalPool_->nodeCount_;
globalPool_ = globalPool_->next_;
delete poolEntry;
}
void* result = head_;
if (result) {
head_ = head_->next;
pushSize_--;
}
return result;
}
--
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: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
Posted by "liyinxin (via GitHub)" <gi...@apache.org>.
liyinxin commented on issue #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476#issuecomment-2673208504
Yes, It can also reproduce in with latest release of pulsar-client-cpp which is 3.7.0 @lhotari
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower commented on issue #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476#issuecomment-2673349387
Did you use RPM packages? Could you try a higher version of GCC and see if this would happen again?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari commented on issue #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476#issuecomment-2663500769
@liyinxin Thanks for the report. Can you also reproduce with latest release of pulsar-client-cpp which is 3.7.0 ?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
Posted by "liyinxin (via GitHub)" <gi...@apache.org>.
liyinxin commented on issue #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476#issuecomment-2665164305
> [@liyinxin](https://github.com/liyinxin) Thanks for the report. Can you also reproduce with latest release of pulsar-client-cpp which is 3.7.0 ?
I Use the pulsar-client-cpp 3.7.0 today, it will wait some time to check it can reproduce the problem
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault [pulsar-client-cpp]
Posted by "liyinxin (via GitHub)" <gi...@apache.org>.
liyinxin commented on issue #476:
URL: https://github.com/apache/pulsar-client-cpp/issues/476#issuecomment-2673207459
> [@liyinxin](https://github.com/liyinxin) Thanks for the report. Can you also reproduce with latest release of pulsar-client-cpp which is 3.7.0 ?
No, it can also occurs
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org