-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 dmht for glibc caused by wrong tcache offset and definition #16247
Conversation
Hmmm. both |
@x0urc3 different version of glibc? |
Might explain it. How could I find the glibc version in Travis? |
It's 2.23 in Travis (Ubuntu Xenial) it seems: https://repology.org/project/glibc/versions |
One more thing is the expected output does not follow the sequence of command
- |
This caused issue because dbg.glibc.tcache should only be enabled for glibc >2.26 |
can you fix this? |
Yes. I will create another PR for glibc version detection to set dbg.glibc.tcache |
resolve the conflicts |
still conflicting |
1 similar comment
still conflicting |
Forgot to rebase |
Failed one of the added test. I'm recreating a ubuntu xenial image to test locally |
|
Trusty?
… On 20 Mar 2020, at 15:38, Khairulmizam Samsudin ***@***.***> wrote:
Could not reproduce using docker debian/xenial:latest image. Any suggestion?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Xenial is the default Travis configuration, and we do not specify the distro in YAML, so should be it. |
Ideally, it should be tested with a sequence of |
ping |
I'm creating a test as suggested by @XVilka. May take some time |
keep us updated |
red |
glibc struct for heap management requires around 3kB. Should I just add the memory dump to radare2-testbins rather than using |
Yes, you can add it testbins of course
…On Wed, Mar 25, 2020, 04:25 Khairulmizam Samsudin ***@***.***> wrote:
Ideally, it should be tested with a sequence of om and wx commands, for
different glibc versions. Relying on the runtime for testing is wrong.
glibc struct for heap requires around 3kB. Should I just add the memory
dump to radare2-testbins rather than using wx?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABRT7MPXNCIJXW4YPMTBETRJEJMTANCNFSM4LOJUTNQ>
.
|
@x0urc3 can you add tests with dumps with and without tcache? And for the binary - it's probably better to include the glibc version in the name. |
|
@x0urc3 merged, please update. |
Well done - one missing thing left:
|
I don't understand what you mean here. Which value?
Can we do this in a different PR? |
@x0urc3 the value of
Yes, just please add a #ifdef for the GLIBC version meanwhile for the |
|
Your checklist for this pull request
Detailed description
Related to PR #16239,
dmht
does not show freed tcache chunk due to wrong tcache size and definition....
Test plan