test_pypy_remote_debug:test_disable_remote_debug
pid = 856933, symbolname = b'pypysig_counter'
def compute_remote_addr(pid='self', symbolname=b'pypysig_counter'):
file, base_addr = _find_file_and_base_addr(pid)
origfile = file
with open(file, 'rb') as f:
phdr = elf_read_first_load_section(f)
assert phdr.offset == 0
try:
with open(file, 'rb') as f:
> symbol_value = elf_find_symbol(f, symbolname)
../build/lib_pypy/_pypy_remote_debug.py:442:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
file_obj = <_io.BufferedReader name='/buildbot/slave/pypy-c-jit-linux-x86-32/build/pypy/goal/pypy3.12-c'>
symbol = b'pypysig_counter'
def elf_find_symbol(file_obj, symbol):
for sym in _iter_symbol_and_dynsym(file_obj):
if sym.name_as_bytes == symbol:
if sym.value:
return sym.value
if sym.info:
return sym.info
> raise ValueError('not found')
E ValueError: not found
../build/lib_pypy/_pypy_remote_debug.py:202: ValueError
During handling of the above exception, another exception occurred:
tmpdir = local('/tmp/pytest-of-buildworker/pytest-19/test_disable_remote_debug0')
def wrapper(tmpdir):
try:
> return func(tmpdir)
../build/extra_tests/test_pypy_remote_debug.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../build/extra_tests/test_pypy_remote_debug.py:183: in test_disable_remote_debug
func(pid, str(debug_script).encode('utf-8'))
../build/lib_pypy/_pypy_remote_debug.py:458: in start_debugger
addr = compute_remote_addr(pid)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pid = 856933, symbolname = b'pypysig_counter'
def compute_remote_addr(pid='self', symbolname=b'pypysig_counter'):
file, base_addr = _find_file_and_base_addr(pid)
origfile = file
with open(file, 'rb') as f:
phdr = elf_read_first_load_section(f)
assert phdr.offset == 0
try:
with open(file, 'rb') as f:
symbol_value = elf_find_symbol(f, symbolname)
except ValueError:
file = _check_elf_debuglink(file)
if file == origfile:
> raise ValueError('symbol not found')
E ValueError: symbol not found
../build/lib_pypy/_pypy_remote_debug.py:446: ValueError
builder: pypy-c-jit-linux-x86-32 build #8403+
test: test_pypy_remote_debug:test_disable_remote_debug