apache / apache/pulsar-client-cpp

[Bug] Close Consumer Cause Signal 11 SIGSEGV (Segmentation Fault)

Open
#453 1 comment 0 reactions 1 assignee Claimed by @BewareMyPower View on GitHub
Dominant language
C++
Stars
71
Forks
90
Avg merge
2h 33m
Merged PRs (30d)
3

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar.

### Version

CPP Client: 3.6.0
pulsar broker: 3.0.4

### Minimal reproduce step

1、use key_shared subscription and message listener to receive message
2、close consumer in another thread;

### What did you expect to see?

consumer close correctlly

### What did you see instead?

Signal ID:11 Pid:368
Time:1731059617
/opt/lib/libpulsar.so(_ZNK6pulsar7Message9getLengthEv+0x20)[0xffff30ce6f40]
/opt/lib/libpulsar.so(+0x2110f0)[0xffff30d030f0]
/opt/lib/libpulsar.so(+0x21547c)[0xffff30d0747c]
/opt/lib/libpulsar.so(+0x222ee4)[0xffff30d14ee4]
/opt/lib/libpulsar.so(_ZN5boost4asio6detail18completion_handlerISt8functionIFvvEENS0_10io_context19basic_executor_typeISaIvELm0EEEE11do_completeEPvPNS1_19scheduler_operationERKNS_6system10error_codeEm+0x78)[0xffff30ccb6a8]
/opt/lib/libpulsar.so(_ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE+0x37c)[0xffff30c3108c]
/opt/lib/libpulsar.so(+0x1cfae8)[0xffff30cc1ae8]
/opt/lib/libpulsar.so(+0x4d4f34)[0xffff30fc6f34]

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.