Skip to content

Fix segfault in mark_locations_array #10

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

Merged
merged 2 commits into from
Nov 24, 2012

Conversation

andrewmains12
Copy link
Collaborator

This commit fixes a segfault in mark_locations_array.

This segfault was a result of treating one of the pthread's stacks as the stack of the thread starting garbage collection. When mark_current_machine_context saves the current machine state into a jump buffer, it was using the wrong stack, causing mark_locations_array to be called with weird arguments which eventually led to a segfault.

Perhaps predictably, shit still does not work, but garbage collection will now complete a single pass on gc-test/simple.rb.

@maxdjohnson
Copy link
Collaborator

Bravo!

maxdjohnson added a commit that referenced this pull request Nov 24, 2012
Fix segfault in mark_locations_array
@maxdjohnson maxdjohnson merged commit 959f529 into kevints:devl Nov 24, 2012
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