apache / apache/pulsar-client-cpp
[Bug] subscribeAsync and createProducerAsync return UnknownErrorCode when built using devtoolset-11
- 主要言語
- C++
- スター
- 71
- フォーク
- 90
- 平均マージ
- 2時間 33分
- マージ済み PR(30日)
- 3
説明
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar.
### Version
OS: CentOS 7
Pulsar C++ client: 3.1.2
### Minimal reproduce step
1. Install gcc 11.
```
yum install devtoolset-11
. /opt/rh/devtoolset-11/enable
```
2. Install the same dependencies as this Dockerfile:
https://github.com/apache/pulsar-client-cpp/blob/v3.1.2/pkg/rpm/Dockerfile
3. Build rpm using this spec file:
https://github.com/apache/pulsar-client-cpp/blob/v3.1.2/pkg/rpm/SPECS/pulsar-client.spec
4. Install pulsar client library.
```
rpm -ivh apache-pulsar-client*.rpm
```
### What did you expect to see?
#subscribeAsync and #createProducerAsync return ResultOk.
### What did you see instead?
#subscribeAsync and #createProducerAsync return UnknownErrorCode.
When I tried to output the value of return value, it returned unexpected values like 1915086316.
### Anything else?
When built using gcc-toolset-11 on Rocky Linux 8, #subscribeAsync and #createProducerAsync return ResultOk.
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
コントリビューションガイド
調査の方向性
pkg/rpm/Dockerfile と pkg/rpm/SPECS/pulsar-client.spec を使用して、devtoolset-11 を用いた CentOS 7 上で問題を再現します。subscribeAsync と createProducerAsync を追跡し、返された値が UnknownErrorCode になる理由を特定したうえで、報告されたビルドで両方が有効な値とともに ResultOk を返すことを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, linux
- 領域
- api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100