Fix segmentation fault when use token auth#407
Conversation
(cherry picked from commit b79ead0)
|
I randomly get a segmentation fault on startup when using 1.13.0 with promise-based tokenSupplier. Is this related? |
@klaatu01 I think so. Could you help verify if the issue still exists in version v1.13.1? You can use the following cmd to install it: |
|
@shibd what is the testing / release process and timing for an update to this in npm? We had this issue crop up in on of our services under active development and we have had to lock our pulsar-client version at 1.12.0 until a fix is available. I tried testing the RC.1 package locally but have not been successful getting that package installed in a Docker image for a full test of the situation we ran into. |
|
@doug8679 The v1.13.1 has been released, you can try it. |
Motivation
#395 Introduce a regression on
node:20-alpineenv. if use a token to connect to pulsar, will get a segmentation fault when client closes.Happend here:
pulsar-client-node/src/Authentication.cc
Lines 181 to 183 in c52bd1b
Modifications
tokenSuppliertonullptr, as uninitialized pointers in C++ have undefined default values.Verifying this change
Documentation
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)