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

Segfault with weak pointers #4442

Closed
vicuna opened this issue Nov 8, 2007 · 2 comments
Closed

Segfault with weak pointers #4442

vicuna opened this issue Nov 8, 2007 · 2 comments
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 8, 2007

Original bug ID: 4442
Reporter: adamc
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2007-11-20T18:54:39Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.10+dev
Fixed in version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: adamc ertai @alainfrisch

Bug description

Starting from a large program with many dependencies that began segfaulting unpredictably shortly after we added use of weak pointers, I have come up with a one-page example that reliably triggers a segmentation fault (or other nasty fault) with 3.10.1+dev0 on both ia32 and amd64 Linux. Making small changes like manual inlining of functions changes whether or not the crash occurs, so I think it is almost certain that memory corruption is occurring.

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 20, 2007

Comment author: @damiendoligez

The bug happens when you have a weak array pointing to another weak array.
I will fix it shortly.

@vicuna
Copy link
Author

vicuna commented Nov 20, 2007

Comment author: @damiendoligez

fixed in 3.09.4+dev4 and 3.10.1+dev2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants