Skip to content

Commit

Permalink
Fix crash during vm shutdown in unstable when jit is disabled.
Browse files Browse the repository at this point in the history
vm_create was not initializing vm->tsg correctly,
leading to tsg_unbind_cpu using a NULL tsg variable.
  • Loading branch information
flaviojs committed Dec 17, 2024
1 parent 96bdc0b commit 3995915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unstable/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ static vm_instance_t *vm_create(char *name,int instance_id,
vm->timer_irq_check_itv = VM_TIMER_IRQ_CHECK_ITV;
vm->log_file_enabled = TRUE;
vm->rommon_vars.filename = vm_build_filename(vm,"rommon_vars");
vm->tsg = -1;

if (!vm->rommon_vars.filename)
goto err_rommon;
Expand Down

0 comments on commit 3995915

Please sign in to comment.