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

update CockroachDB #4

Closed
wants to merge 4 commits into from
Closed

update CockroachDB #4

wants to merge 4 commits into from

Conversation

davepacheco
Copy link
Contributor

I started this branch because I'm trying to help debug cockroachdb/cockroach#83706. I'm not exactly sure where we want to end up, but for now, I'm working towards a stdmalloc build of 22.1.3. I'm currently trying with Go 1.18 but I don't know if that'll work.

How we got here:

Commit 2267c49 causes us to build with stdmalloc, which causes CockroachDB to use malloc(3c) and friends rather than a statically-linked jemalloc. I did this to be able to LD_PRELOAD libumem and have it use that to identify corruption.

Then it was suggested to use Go 1.18. I began this in 3c24b6c. I created efd1bc2 to supply buildvcs=false during the build because Go 1.18 attempts to use git to embed version information into the binary, but the way garbage-compactor works, this fails. (We create a git wrapper that immediately exits so that it doesn't erroneously find the garbage-compactor repo. But exiting unconditionally just causes go build to fail -- it doesn't treat this as "repo not found".) This change is probably not right or ideal, but I was just trying to get a working build.

I then found that this approach doesn't seem to work on this CockroachDB version.

I thought I'd try the latest Cockroach, and started this with commit dce1b62. Cockroach don't seem to publish the source binaries to the same place any more so I had to update the URL. I immediately ran into a problem with the patches. That's the current state of this.

CC @jclulow

@davepacheco
Copy link
Contributor Author

This is moved over to #5.

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

1 participant