-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorembeddingEmbedding Julia using the C APIEmbedding Julia using the C API
Description
Here is the unsafe access to the variable that causes segfaults:
Lines 726 to 727 in d6294ba
if (jl_options.nthreads != 0) { // --threads specified | |
nthreads = jl_options.nthreads_per_pool[0]; |
By default jl_options
is initalized with zeros, and if only nthreads
is set this will cause the segfault.
This is not very convenient for the end user, also my use case is setting nthreads = 1
because I am using handle_signals = 0
which caused me segfaults in multi-threaded environment for a different reason (GC behavior).
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorembeddingEmbedding Julia using the C APIEmbedding Julia using the C API