def METHOD_NAME(env, test_name):
    with get_dut(env, test_name, 'test_ub') as dut:
        dut.expect(re.compile(r'Undefined behavior of type out_of_bounds'))
        dut.expect_backtrace()
        dut.expect_elf_sha256()
        dut.expect_none('Guru Meditation', 'Re-entered core dump')
        if ('gdbstub' in test_name):
            test_common(dut, test_name, expected_backtrace=[
                # Backtrace interrupted when abort is called, IDF-842
                'panic_abort', 'esp_system_abort'
            ])
        else:
            test_common(dut, test_name)