apache / apache/pulsar-client-cpp
[Bug] getPartitionsForTopic Cause Signal 11 SIGSEGV (Segmentation Fault)
- Langage dominant
- C++
- Étoiles
- 71
- Forks
- 90
- Merge moyen
- 2 h 33 min
- PR mergées (30 j)
- 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、create pulsar client
2、invoke client getPartitionsForTopic to get partition
### What did you expect to see?
can get partition correctlly
### What did you see instead?
Signal ID:11 Pid:920
Time:1731978465
/opt/lib/libpulsar.so(_ZN6pulsar6Client26getPartitionsForTopicAsyncERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt8functionIFvNS_6ResultERKSt6vectorIS6_SaIS6_EEEE+0x10)[0xffff17ac16d8]
/opt/lib/libpulsar.so(_ZN6pulsar6Client21getPartitionsForTopicERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorIS6_SaIS6_EE+0xd8)[0xffff17ac5df0]
### Anything else?
This issue does not occur every time; it happens only with a certain probability.
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le crash intermittent signalé avec le client C++ 3.6.0 et le broker 3.0.4, en utilisant Client::getPartitionsForTopic et getPartitionsForTopicAsync comme points d’entrée. Examinez l’échec aux emplacements indiqués dans la stack trace et comparez des appels répétés avec des topics différents. La tâche est terminée lorsque la recherche de partitions renvoie systématiquement le résultat correct sans SIGSEGV.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100