Skip to contentSkip to conversation

tests: ReverseDebugging_AArch64.test_aarch64_virt -> InvalidPacketError

DISCUSSION Philippe Mathieu-Daudé 2 participants 4 messages Jun 25, 2021 – Jun 28, 2021

lore
Share & tools
lore
#0 lore raw

Hi Pavel,

FYI as of commit 050cee12315 ("Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-250621-1' into staging") the ReverseDebugging_AArch64 test is failing:

(28/37)
tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt:
ERROR (0.96 s)

INFO | recorded log with 1690570+ steps
INFO | replaying the execution...
INFO | connecting to gdbstub
INFO | stepping forward
INFO | saving position 40000000
ERROR|
ERROR| Reproduced traceback from:

lib/python3.8/site-packages/avocado/core/test.py:770 ERROR| Traceback (most recent call last):
ERROR| File "acceptance/reverse_debugging.py", line 206, in
test_aarch64_virt
ERROR| self.reverse_debugging(
ERROR| File "acceptance/reverse_debugging.py", line 140, in
reverse_debugging

ERROR|     pc = self.get_pc(g)
ERROR|   File "acceptance/reverse_debugging.py", line 77, in get_pc
ERROR|     return self.get_reg(g, self.REG_PC)
ERROR|   File "acceptance/reverse_debugging.py", line 72, in get_reg
ERROR|     return self.get_reg_le(g, reg)
ERROR|   File "acceptance/reverse_debugging.py", line 58, in get_reg_le
ERROR|     res = g.cmd(b'p%x' % reg)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line

783, in cmd
ERROR| response_payload = self.decode(result)
ERROR| File "lib/python3.8/site-packages/avocado/utils/gdb.py", line
738, in decode

ERROR|     raise InvalidPacketError
ERROR| avocado.utils.gdb.InvalidPacketError
ERROR|
DEBUG| Local variables:
DEBUG|  -> self <class 'reverse_debugging.ReverseDebugging_AArch64'>:

28-tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt DEBUG| -> kernel_url <class 'str'>:
https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz
DEBUG| -> kernel_hash <class 'str'>:
8c73e469fc6ea06a58dc83a628fc695b693b8493
DEBUG| -> kernel_path <class 'str'>:
avocado-cache/by_location/a00ac4ae676ef0322126abd2f7d38f50cc9cbc95/vmlinuz

DEBUG| >>> {'execute': 'quit'}
ERROR|
ERROR| Reproduced traceback from:
lib/python3.8/site-packages/avocado/core/test.py:796
ERROR| Traceback (most recent call last):
ERROR|   File "python/qemu/machine/machine.py", line 489, in _do_shutdown
ERROR|     self._soft_shutdown(timeout, has_quit)
ERROR|   File "python/qemu/machine/machine.py", line 469, in _soft_shutdown
ERROR|     self._qmp.cmd('quit')
ERROR|   File "python/qemu/qmp/__init__.py", line 325, in cmd
ERROR|     return self.cmd_obj(qmp_cmd)
ERROR|   File "python/qemu/qmp/__init__.py", line 303, in cmd_obj
ERROR|     self.__sock.sendall(json.dumps(qmp_cmd).encode('utf-8'))
ERROR| BrokenPipeError: [Errno 32] Broken pipe
ERROR|
ERROR| The above exception was the direct cause of the following exception:
ERROR|
ERROR| Traceback (most recent call last):
ERROR|   File "acceptance/avocado_qemu/__init__.py", line 244, in tearDown
ERROR|     vm.shutdown()
ERROR|   File "python/qemu/machine/machine.py", line 519, in shutdown
ERROR|     self._do_shutdown(timeout, has_quit)
ERROR|   File "python/qemu/machine/machine.py", line 492, in _do_shutdown
ERROR|     raise AbnormalShutdown("Could not perform graceful shutdown") \
ERROR| qemu.machine.machine.AbnormalShutdown: Could not perform graceful

shutdown
ERROR| Traceback (most recent call last):
ERROR| ERROR 28-tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt -> InvalidPacketError:

#1 lore raw
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Pavel,

FYI as of commit 050cee12315 ("Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-250621-1' into staging")

Doesn't it mean, that the real culprit is hidden and we should bisect?

Quoted 1 line

the ReverseDebugging_AArch64 test is failing:

Shouldn't the merge be postponed in such cases?

Quoted 74 lines

(28/37)
tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt:
ERROR (0.96 s)

INFO | recorded log with 1690570+ steps
INFO | replaying the execution...
INFO | connecting to gdbstub
INFO | stepping forward
INFO | saving position 40000000
ERROR|
ERROR| Reproduced traceback from:

lib/python3.8/site-packages/avocado/core/test.py:770 ERROR| Traceback (most recent call last):
ERROR| File "acceptance/reverse_debugging.py", line 206, in
test_aarch64_virt
ERROR| self.reverse_debugging(
ERROR| File "acceptance/reverse_debugging.py", line 140, in
reverse_debugging

ERROR|     pc = self.get_pc(g)
ERROR|   File "acceptance/reverse_debugging.py", line 77, in get_pc
ERROR|     return self.get_reg(g, self.REG_PC)
ERROR|   File "acceptance/reverse_debugging.py", line 72, in get_reg
ERROR|     return self.get_reg_le(g, reg)
ERROR|   File "acceptance/reverse_debugging.py", line 58, in get_reg_le
ERROR|     res = g.cmd(b'p%x' % reg)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line

783, in cmd
ERROR| response_payload = self.decode(result)
ERROR| File "lib/python3.8/site-packages/avocado/utils/gdb.py", line
738, in decode

ERROR|     raise InvalidPacketError
ERROR| avocado.utils.gdb.InvalidPacketError
ERROR|
DEBUG| Local variables:
DEBUG|  -> self <class 'reverse_debugging.ReverseDebugging_AArch64'>:

28-tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt DEBUG| -> kernel_url <class 'str'>:
https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz
DEBUG| -> kernel_hash <class 'str'>:
8c73e469fc6ea06a58dc83a628fc695b693b8493
DEBUG| -> kernel_path <class 'str'>:
avocado-cache/by_location/a00ac4ae676ef0322126abd2f7d38f50cc9cbc95/vmlinuz

DEBUG| >>> {'execute': 'quit'}
ERROR|
ERROR| Reproduced traceback from:
lib/python3.8/site-packages/avocado/core/test.py:796
ERROR| Traceback (most recent call last):
ERROR|   File "python/qemu/machine/machine.py", line 489, in _do_shutdown
ERROR|     self._soft_shutdown(timeout, has_quit)
ERROR|   File "python/qemu/machine/machine.py", line 469, in _soft_shutdown
ERROR|     self._qmp.cmd('quit')
ERROR|   File "python/qemu/qmp/__init__.py", line 325, in cmd
ERROR|     return self.cmd_obj(qmp_cmd)
ERROR|   File "python/qemu/qmp/__init__.py", line 303, in cmd_obj
ERROR|     self.__sock.sendall(json.dumps(qmp_cmd).encode('utf-8'))
ERROR| BrokenPipeError: [Errno 32] Broken pipe
ERROR|
ERROR| The above exception was the direct cause of the following exception:
ERROR|
ERROR| Traceback (most recent call last):
ERROR|   File "acceptance/avocado_qemu/__init__.py", line 244, in tearDown
ERROR|     vm.shutdown()
ERROR|   File "python/qemu/machine/machine.py", line 519, in shutdown
ERROR|     self._do_shutdown(timeout, has_quit)
ERROR|   File "python/qemu/machine/machine.py", line 492, in _do_shutdown
ERROR|     raise AbnormalShutdown("Could not perform graceful shutdown") \
ERROR| qemu.machine.machine.AbnormalShutdown: Could not perform graceful

shutdown
ERROR| Traceback (most recent call last):
ERROR| ERROR 28-tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt -> InvalidPacketError:

#2 lore raw
Quoted 7 lines · Pavel Dovgalyuk
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Pavel,

FYI as of commit 050cee12315 ("Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-250621-1' into staging")

Doesn't it mean, that the real culprit is hidden and we should bisect?

Could be, I have no idea, I don't run this test often, only when I do changes related to aa64. I could bisect if you can't, but it won't be soon.

Quoted 3 lines
Quoted 1 line

the ReverseDebugging_AArch64 test is failing:

Shouldn't the merge be postponed in such cases?

This test isn't run on CI (you marked it @skip in commit be52eca3097).

Quoted 33 lines
Quoted 33 lines

  (28/37) tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt:

  ERROR (0.96 s)

INFO | recorded log with 1690570+ steps
INFO | replaying the execution...
INFO | connecting to gdbstub
INFO | stepping forward
INFO | saving position 40000000
ERROR|
ERROR| Reproduced traceback from:

lib/python3.8/site-packages/avocado/core/test.py:770 ERROR| Traceback (most recent call last):
ERROR|   File "acceptance/reverse_debugging.py", line 206, in test_aarch64_virt
ERROR|     self.reverse_debugging(
ERROR|   File "acceptance/reverse_debugging.py", line 140, in reverse_debugging

ERROR|     pc = self.get_pc(g)
ERROR|   File "acceptance/reverse_debugging.py", line 77, in get_pc
ERROR|     return self.get_reg(g, self.REG_PC)
ERROR|   File "acceptance/reverse_debugging.py", line 72, in get_reg
ERROR|     return self.get_reg_le(g, reg)
ERROR|   File "acceptance/reverse_debugging.py", line 58, in get_reg_le
ERROR|     res = g.cmd(b'p%x' % reg)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line

783, in cmd
ERROR|     response_payload = self.decode(result)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line 738, in decode
ERROR|     raise InvalidPacketError
ERROR| avocado.utils.gdb.InvalidPacketError

#3 lore raw
Quoted 13 lines · Philippe Mathieu-Daudé
Quoted 7 lines · Pavel Dovgalyuk
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Pavel,

FYI as of commit 050cee12315 ("Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-updates-250621-1' into staging")

Doesn't it mean, that the real culprit is hidden and we should bisect?

Could be, I have no idea, I don't run this test often, only when I do changes related to aa64. I could bisect if you can't, but it won't be soon.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

the ReverseDebugging_AArch64 test is failing:

Shouldn't the merge be postponed in such cases?

This test isn't run on CI (you marked it @skip in commit be52eca3097).

Thanks for clarification. I'll take a look at this bug, but it will not be soon too.

Quoted 34 lines
Quoted 34 lines
Quoted 34 lines

  (28/37)
tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt:

  ERROR (0.96 s)

INFO | recorded log with 1690570+ steps
INFO | replaying the execution...
INFO | connecting to gdbstub
INFO | stepping forward
INFO | saving position 40000000
ERROR|
ERROR| Reproduced traceback from:

lib/python3.8/site-packages/avocado/core/test.py:770 ERROR| Traceback (most recent call last):
ERROR|   File "acceptance/reverse_debugging.py", line 206, in test_aarch64_virt
ERROR|     self.reverse_debugging(
ERROR|   File "acceptance/reverse_debugging.py", line 140, in reverse_debugging

ERROR|     pc = self.get_pc(g)
ERROR|   File "acceptance/reverse_debugging.py", line 77, in get_pc
ERROR|     return self.get_reg(g, self.REG_PC)
ERROR|   File "acceptance/reverse_debugging.py", line 72, in get_reg
ERROR|     return self.get_reg_le(g, reg)
ERROR|   File "acceptance/reverse_debugging.py", line 58, in get_reg_le
ERROR|     res = g.cmd(b'p%x' % reg)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line

783, in cmd
ERROR|     response_payload = self.decode(result)
ERROR|   File "lib/python3.8/site-packages/avocado/utils/gdb.py", line 738, in decode
ERROR|     raise InvalidPacketError
ERROR| avocado.utils.gdb.InvalidPacketError