Skip to content

Systhreads bug #5295

@vicuna

Description

@vicuna

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions