Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_thread fails because symbol is (no longer) exported #81170

Closed
aixtools opened this issue May 21, 2019 · 2 comments
Closed

test_thread fails because symbol is (no longer) exported #81170

aixtools opened this issue May 21, 2019 · 2 comments
Labels
3.8 only security fixes build The build process and cross-build tests Tests in the Lib/test dir

Comments

@aixtools
Copy link
Contributor

BPO 36989
Nosy @vstinner, @aixtools
Superseder
  • bpo-36402: threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-03-27.00:26:31.433>
    created_at = <Date 2019-05-21.11:35:53.760>
    labels = ['3.8', 'build', 'tests']
    title = 'test_thread fails because symbol is (no longer) exported'
    updated_at = <Date 2020-03-27.00:26:31.430>
    user = 'https://github.com/aixtools'

    bugs.python.org fields:

    activity = <Date 2020-03-27.00:26:31.430>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-27.00:26:31.433>
    closer = 'vstinner'
    components = ['Build', 'Tests']
    creation = <Date 2019-05-21.11:35:53.760>
    creator = 'Michael.Felt'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36989
    keywords = []
    message_count = 2.0
    messages = ['343016', '365123']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'Michael.Felt']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '36402'
    type = None
    url = 'https://bugs.python.org/issue36989'
    versions = ['Python 3.8']

    @aixtools
    Copy link
    Contributor Author

    On AIX, with commit 4fb1502 (HEAD -> master, origin/master, origin/HEAD)

    test_thread is failing.

    The three sub_tests that exit as ERROR are:
    ERROR: test_threads_join_2 (test.test_threading.SubinterpThreadingTests)
    ERROR: test_frame_tstate_tracing (test.test_threading.ThreadTests)

    These two have in common:
    Traceback (most recent call last):
    ...
    ImportError:    0509-130 Symbol resolution failed for /home/buildbot/python-master/build/lib.aix-7.1-3.8-pydebug/_testcapi.so because:
            0509-136   Symbol _PyMem_GetAllocatorsName (number 191) is not exported from
                       dependent module python.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    FAIL: test_daemon_threads_fatal_error (test.test_threading.SubinterpThreadingTests)

    I am guessing that:

    ======================================================================
    FAIL: test_daemon_threads_fatal_error (test.test_threading.SubinterpThreadingTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/home/buildbot/python-master/Lib/test/test_threading.py", line 942, in test_daemon_threads_fatal_error
        self.assertIn("Fatal Python error: Py_EndInterpreter: "
    AssertionError: 'Fatal Python error: Py_EndInterpreter: not the last thread' not found in 'Traceback (most recent call last):\n  File "<string>", line 2, in <module>\nImportError: \t0509-130 Symbol resolution failed for /home/buildbot/python-master/build/lib.aix-7.1-3.8-pydebug/_testcapi.so because:\n\t0509-136   Symbol _PyMem_GetAllocatorsName (number 191) is not exported from\n\t\t   dependent module python.\n\t0509-192 Examine .loader section symbols with the\n\t\t \'dump -Tv\' command.'

    is caused by the earlier failures.

    @aixtools aixtools added 3.8 only security fixes build The build process and cross-build tests Tests in the Lib/test dir labels May 21, 2019
    @vstinner
    Copy link
    Member

    Fatal Python error: Py_EndInterpreter: not the last thread

    That's the bug bpo-36402 which I fixed with commit 468e5fe in master.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes build The build process and cross-build tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants