Skip to content

test_profiling: test_run_failed_module_live() fails on AMD64 Arch Linux Asan 3.x #150966

@vstinner

Description

@vstinner

Bug report

======================================================================
FAIL: test_run_failed_module_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_module_live)
Test that running a existing module that fails exits with clean error.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 859, in test_run_failed_module_live
    self.assertIn(
    ~~~~~~~~~~~~~^
        'test test_asdasd crashed -- Traceback (most recent call last):',
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        fake_stderr.getvalue()
        ^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
AssertionError: 'test test_asdasd crashed -- Traceback (most recent call last):' not found in ''

======================================================================
FAIL: test_run_failed_script_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_script_live)
Test that running a failing script exits with clean error.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64.asan/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 885, in test_run_failed_script_live
    self.assertIn('ZeroDivisionError', stderr)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'ZeroDivisionError' not found in ''

----------------------------------------------------------------------

Python is built with ./configure --without-pymalloc --with-address-sanitizer.

ASAN_OPTIONS=detect_leaks=0:allocator_may_return_null=1:handle_segv=0 env var is used to build Python and run the test suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-profilingtype-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions