Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(producer) crash in DestroyProducer shutdown. #213

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

wei56
Copy link
Contributor

@wei56 wei56 commented Jan 6, 2020

What is the purpose of the change

[ISSUE #212 ]fix one bug in DestroyProducer which can cause the program core dump

Brief changelog

delete reinterpret_cast<DefaultMQProducer*>(pProducer);
to
delete reinterpret_cast<DefaultProducer*>(pProducer);

Verifying this change

run producer in example
image

@ShannonDing ShannonDing added the bug Something isn't working label Jan 6, 2020
@ShannonDing ShannonDing added this to the 1.2.5 milestone Jan 6, 2020
@ShannonDing ShannonDing changed the title fix one bug in DestroyProducer fix(producer) crash in DestroyProducer shutdown. Jan 6, 2020
@ShannonDing
Copy link
Member

link #213

@ShannonDing ShannonDing merged commit ad8fdb1 into apache:master Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants