apache / apache/pulsar-client-cpp
[Bug] getPartitionsForTopic Cause Signal 11 SIGSEGV (Segmentation Fault)
- Lingua principale
- C++
- Stelle
- 71
- Fork
- 90
- Merge medio
- 2h 33m
- PR unite (30g)
- 3
Descrizione
### 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!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il crash intermittente segnalato con il client C++ 3.6.0 e il broker 3.0.4, usando Client::getPartitionsForTopic e getPartitionsForTopicAsync come punti di ingresso. Esamina il problema nelle posizioni dello stack trace e confronta chiamate ripetute con topic diversi. Il lavoro è completato quando la ricerca delle partizioni restituisce costantemente il risultato corretto senza SIGSEGV.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100