Skip to content

Commit 141f623

Browse files
committed
sync chunks?
1 parent f4f1020 commit 141f623

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Modules/_remote_debugging/frames.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,14 @@ collect_frames_with_cache(
580580
return full_hit < 0 ? -1 : 0;
581581
}
582582

583+
assert(ctx->chunks != NULL);
584+
585+
if (ctx->chunks->count == 0) {
586+
if (copy_stack_chunks(unwinder, ctx->thread_state_addr, ctx->chunks) < 0) {
587+
PyErr_Clear();
588+
}
589+
}
590+
583591
Py_ssize_t frames_before = PyList_GET_SIZE(ctx->frame_info);
584592

585593
if (process_frame_chain(unwinder, ctx) < 0) {

0 commit comments

Comments
 (0)