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

[EASY] x86 Ubuntu Shared 3.x: test_embed.test_pre_initialization_sys_options() fails #77539

Closed
vstinner opened this issue Apr 25, 2018 · 6 comments
Labels
3.8 only security fixes easy tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 33358
Nosy @vstinner, @csabella, @miss-islington
PRs
  • bpo-33358 Fix test_pre_initialization_sys_options when building with --enable-shared #6612
  • [3.7] bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612) #6618
  • 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 2018-05-14.18:39:02.659>
    created_at = <Date 2018-04-25.14:41:16.705>
    labels = ['easy', '3.8', 'tests']
    title = '[EASY] x86 Ubuntu Shared 3.x: test_embed.test_pre_initialization_sys_options() fails'
    updated_at = <Date 2018-05-18.23:48:36.032>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-05-18.23:48:36.032>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-14.18:39:02.659>
    closer = 'cheryl.sabella'
    components = ['Tests']
    creation = <Date 2018-04-25.14:41:16.705>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33358
    keywords = ['patch', 'easy']
    message_count = 6.0
    messages = ['315741', '315797', '315798', '315836', '315839', '317070']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'cheryl.sabella', 'miss-islington']
    pr_nums = ['6612', '6618']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue33358'
    versions = ['Python 3.8']

    @vstinner
    Copy link
    Member Author

    Re-running test 'test_embed' in verbose mode
    test_bpo20891 (test.test_embed.EmbeddingTests) ... ok
    test_forced_io_encoding (test.test_embed.EmbeddingTests) ... ok
    test_pre_initialization_api (test.test_embed.EmbeddingTests) ... ok
    test_pre_initialization_sys_options (test.test_embed.EmbeddingTests) ... --- ['/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Programs/_testembed', 'pre_initialization_sys_options'] failed ---
    stdout:
    stderr:
    /srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Programs/_testembed: error while loading shared libraries: libpython3.8dm.so.1.0: cannot open shared object file: No such file or directory
    ------
    FAIL
    test_subinterps_different_ids (test.test_embed.EmbeddingTests) ... ok
    test_subinterps_distinct_state (test.test_embed.EmbeddingTests) ... ok
    test test_embed failed
    test_subinterps_main (test.test_embed.EmbeddingTests) ... ok
    ======================================================================
    FAIL: test_pre_initialization_sys_options (test.test_embed.EmbeddingTests)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_embed.py", line 213, in test_pre_initialization_sys_options
        "pre_initialization_sys_options", env=env)
      File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_embed.py", line 59, in run_embedded_interpreter
        (p.returncode, err))
    AssertionError: 127 != 0 : bad returncode 127, stderr is '/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Programs/_testembed: error while loading shared libraries: libpython3.8dm.so.1.0: cannot open shared object file: No such file or directory\n'

    Ran 7 tests in 7.218s
    FAILED (failures=1)
    1 test failed again:
    test_embed

    @vstinner vstinner added 3.8 only security fixes tests Tests in the Lib/test dir labels Apr 25, 2018
    @vstinner
    Copy link
    Member Author

    It seems like the failure comes from "env = dict(PYTHONPATH=os.pathsep.join(sys.path))" of Lib/test/test_embed.py. The code from test_pre_initialization_api() works properly. The fix seems easy.

    @vstinner vstinner added the easy label Apr 26, 2018
    @vstinner vstinner changed the title x86 Ubuntu Shared 3.x: test_embed.test_pre_initialization_sys_options() fails [EASY] x86 Ubuntu Shared 3.x: test_embed.test_pre_initialization_sys_options() fails Apr 26, 2018
    @vstinner
    Copy link
    Member Author

    To reproduce the bug:

    ./configure --with-pydebug --enabled-shared
    make clean
    make
    LD_LIBRARY_PATH=$PWD ./python -m test -v test_embed

    @csabella csabella self-assigned this Apr 26, 2018
    @vstinner
    Copy link
    Member Author

    New changeset 4114846 by Victor Stinner (Pablo Galindo) in branch 'master':
    bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
    4114846

    @miss-islington
    Copy link
    Contributor

    New changeset dd3ede7 by Miss Islington (bot) in branch '3.7':
    bpo-33358: Fix test_embed.test_pre_initialization_sys_options (GH-6612)
    dd3ede7

    @csabella csabella removed their assignment May 14, 2018
    @vstinner
    Copy link
    Member Author

    Thank you for the fix Pablo!

    @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 easy tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants