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

cherry-pick from upstream jemalloc to fix profiling bug #9

Merged
merged 1 commit into from Aug 5, 2021

Conversation

umanwizard
Copy link

This depends on tikv/jemalloc#2 , which is a cherry-pick of jemalloc/jemalloc#1604 .

See jemalloc/jemalloc#1605 for details of the bug that this fixes; basically, it makes profiling/sampling fail to work under some conditions. We hit this in practice at Materialize when attempting to switch to tikv/jemallocator.

@umanwizard
Copy link
Author

@BusyJay , @sticnarf , this is ready for a look now that tikv/jemalloc#2 has landed.

@BusyJay
Copy link
Member

BusyJay commented Jul 28, 2021

Travis CI is out of quota, I may need some time to migrate to github actions.

@@ -862,6 +863,7 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
Copy link
Member

Choose a reason for hiding this comment

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

Why the change?

Copy link
Author

Choose a reason for hiding this comment

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

I updated the configure file (cd jemalloc-sys/jemalloc && autoconf && cp configure ../configure/configure) as a matter of habit when modifying autoconf-based sub modules. We can remove it if you prefer.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's related to the version of autoconf. Unless it can fail compilation, better leave them untouch.

@BusyJay
Copy link
Member

BusyJay commented Aug 4, 2021

New CI can be triggered once it's merged master.

Signed-off-by: Brennan Vincent <brennan@materialize.com>
@umanwizard
Copy link
Author

I have reverted the configure change and rebased on latest master.

Copy link
Member

@BusyJay BusyJay left a comment

Choose a reason for hiding this comment

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

Thanks!

@BusyJay BusyJay merged commit ac17ea8 into tikv:master Aug 5, 2021
@umanwizard
Copy link
Author

Unfortunately, this broke tikv/jemallocator, since tikv/jemalloc#2 landed with a different commit number. Sending a new PR now.

@umanwizard
Copy link
Author

Fixed in #12

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.

None yet

2 participants