Skip to content

Conversation

leecoder
Copy link

Sometimes, it has crashed in my tc after #402.

*** glibc detected *** ./TestHttp: double free or corruption (out): 0x00007fe760001f70 ***

It's maybe a race condition.
So, I've rewritten by async thr wait in basic_client_facade dtor.
It perfectly works as following http_temp_client_get_test.

@@ -37,6 +37,10 @@ struct basic_client_facade {
init_pimpl(options);
}

virtual ~basic_client_facade() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to be virtual?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it's not needed in this case. It's just my habit. I'll remove it.

@deanberris
Copy link
Member

LGTM -- thanks @leecoder, I'm merging now.

deanberris added a commit that referenced this pull request Jun 25, 2014
Another fix for #358: async thr wait in basic_client_facade dtor
@deanberris deanberris merged commit 770858b into cpp-netlib:0.11-devel Jun 25, 2014
leecoder pushed a commit to leecoder/cpp-netlib that referenced this pull request Apr 14, 2015
Another fix for cpp-netlib#358: async thr wait in basic_client_facade dtor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants