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 memory leak reading from python ByteBuffer. #6711

Merged
merged 1 commit into from
Jun 3, 2016
Merged

Fix memory leak reading from python ByteBuffer. #6711

merged 1 commit into from
Jun 3, 2016

Conversation

alamaison
Copy link
Contributor

Fixes #5913.

grpc_byte_buffer_reader_next is documented as 'Caller is responsible
for calling gpr_slice_unref on the result', but that wasn't happening.

@grpc-kokoro
Copy link

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

@zj8487
Copy link

zj8487 commented May 25, 2016

@alamaison
dose this bug lead to client memory leak also?

@alamaison
Copy link
Contributor Author

@zj8487 I believe so. I only plotted the server memory usage, but as I was doing so, I saw the client memory usage in htop climb by a similiar amount

@zj8487
Copy link

zj8487 commented May 25, 2016

@alamaison
thanks a lot.

@nathanielmanistaatgoogle
Copy link
Member

This is okay to test.

@nathanielmanistaatgoogle
Copy link
Member

Looks great to me; @soltanmm will also review.

Thanks!

@zj8487
Copy link

zj8487 commented May 25, 2016

@nathanielmanistaatgoogle
when will the new version be released?

@alamaison
Copy link
Contributor Author

The failures in 'Basic tests' look like flakes:

  • Agent went offline during the build
  • Failed to connect to github.com port 443: Operation timed out

@soltanmm
Copy link
Contributor

@alamaison Yow - thanks for the catch! Looks good to me too. Will mark ready to merge on interop test success.

@zj8487 I think we're planning on releasing a 0.14.2 soon. @jtattermusch?

@alamaison
Copy link
Contributor Author

@soltanmm Are the interop tests stuck?

@soltanmm
Copy link
Contributor

@alamaison Jenkins is being a silly one...

@soltanmm
Copy link
Contributor

@jtattermusch Got any tips on how to make Jenkins re-run the interop tests on this PR?

@alamaison
Copy link
Contributor Author

@jtattermusch @soltanmm bump

@soltanmm
Copy link
Contributor

soltanmm commented Jun 1, 2016

@alamaison I hate to ask you to do this, but, would you mind re-opening the pull request? Jenkins is being inordinately stubborn in spite of being kicked a few times. Else, we can just PR off of your branch again.

Fixes #5913.

`grpc_byte_buffer_reader_next` is documented as 'Caller is responsible
for calling gpr_slice_unref on the result', but that wasn't happening.

This commit adds the missing call to `gpr_slice_unref`.
@alamaison
Copy link
Contributor Author

@soltanmm No problem. I've pushed again. Jenkins is running.

@alamaison
Copy link
Contributor Author

@soltanmm A different set of tests failed this time. Timeouts in the C/C++ tests so definitely not caused by this PR. Are you able to merge as-is or do you want me to push again?

@soltanmm
Copy link
Contributor

soltanmm commented Jun 2, 2016

lgtm; marking ready to merge (test failures are unrelated)

@soltanmm
Copy link
Contributor

soltanmm commented Jun 2, 2016

Thanks @alamaison!

@jtattermusch jtattermusch merged commit addf007 into grpc:master Jun 3, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019
@lock lock bot unassigned soltanmm Jan 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants