Skip to content

test_init_use_frozen_modules fails on OpenIndianaΒ #139927

@mtelka

Description

@mtelka

The test_init_use_frozen_modules test fails on OpenIndiana.

test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ... --- ['/data/builds/ul-workspace/components/python/python-314/build/amd64/Programs/_testembed', 'test_init_use_frozen_modules'] failed ---
stdout:

stderr:
Fatal Python error: memory allocation failed
Python runtime state: core initialized

Current thread 0x0000000000000001 (most recent call first):
  <no Python frame>

------

  test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['=off'] ... FAIL
--- ['/data/builds/ul-workspace/components/python/python-314/build/amd64/Programs/_testembed', 'test_init_use_frozen_modules'] failed ---
stdout:

stderr:
Fatal Python error: memory allocation failed
Python runtime state: core initialized

Current thread 0x0000000000000001 (most recent call first):
  <no Python frame>

------
  test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['=on'] ... FAIL
--- ['/data/builds/ul-workspace/components/python/python-314/build/amd64/Programs/_testembed', 'test_init_use_frozen_modules'] failed ---
stdout:

stderr:
Fatal Python error: memory allocation failed
Python runtime state: core initialized

Current thread 0x0000000000000001 (most recent call first):
  <no Python frame>

------
  test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['='] ... FAIL
======================================================================
FAIL: test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['=off']
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 1827, in test_init_use_frozen_modules
    self.check_all_configs("test_init_use_frozen_modules", config,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           api=API_PYTHON, env=env)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 941, in check_all_configs
    out, err = self.run_embedded_interpreter(testname,
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
                                             env=env, cwd=cwd)
                                             ^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 138, in run_embedded_interpreter
    self.assertEqual(p.returncode, returncode,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
                     "bad returncode %d, stderr is %r" %
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     (p.returncode, err))
                     ^^^^^^^^^^^^^^^^^^^^
AssertionError: 1 != 0 : bad returncode 1, stderr is 'Fatal Python error: memory allocation failed\nPython runtime state: core initialized\n\nCurrent thread 0x0000000000000001 (most recent call first):\n  <no Python frame>\n'

======================================================================
FAIL: test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['=on']
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 1827, in test_init_use_frozen_modules
    self.check_all_configs("test_init_use_frozen_modules", config,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           api=API_PYTHON, env=env)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 941, in check_all_configs
    out, err = self.run_embedded_interpreter(testname,
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
                                             env=env, cwd=cwd)
                                             ^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 138, in run_embedded_interpreter
    self.assertEqual(p.returncode, returncode,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
                     "bad returncode %d, stderr is %r" %
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     (p.returncode, err))
                     ^^^^^^^^^^^^^^^^^^^^
AssertionError: 1 != 0 : bad returncode 1, stderr is 'Fatal Python error: memory allocation failed\nPython runtime state: core initialized\n\nCurrent thread 0x0000000000000001 (most recent call first):\n  <no Python frame>\n'

======================================================================
FAIL: test_init_use_frozen_modules (test.test_embed.InitConfigTests.test_init_use_frozen_modules) ['=']
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 1827, in test_init_use_frozen_modules
    self.check_all_configs("test_init_use_frozen_modules", config,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           api=API_PYTHON, env=env)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 941, in check_all_configs
    out, err = self.run_embedded_interpreter(testname,
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
                                             env=env, cwd=cwd)
                                             ^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-workspace/components/python/python-314/Python-3.14.0/Lib/test/test_embed.py", line 138, in run_embedded_interpreter
    self.assertEqual(p.returncode, returncode,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
                     "bad returncode %d, stderr is %r" %
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     (p.returncode, err))
                     ^^^^^^^^^^^^^^^^^^^^
AssertionError: 1 != 0 : bad returncode 1, stderr is 'Fatal Python error: memory allocation failed\nPython runtime state: core initialized\n\nCurrent thread 0x0000000000000001 (most recent call first):\n  <no Python frame>\n'

The immediate cause for the failure is that in the _PyConfig_AsDict() function the config_get() call fails (returns NULL) for xoptions and orig_argv specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-unsupportedtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions