Skip to content

Instantly share code, notes, and snippets.

@ScottTodd
Created June 13, 2024 20:17
Show Gist options
  • Save ScottTodd/453834cb5731598f6f8a15b27700d518 to your computer and use it in GitHub Desktop.
Save ScottTodd/453834cb5731598f6f8a15b27700d518 to your computer and use it in GitHub Desktop.
(.venv) scotttodd@scotttodd-cpu:~/scratch/tests$ LD_PRELOAD=/usr/lib/llvm-14/lib/clang/14.0.0/lib/linux/libclang_rt.asan-x86_64.so ASAN_OPTIONS=detect_leaks=0 ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-14/bin/llvm-symbolizer python /home/scotttodd/iree/compiler/bindings/python/test/api/output_buffer_reference_test.py
--- CompilerDriver.cpp: ireeCompilerOutputOpenMembuffer ---
--- CompilerDriver.cpp: ireeCompilerSourceWrapBuffer, length: 186, isNullTerminated: 0 ---
--- CompilerDriver.cpp: ireeCompilerInvocationOutputVMBytecode ---
--- CompilerDriver.cpp: ireeCompilerSourceDestroy start ---
--- CompilerDriver.cpp: ireeCompilerSourceDestroy finish ---
ctypes_dl.py :: Output::map_memory (edit)
--- CompilerDriver.cpp: ireeCompilerOutputMapMemory ---
map_memory on_finalize: <iree.compiler.api.ctypes_dl.Output object at 0x7f1a754d0f90>
compiler Output __del__
compiler Output close()
VMFB Length = 821 b'PK\x03\x04-\x00\x00\x00\x00\x00\x00\x00!\x00q\xe4\xd2\xa1\xff\xff\xff\xff\xff\xff\xff\xff\t\x00\x19\x00module.fb\xca\xfe\x01\x00\x00\x01\x00\x10\x00<\x02\x00\x00\x00\x00\x00\x00<\x02\x00\x00\x00\x00\x00\x00<\x02\x00\x00\x08\x00\x00\x00IREE\xfc\xfd\xff\xff$\x00\x00\x00\x01\x00\x00\x00\xd8\x00\x00\x00\xdc\x00\x00\x00\xe0\x00\x00\x00\xa0\x01\x00\x00\x00\x00\x0f\x00\xb0\x01\x00\x00(\x00\x00\x00\x1c\x00\x00\x00output_buffer_reference_test\x00\x00\x00\x00Z\xfe\xff\xff\x0c\x00\x00\x00\x10\x00\x00\x00\x1c\x00\x00\x00\x03\x00\x00\x00\x02\x02\x01\x00\x03\x00\x00\x00\\\x00\x00\x00H\x00\x00\x00<\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x98\xfe\xff\xff\x08\x00\x00\x00\x14\x00\x00\x00\n\x00\x00\x00simple_mul\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\t\x00\x00\x00\x01\x00\x00\x00\xb0\xfe\xff\xff\x01\x00\x00\x00\xc2\xfe\xff\xff\x1c\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\xd2\xfe\xff\xff\x0c\x00\x00\x00\x04\x00\x00\x00\x0e\x00\x00\x00\x0b\x00\x00\x00source.mlir\x00\x01\x00\x00\x00\x14\x00\x00\x00\x01\x00\x00\x00\x1c\x00\x00\x00\x01\x00\x00\x00,\x00\x00\x00\x10\xff\xff\xff\x04\x00\x00\x00\x03\x00\x00\x00f32\x00 \xff\xff\xff\x04\x00\x00\x00\n\x00\x00\x00simple_mul\x00\x00@\xff\xff\xff\x08\x00\x00\x00\x10\x00\x00\x00\x05\x00\x00\x000ff_f\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00`\xff\xff\xff\x08\x00\x00\x00 \x00\x00\x00\x14\x00\x00\x00iree.abi.declaration\x00\x00\x00\x00D\x00\x00\x00sync func @simple_mul(%input0: f32, %input1: f32) -> (%output0: f32)\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x01\x00\x02\x00\x00\x00\x10\x00\x00\x00y\xe0\x0c\x00\x00\x01\x00\x00\x00Z\x01\x00\x00\x00\x00\x00\x08\x00\x0c\x00\x04\x00\x08\x00\x06\x00\x08\x00\x04\x00\n\x00\x10\x00\x04\x00\x08\x00\x0c\x00\x08\x00\x08\x00\x00\x00\x04\x00$\x00(\x00\x04\x00\x00\x00\x08\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x10\x00\x14\x00\x00\x00\x00\x00\x00\x00\x18\x00\x1c\x00 \x00$\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00PK\x01\x02\x1e\x03-\x00\x00\x00\x00\x00\x00\x00!\x00q\xe4\xd2\xa1\xff\xff\xff\xff\xff\xff\xff\xff\t\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xffmodule.fb\x01\x00\x18\x00<\x02\x00\x00\x00\x00\x00\x00<\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00PK\x06\x06,\x00\x00\x00\x00\x00\x00\x00-\x00-\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00S\x00\x00\x00\x00\x00\x00\x00\x80\x02\x00\x00\x00\x00\x00\x00PK\x06\x07\x00\x00\x00\x00\xd3\x02\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00PK\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00S\x00\x00\x00\xff\xff\xff\xff\x00\x00'
ApiRefCounted constructed: '0x7f1a7631b9c8'
ApiRefCounted constructed: '0x7fffe717b840'
~ApiRefCounted delete: '0x7fffe717b840'
--- CompilerDriver.cpp: ireeCompilerOutputOpenMembuffer ---
--- CompilerDriver.cpp: ireeCompilerOutputWrite ---
ctypes_dl.py :: Output::map_memory (edit)
--- CompilerDriver.cpp: ireeCompilerOutputMapMemory ---
--- vm.cc: VmModule::WrapBuffer, close_buffer: 0 ---
--- vm.cc: created BufferState object
--- vm.cc: VmModule::WrapBuffer, iree_vm_bytecode_module_create start
--- vm.cc: VmModule::WrapBuffer, iree_vm_bytecode_module_create end (returned '0x7fffe717b5d0')
--- vm.cc: VmModule::StealFromRawPtr('0x7fffe717b5d0') ---
ApiRefCounted constructed: '0x7fffe717b740'
--- vm.cc: VmModule created: '0x7fffe717b740' ---
ApiRefCounted move: '0x7fffe717b740' --> '0x7f19d8fe6f58'
~ApiRefCounted delete: '0x7fffe717b740'
system_api.py load_vm_module --> load_vm_modules
system_api.py load_vm_modules
system_api.py: SystemContext::__init__
iree_vm_module_release ('vmvx') ref_count: 2 --> 1
ApiRefCounted constructed: '0x7fffe717afe0'
ApiRefCounted move: '0x7fffe717afe0' --> '0x7f19d97eb028'
~ApiRefCounted delete: '0x7fffe717afe0'
ApiRefCounted constructed: '0x7fffe717b1a0'
ApiRefCounted move: '0x7fffe717b1a0' --> '0x7f19d97eb048'
~ApiRefCounted delete: '0x7fffe717b1a0'
ApiRefCounted constructed: '0x7f19d97eb008'
ApiRefCounted constructed: '0x7fffe717b240'
~ApiRefCounted delete: '0x7fffe717b240'
ApiRefCounted constructed: '0x7fffe717b3a0'
ApiRefCounted move: '0x7fffe717b3a0' --> '0x7f19d8fe7018'
~ApiRefCounted delete: '0x7fffe717b3a0'
system_api.py: SystemContext::__init__ is *not* dynamic
ApiRefCounted constructed: '0x7f19d97eb088'
iree_vm_bytecode_module_lookup_function, name: '__init'
ApiRefCounted constructed: '0x7fffe717b2a0'
~ApiRefCounted delete: '0x7fffe717b2a0'
system_api.py: SystemContext::__init__ setup self._bound_modules
gc.collect() then `output = None`
gc: collecting generation 2...
gc: objects in each generation: 317 2111 23813
gc: objects in permanent generation: 0
gc: collectable <type 0x619000175290>
gc: collectable <tuple 0x7f1a52d143c0>
gc: collectable <type 0x619000175790>
gc: collectable <tuple 0x7f1a754c2740>
gc: collectable <type 0x619000175c90>
gc: collectable <tuple 0x7f1a754c33c0>
gc: collectable <type 0x619000176190>
gc: collectable <tuple 0x7f1a754ba740>
gc: collectable <type 0x61a00006cc90>
gc: collectable <tuple 0x7f1a754bb540>
gc: collectable <type 0x61a00006d290>
gc: collectable <tuple 0x7f1a52d17800>
gc: collectable <type 0x619000176690>
gc: collectable <tuple 0x7f1a754b11c0>
gc: collectable <timezone 0x7f1a52cfb970>
gc: collectable <dict 0x7f1a52d03f40>
gc: collectable <dict 0x7f1a52d15640>
gc: collectable <dict 0x7f1a52d15880>
gc: collectable <dict 0x7f1a754abe40>
gc: collectable <dict 0x7f1a52d17340>
gc: collectable <dict 0x7f1a52d177c0>
gc: collectable <tuple 0x7f1a52cfb640>
gc: collectable <dict 0x7f1a754bb780>
gc: collectable <tuple 0x7f1a52cfb670>
gc: collectable <timedelta 0x7f1a754bbb40>
gc: collectable <staticmethod 0x7f1a52cfb340>
gc: collectable <function 0x7f1a52d056c0>
gc: collectable <function 0x7f1a52d05760>
gc: collectable <function 0x7f1a52d05800>
gc: collectable <property 0x7f1a52cfcb80>
gc: collectable <property 0x7f1a52cfd760>
gc: collectable <property 0x7f1a52cfe520>
gc: collectable <function 0x7f1a52d05a80>
gc: collectable <function 0x7f1a52d05b20>
gc: collectable <function 0x7f1a52d05bc0>
gc: collectable <function 0x7f1a52d05c60>
gc: collectable <function 0x7f1a52d05d00>
gc: collectable <function 0x7f1a52d05da0>
gc: collectable <function 0x7f1a52d05e40>
gc: collectable <function 0x7f1a52d05ee0>
gc: collectable <function 0x7f1a52d05f80>
gc: collectable <function 0x7f1a52d06020>
gc: collectable <function 0x7f1a52d060c0>
gc: collectable <function 0x7f1a52d06160>
gc: collectable <function 0x7f1a52d06200>
gc: collectable <function 0x7f1a52d062a0>
gc: collectable <function 0x7f1a52d06340>
gc: collectable <function 0x7f1a52d063e0>
gc: collectable <function 0x7f1a52d06480>
gc: collectable <function 0x7f1a52d06520>
gc: collectable <function 0x7f1a52d065c0>
gc: collectable <function 0x7f1a52d06660>
gc: collectable <function 0x7f1a52d06700>
gc: collectable <function 0x7f1a52d067a0>
gc: collectable <member_descriptor 0x7f1a52d14480>
gc: collectable <member_descriptor 0x7f1a52d14540>
gc: collectable <member_descriptor 0x7f1a52d14600>
gc: collectable <member_descriptor 0x7f1a52d14640>
gc: collectable <timedelta 0x7f1a754d15c0>
gc: collectable <timedelta 0x7f1a754c3200>
gc: collectable <timedelta 0x7f1a754a8780>
gc: collectable <staticmethod 0x7f1a52cfb4c0>
gc: collectable <classmethod 0x7f1a52cfb3d0>
gc: collectable <classmethod 0x7f1a52cfb400>
gc: collectable <classmethod 0x7f1a52cfb430>
gc: collectable <classmethod 0x7f1a52cfb460>
gc: collectable <classmethod 0x7f1a52cfb490>
gc: collectable <function 0x7f1a52d06c00>
gc: collectable <function 0x7f1a52d06ca0>
gc: collectable <function 0x7f1a52d06d40>
gc: collectable <function 0x7f1a52d06de0>
gc: collectable <function 0x7f1a52d06e80>
gc: collectable <property 0x7f1a7548ad90>
gc: collectable <property 0x7f1a52cff8d0>
gc: collectable <property 0x7f1a52cff970>
gc: collectable <function 0x7f1a52d07100>
gc: collectable <function 0x7f1a52d071a0>
gc: collectable <function 0x7f1a52d07240>
gc: collectable <function 0x7f1a52d072e0>
gc: collectable <function 0x7f1a52d07380>
gc: collectable <function 0x7f1a52d07420>
gc: collectable <function 0x7f1a52d074c0>
gc: collectable <function 0x7f1a52d07560>
gc: collectable <function 0x7f1a52d07600>
gc: collectable <function 0x7f1a52d076a0>
gc: collectable <function 0x7f1a52d07740>
gc: collectable <function 0x7f1a52d077e0>
gc: collectable <function 0x7f1a52d07880>
gc: collectable <function 0x7f1a52d07920>
gc: collectable <function 0x7f1a52d079c0>
gc: collectable <function 0x7f1a52d07a60>
gc: collectable <function 0x7f1a52d07b00>
gc: collectable <function 0x7f1a52d07ba0>
gc: collectable <member_descriptor 0x7f1a52d156c0>
gc: collectable <member_descriptor 0x7f1a52d15740>
gc: collectable <member_descriptor 0x7f1a52d157c0>
gc: collectable <member_descriptor 0x7f1a52d15800>
gc: collectable <date 0x7f1a52d17240>
gc: collectable <date 0x7f1a754b3900>
gc: collectable <timedelta 0x7f1a754f9300>
gc: collectable <function 0x7f1a52d07c40>
gc: collectable <function 0x7f1a52d07ce0>
gc: collectable <function 0x7f1a52d07d80>
gc: collectable <function 0x7f1a52d07e20>
gc: collectable <function 0x7f1a52d07ec0>
gc: collectable <staticmethod 0x7f1a52cfb5b0>
gc: collectable <property 0x7f1a52d19ad0>
gc: collectable <property 0x7f1a52d19c10>
gc: collectable <property 0x7f1a52d19ee0>
gc: collectable <function 0x7f1a52d2c220>
gc: collectable <function 0x7f1a52d2c2c0>
gc: collectable <getset_descriptor 0x7f1a754c0480>
gc: collectable <staticmethod 0x7f1a52cfb610>
gc: collectable <property 0x7f1a52d19f80>
gc: collectable <property 0x7f1a52d19fd0>
gc: collectable <property 0x7f1a52d1a020>
gc: collectable <property 0x7f1a52d1a070>
gc: collectable <property 0x7f1a52d1a0c0>
gc: collectable <property 0x7f1a52d1a110>
gc: collectable <function 0x7f1a52d2c7c0>
gc: collectable <function 0x7f1a52d2c860>
gc: collectable <function 0x7f1a52d2c900>
gc: collectable <function 0x7f1a52d2c9a0>
gc: collectable <function 0x7f1a52d2ca40>
gc: collectable <function 0x7f1a52d2cae0>
gc: collectable <function 0x7f1a52d2cb80>
gc: collectable <function 0x7f1a52d2cc20>
gc: collectable <function 0x7f1a52d2ccc0>
gc: collectable <function 0x7f1a52d2cd60>
gc: collectable <classmethod 0x7f1a52cfb5e0>
gc: collectable <function 0x7f1a52d2cea0>
gc: collectable <function 0x7f1a52d2cf40>
gc: collectable <function 0x7f1a52d2cfe0>
gc: collectable <function 0x7f1a52d2d080>
gc: collectable <function 0x7f1a52d2d120>
gc: collectable <function 0x7f1a52d2d1c0>
gc: collectable <function 0x7f1a52d2d260>
gc: collectable <function 0x7f1a52d2d300>
gc: collectable <function 0x7f1a52d2d3a0>
gc: collectable <function 0x7f1a52d2d440>
gc: collectable <member_descriptor 0x7f1a52d17380>
gc: collectable <member_descriptor 0x7f1a52d173c0>
gc: collectable <member_descriptor 0x7f1a52d17400>
gc: collectable <member_descriptor 0x7f1a52d17440>
gc: collectable <member_descriptor 0x7f1a52d17480>
gc: collectable <member_descriptor 0x7f1a52d174c0>
gc: collectable <member_descriptor 0x7f1a52d17500>
gc: collectable <time 0x7f1a75492980>
gc: collectable <time 0x7f1a75492fe0>
gc: collectable <timedelta 0x7f1a754ede40>
gc: collectable <staticmethod 0x7f1a52cfb820>
gc: collectable <property 0x7f1a756bf470>
gc: collectable <property 0x7f1a52d1a200>
gc: collectable <property 0x7f1a52d1a250>
gc: collectable <property 0x7f1a52d1a2a0>
gc: collectable <property 0x7f1a52d1a2f0>
gc: collectable <property 0x7f1a52d1a340>
gc: collectable <classmethod 0x7f1a52cfb6a0>
gc: collectable <classmethod 0x7f1a52cfb6d0>
gc: collectable <classmethod 0x7f1a52cfb700>
gc: collectable <classmethod 0x7f1a52cfb730>
gc: collectable <classmethod 0x7f1a52cfb760>
gc: collectable <classmethod 0x7f1a52cfb790>
gc: collectable <classmethod 0x7f1a52cfb7c0>
gc: collectable <function 0x7f1a52d2dda0>
gc: collectable <function 0x7f1a52d2de40>
gc: collectable <function 0x7f1a52d2dee0>
gc: collectable <function 0x7f1a52d2df80>
gc: collectable <function 0x7f1a52d2e020>
gc: collectable <function 0x7f1a52d2e0c0>
gc: collectable <function 0x7f1a52d2e160>
gc: collectable <function 0x7f1a52d2e200>
gc: collectable <function 0x7f1a52d2e2a0>
gc: collectable <function 0x7f1a52d2e340>
gc: collectable <function 0x7f1a52d2e3e0>
gc: collectable <function 0x7f1a52d2e480>
gc: collectable <function 0x7f1a52d2e520>
gc: collectable <function 0x7f1a52d2e5c0>
gc: collectable <classmethod 0x7f1a52cfb7f0>
gc: collectable <function 0x7f1a52d2e700>
gc: collectable <function 0x7f1a52d2e7a0>
gc: collectable <function 0x7f1a52d2e840>
gc: collectable <function 0x7f1a52d2e8e0>
gc: collectable <function 0x7f1a52d2e980>
gc: collectable <function 0x7f1a52d2ea20>
gc: collectable <function 0x7f1a52d2eac0>
gc: collectable <function 0x7f1a52d2eb60>
gc: collectable <function 0x7f1a52d2ec00>
gc: collectable <function 0x7f1a52d2eca0>
gc: collectable <function 0x7f1a52d2ed40>
gc: collectable <function 0x7f1a52d2ede0>
gc: collectable <function 0x7f1a52d2ee80>
gc: collectable <function 0x7f1a52d2ef20>
gc: collectable <function 0x7f1a52d2efc0>
gc: collectable <function 0x7f1a52d2f060>
gc: collectable <member_descriptor 0x7f1a52d17840>
gc: collectable <member_descriptor 0x7f1a52d17880>
gc: collectable <member_descriptor 0x7f1a52d178c0>
gc: collectable <member_descriptor 0x7f1a52d17900>
gc: collectable <member_descriptor 0x7f1a52d17940>
gc: collectable <member_descriptor 0x7f1a52d17980>
gc: collectable <member_descriptor 0x7f1a52d179c0>
gc: collectable <member_descriptor 0x7f1a52d17a00>
gc: collectable <member_descriptor 0x7f1a52d17a40>
gc: collectable <member_descriptor 0x7f1a52d17a80>
gc: collectable <datetime 0x7f1a52d05580>
gc: collectable <datetime 0x7f1a52d2f1a0>
gc: collectable <timedelta 0x7f1a754dd200>
gc: collectable <staticmethod 0x7f1a52cfb910>
gc: collectable <classmethod 0x7f1a52cfb8b0>
gc: collectable <function 0x7f1a52d2f4c0>
gc: collectable <function 0x7f1a52d2f560>
gc: collectable <function 0x7f1a52d2f600>
gc: collectable <function 0x7f1a52d2f6a0>
gc: collectable <function 0x7f1a52d2f740>
gc: collectable <function 0x7f1a52d2f7e0>
gc: collectable <function 0x7f1a52d2f880>
gc: collectable <function 0x7f1a52d2f920>
gc: collectable <function 0x7f1a52d2f9c0>
gc: collectable <timedelta 0x7f1a754c68c0>
gc: collectable <timedelta 0x7f1a754d1d00>
gc: collectable <staticmethod 0x7f1a52cfb8e0>
gc: collectable <member_descriptor 0x7f1a754f9f00>
gc: collectable <member_descriptor 0x7f1a754b1b00>
gc: collectable <timezone 0x7f1a52cfb9a0>
gc: collectable <timezone 0x7f1a52cfb9d0>
gc: collectable <function 0x7f1a52d05620>
gc: collectable <function 0x7f1a52d058a0>
gc: collectable <function 0x7f1a52d05940>
gc: collectable <function 0x7f1a52d059e0>
gc: collectable <function 0x7f1a52d06840>
gc: collectable <function 0x7f1a52d068e0>
gc: collectable <dict 0x7f1a52d146c0>
gc: collectable <function 0x7f1a52d06980>
gc: collectable <dict 0x7f1a754fa300>
gc: collectable <function 0x7f1a52d06a20>
gc: collectable <dict 0x7f1a754c1a40>
gc: collectable <function 0x7f1a52d06ac0>
gc: collectable <dict 0x7f1a754c22c0>
gc: collectable <function 0x7f1a52d06b60>
gc: collectable <dict 0x7f1a754b9400>
gc: collectable <function 0x7f1a52d06f20>
gc: collectable <function 0x7f1a52d06fc0>
gc: collectable <function 0x7f1a52d07060>
gc: collectable <function 0x7f1a52d07f60>
gc: collectable <function 0x7f1a52d2c040>
gc: collectable <function 0x7f1a52d2c0e0>
gc: collectable <function 0x7f1a52d2c180>
gc: collectable <function 0x7f1a52d2c360>
gc: collectable <function 0x7f1a52d2c400>
gc: collectable <function 0x7f1a52d2c4a0>
gc: collectable <function 0x7f1a52d2c540>
gc: collectable <function 0x7f1a52d2c5e0>
gc: collectable <function 0x7f1a52d2c680>
gc: collectable <function 0x7f1a52d2c720>
gc: collectable <function 0x7f1a52d2ce00>
gc: collectable <dict 0x7f1a52d17280>
gc: collectable <function 0x7f1a52d2d4e0>
gc: collectable <function 0x7f1a52d2d580>
gc: collectable <function 0x7f1a52d2d620>
gc: collectable <function 0x7f1a52d2d6c0>
gc: collectable <function 0x7f1a52d2d760>
gc: collectable <function 0x7f1a52d2d800>
gc: collectable <function 0x7f1a52d2d8a0>
gc: collectable <function 0x7f1a52d2d940>
gc: collectable <dict 0x7f1a754f8f80>
gc: collectable <function 0x7f1a52d2d9e0>
gc: collectable <dict 0x7f1a754b3c80>
gc: collectable <function 0x7f1a52d2da80>
gc: collectable <dict 0x7f1a754a51c0>
gc: collectable <function 0x7f1a52d2db20>
gc: collectable <dict 0x7f1a754c6b00>
gc: collectable <function 0x7f1a52d2dbc0>
gc: collectable <dict 0x7f1a754a9e80>
gc: collectable <function 0x7f1a52d2dc60>
gc: collectable <dict 0x7f1a52d17600>
gc: collectable <function 0x7f1a52d2dd00>
gc: collectable <dict 0x7f1a52d17680>
gc: collectable <function 0x7f1a52d2e660>
gc: collectable <dict 0x7f1a52d17740>
gc: collectable <function 0x7f1a52d2f380>
gc: collectable <function 0x7f1a52d2f420>
gc: collectable <dict 0x7f1a52d17b00>
gc: collectable <function 0x7f1a52d2fa60>
gc: collectable <dict 0x7f1a754a6940>
gc: collectable <timedelta 0x7f1a754c72c0>
gc: collectable <timedelta 0x7f1a754f92c0>
gc: collectable <tuple 0x7f1a52cfb550>
gc: collectable <cell 0x7f1a52cfb520>
gc: collectable <tuple 0x7f1a763d1a80>
gc: collectable <_ctypes.PyCArrayType 0x619000297c90>
gc: collectable <tuple 0x7f1a75a19800>
gc: collectable <getset_descriptor 0x7f1a754c3000>
gc: collectable <getset_descriptor 0x7f1a754c05c0>
gc: collectable <StgDict 0x7f19d8f9fe00>
gc: done, 296 unreachable, 0 uncollectable, 0.0051s elapsed
gc.collect() then `mapped_memory = None`
gc: collecting generation 2...
gc: objects in each generation: 0 0 25672
gc: objects in permanent generation: 0
gc: done, 0 unreachable, 0 uncollectable, 0.0029s elapsed
gc.collect() then `module = None`
gc: collecting generation 2...
gc: objects in each generation: 0 0 25671
gc: objects in permanent generation: 0
gc: done, 0 unreachable, 0 uncollectable, 0.0029s elapsed
gc.collect() then `context = None`
gc: collecting generation 2...
gc: objects in each generation: 0 0 25671
gc: objects in permanent generation: 0
gc: done, 0 unreachable, 0 uncollectable, 0.0029s elapsed
gc: collecting generation 2...
gc: objects in each generation: 0 0 25671
gc: objects in permanent generation: 0
gc: done, 0 unreachable, 0 uncollectable, 0.0028s elapsed
run_mmap_free_before_context_test end
~ApiRefCounted delete: '0x7f1a7631b9c8'
map_memory on_finalize: <iree.compiler.api.ctypes_dl.Output object at 0x7f1a754d1a10>
compiler Output __del__
compiler Output close()
gc: collecting generation 2...
gc: objects in each generation: 0 0 25367
gc: objects in permanent generation: 0
gc: collectable <BoundModule 0x7f19d983c9d0>
gc: collectable <SystemContext 0x7f1a75486350>
gc: collectable <Config 0x7f19d99f2d90>
gc: collectable <BoundModules 0x7f19d8ff3b90>
gc: collectable <BoundModule 0x7f1a754b3a10>
~ApiRefCounted delete: '0x7f19d8fe6f58'
AddressSanitizer:DEADLYSIGNAL
=================================================================
==61610==ERROR: AddressSanitizer: SEGV on unknown address 0x7f1a526ce04c (pc 0x7f1a52a613f0 bp 0x7fffe717bbf0 sp 0x7fffe717bbf0 T0)
==61610==The signal is caused by a READ memory access.
#0 0x7f1a52a613f0 in __flatbuffers_soffset_read /home/scotttodd/iree/third_party/flatcc/include/flatcc/flatcc_endian.h:89:2
#1 0x7f1a52a613f0 in __flatbuffers_soffset_read_from_pe /home/scotttodd/iree/third_party/flatcc/include/flatcc/flatcc_endian.h:89:2
#2 0x7f1a52a613f0 in iree_vm_BytecodeModuleDef_name /home/scotttodd/iree-build/runtime/src/iree/schemas/bytecode_module_def_reader.h:686:1
#3 0x7f1a52a613f0 in iree_vm_bytecode_module_name /home/scotttodd/iree/runtime/src/iree/vm/bytecode/module.c:169:31
#4 0x7f1a52b6d017 in iree_vm_module_name /home/scotttodd/iree/runtime/src/iree/vm/module.c:231:10
#5 0x7f1a52b6d017 in iree_vm_module_release /home/scotttodd/iree/runtime/src/iree/vm/module.c:217:29
#6 0x7f1a52949ba6 in iree::python::ApiPtrAdapter<iree_vm_module_t>::Release(iree_vm_module_t*) /home/scotttodd/iree/runtime/bindings/python/./vm.h:54:46
#7 0x7f1a52949ba6 in iree::python::ApiRefCounted<iree::python::VmModule, iree_vm_module_t>::Release() /home/scotttodd/iree/runtime/bindings/python/./binding.h:116:7
#8 0x7f1a52949ba6 in iree::python::ApiRefCounted<iree::python::VmModule, iree_vm_module_t>::~ApiRefCounted() /home/scotttodd/iree/runtime/bindings/python/./binding.h:67:5
#9 0x7f1a529e79e5 in nanobind::detail::inst_dealloc(_object*) /home/scotttodd/iree/.venv/lib/python3.11/site-packages/nanobind/src/nb_type.cpp:229:13
#10 0x5af4ad (/usr/bin/python3.11+0x5af4ad) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#11 0x4d8278 (/usr/bin/python3.11+0x4d8278) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#12 0x62a28d (/usr/bin/python3.11+0x62a28d) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#13 0x654986 in PyGC_Collect (/usr/bin/python3.11+0x654986) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#14 0x646d40 in Py_FinalizeEx (/usr/bin/python3.11+0x646d40) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#15 0x64f5ea in Py_RunMain (/usr/bin/python3.11+0x64f5ea) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#16 0x61ee0c in Py_BytesMain (/usr/bin/python3.11+0x61ee0c) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
#17 0x7f1a76429d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
#18 0x7f1a76429e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
#19 0x61ec94 in _start (/usr/bin/python3.11+0x61ec94) (BuildId: ead95fcf0410547669743f801bc8c549efbdf7ce)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/scotttodd/iree/third_party/flatcc/include/flatcc/flatcc_endian.h:89:2 in __flatbuffers_soffset_read
==61610==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment