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

mimalloc: warning: unable to directly request hinted aligned OS memory [RISC-V] #112951

Closed
furkanonder opened this issue Dec 11, 2023 · 1 comment
Labels
tests Tests in the Lib/test dir topic-free-threading type-bug An unexpected behavior, bug, or error

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Dec 11, 2023

Bug report

Bug description:

Bug report

Bug description:

Configuration:

./configure --with-pydebug

Test:

./python -m test test_cmd_line -v

Output:

======================================================================
FAIL: test_pythonmalloc (test.test_cmd_line.CmdLineTest.test_pythonmalloc) (env_var='mimalloc', name='mimalloc')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/cpython/Lib/test/test_cmd_line.py", line 845, in test_pythonmalloc
    self.check_pythonmalloc(env_var, name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/user/cpython/Lib/test/test_cmd_line.py", line 811, in check_pythonmalloc
    self.assertEqual(proc.stdout.rstrip(), name)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'mimalloc: warning: unable to directly request hin[119 chars]lloc' != 'mimalloc'
- mimalloc: warning: unable to directly request hinted aligned OS memory (error: 2 (0x2), size: 0x40000000 bytes, alignment: 0x2000000, hint address: 0x20000000000)
  mimalloc


======================================================================
FAIL: test_pythonmalloc (test.test_cmd_line.CmdLineTest.test_pythonmalloc) (env_var='mimalloc_debug', name='mimalloc_debug')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/cpython/Lib/test/test_cmd_line.py", line 845, in test_pythonmalloc
    self.check_pythonmalloc(env_var, name)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/user/cpython/Lib/test/test_cmd_line.py", line 811, in check_pythonmalloc
    self.assertEqual(proc.stdout.rstrip(), name)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'mimalloc: warning: unable to directly request hin[125 chars]ebug' != 'mimalloc_debug'
- mimalloc: warning: unable to directly request hinted aligned OS memory (error: 2 (0x2), size: 0x40000000 bytes, alignment: 0x2000000, hint address: 0x20000000000)
  mimalloc_debug


----------------------------------------------------------------------
Ran 56 tests in 26.843s

FAILED (failures=2, skipped=2)
test test_cmd_line failed
test_cmd_line failed (2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_cmd_line

Total duration: 27.3 sec
Total tests: run=56 failures=2 skipped=2
Total test files: run=1/1 failed=1
Result: FAILURE

Environment:

user@starfive:~/cpython$ uname -a
Linux starfive 5.15.0-starfive #1 SMP Fri Nov 24 07:22:28 UTC 2023 riscv64 GNU/Linux

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

@furkanonder
Copy link
Contributor Author

The issue seems to be solved with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-free-threading type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant