Skip to content

AssertionError in analyze.py: Line 888 #41

@aahajj

Description

@aahajj

In the third phase of testing two different AES implementations, I encountered an AssertionError. The error specifically occurs on line 888 of the analyze.py file. Here is the relevant traceback:

Traceback (most recent call last):
  File "data/analysis/analyze.py", line 1695, in <module>
    cli()
  File "data/analysis/.pyenv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "data/analysis/.pyenv/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "data/analysis/.pyenv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "data/analysis/.pyenv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "data/analysis/.pyenv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "data/analysis/analyze.py", line 1520, in specific
    specific_leakage_test(leaks, callback, keys, leaksonly, multiprocessing)
  File "data/analysis/analyze.py", line 973, in specific_leakage_test
    report_nospleak(rl)
  File "data/analysis/analyze.py", line 888, in report_nospleak
    debug(2, "Reporting %s@%x: %s", (leaktype, rl.ip, str(nospleak)))
  File "data/analysis/datastub/leaks.py", line 755, in __str__
    assert False

Although I attempted to resolve the issue myself, my attempt was unsuccessful. In my troubleshooting process, I modified the assertion on line 755 of the leaks.py file by changing it to assert True. This alteration allowed me to observe the output of the third testing phase. However, this modification does not logically align with the intended behavior of the code.

Despite my efforts, the AssertionError persists, indicating an underlying problem that needs to be addressed.

OS: Ubuntu 22.04.2 LTS
Python: Python 3.10.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions