From c445fba8d8ebdb4f6d649cbcd477bcf9de571064 Mon Sep 17 00:00:00 2001 From: Oscar Blumberg Date: Sun, 17 May 2015 14:17:03 -0400 Subject: [PATCH] Missing gc root in interpreted global var assignment. Fix #11313. --- src/interpreter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interpreter.c b/src/interpreter.c index 287c2edc3d31c..2f4494fc7030c 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -233,8 +233,10 @@ static jl_value_t *eval(jl_value_t *e, jl_value_t **locals, size_t nl, size_t ng return rhs; } } + JL_GC_PUSH1(&rhs); jl_binding_t *b = jl_get_binding_wr(jl_current_module, (jl_sym_t*)sym); jl_checked_assignment(b, rhs); + JL_GC_POP(); return rhs; } else if (ex->head == new_sym) {