Comments (6)
I'm guessing is is because we're running in a 32bit container on a 64bit kernel, so processes can allocate 4GiB
This is non-trivial to detect from userspace, I can't think of a reliable way to do so offhand.
from cython.
Is Python itself passing it's test-suite?
This is a test that's ultimately copied from CPython (https://github.com/python/cpython/blob/f108468970bf4e70910862476900f924fb701399/Lib/test/test_str.py#L2451) so it'd be interesting to know if that version of the same test is passing/failing/being skipped.
from cython.
Yep, seems to be passing: https://ci.debian.net/packages/p/python3.12/unstable/i386/40342642/#L2130 (until 3.13, it's called test_unicode
)
I will say that I couldn't reproduce this one locally (an i386 container on an amd64 host), but it seems to be failing reliably on our CI infra.
from cython.
Thanks for confirming it.
I'm not too worried about this test since it's mostly testing Cpython internals rather than anything we're doing so I think it's fine to ignore.
This kind of bug (where it's very very platform specific) always ends up fairly hard for us to reproduce unfortunately.
from cython.
One of the maintainers of ci.debian.net here. If there is a particular command you'd like me to run in the testbed where the test failed, let me know and I'll see what I can do.
from cython.
My view is we should just skip this test.
The original test I think was designed to allocate a string that's just too big and is thus guaranteed to fail. However, it's based on struct sizes that are version dependent and have shrunk a little since we copied the test. So it's possible that the test is now testing something that's probably too big but might just is possible.
It's testing a CPython implementation detail that's tested properly as part of CPython. I don't think there's much value to Cython in having this test and I don't think it's worth you spend time debugging it.
I'll make a PR to remove it shortly
from cython.
Related Issues (20)
- [BUG] Access violation using cython.ufunc with cimport numpy HOT 3
- [BUG] Regression in cython 3.0.9 HOT 3
- [BUG] Can not do logic with `char *` ? HOT 2
- [BUG] Compiler crash using ufunc with multiple, fused return types HOT 1
- [BUG] `TypeError` when using type annotations in signatures with defaults HOT 4
- Document compilation caching? HOT 10
- A number of warning messages during docs make build procedure HOT 6
- [BUG] Test failures with NumPy 2.0b1
- [BUG] `int` power of an `int` results a `float` when computed inside a list comprehension HOT 1
- [BUG] segfault when raising an exception with python 3.13 alpha 5 HOT 2
- Limited API preview branch HOT 3
- [ENH] __Pyx_PyDict_Pack function (for code size)?
- [BUG] Bug with limited API support in trivial program involving float literal HOT 5
- [BUG] Segmentation fault with Walrus-Operator and same named variables HOT 2
- [BUG] Generators after being cythonized cannot be inspect as generators HOT 13
- [ENH] Can Cython support the vector database function of redis? HOT 3
- [BUG] Function Wrapper yields unused-variable warning when compiled with pypy HOT 3
- [BUG] cppclass inheritance does not work with overloaded methods HOT 3
- [BUG] Deadlock in OpenMP Parallel Loop When Invoking LAPACK Functions in Cython>=3.0 HOT 4
- [BUG] Multi-line f-string literals do not adhere to """\ syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cython.