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

Systhreads bug #5295

Closed
vicuna opened this issue Jun 17, 2011 · 4 comments
Closed

Systhreads bug #5295

vicuna opened this issue Jun 17, 2011 · 4 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 17, 2011

Original bug ID: 5295
Reporter: @db4
Status: closed (set by @xavierleroy on 2013-08-31T10:48:58Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.12.0
Fixed in version: 4.00.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: mehdi @ygrek @Chris00

Bug description

Steps to reproduce it:

/* thread 1 */
caml_startup();
caml_enter_blocking_section();

/* thread 2 */
caml_c_thread_register();

/* thread 1 */
caml_c_thread_unregister();

/* thread 2 */
caml_leave_blocking_section();

Now all_threads pointer is invalid and you'll see the crash. The fix is attached.

File attachments

@vicuna
Copy link
Author

vicuna commented Jun 24, 2011

Comment author: @db4

(Edit: delete non-existing issue reported by mistake)

@vicuna
Copy link
Author

vicuna commented Jul 26, 2011

Comment author: @db4

Sorry, but why do you think this bug should not be fixed?

@vicuna
Copy link
Author

vicuna commented Aug 1, 2011

Comment author: @xclerc

Sorry, I misinterpreted the first note as meaning "delete this bug report".

@vicuna
Copy link
Author

vicuna commented Apr 8, 2012

Comment author: @xavierleroy

Fixed as suggested in 4.00 release branch (commit 12324) and in trunk (commit 12325)

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

1 participant