Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix potential ``KeyError`` when handling object sections during JIT building
process.
6 changes: 5 additions & 1 deletion Tools/jit/_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,11 @@ def _handle_section(
if section_type == "SHT_RELA":
assert "SHF_INFO_LINK" in flags, flags
assert not section["Symbols"]
value, base = group.symbols[section["Info"]]
maybe_symbol = group.symbols.get(section["Info"])
if maybe_symbol is None:
# These are relocations for a section we're not emitting. Skip:
return
value, base = maybe_symbol
if value is _stencils.HoleValue.CODE:
stencil = group.code
else:
Expand Down
1 change: 1 addition & 0 deletions Tools/jit/ignore-tests-emulated-linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test.test_pathlib.PosixPathTest.test_is_mount_root
test.test_pathlib.test_pathlib.PathSubclassTest.test_is_mount_root
test.test_pathlib.test_pathlib.PathTest.test_is_mount_root
test.test_pathlib.test_pathlib.PosixPathTest.test_is_mount_root
test.test_posix.PosixTester.test_fexecve
test.test_posix.TestPosixSpawn.test_close_file
test.test_posix.TestPosixSpawnP.test_close_file
test.test_posixpath.PosixPathTest.test_ismount
Expand Down
Loading