GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — BUG: `npy_memchr` has misaligned memory access · Issue #21116 · numpy/numpy Closed Labels DescriptionDescribe the issue:The function While this is benign on x86_64, the misaligned access is nevertheless picked up by UBsan as it is undefined behaviour according to the C standard. How to reproduce:Build NumPy with UBsan and run a test suite containing a sufficiently large number of Error message:third_party/py/numpy/core/src/multiarray/common.h:277:35: runtime error: load of misaligned address 0x... for type 'unsigned int', which requires 4 byte alignment 0x615000673205: note: pointer points here 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ^ #0 0x... in npy_memchr third_party/py/numpy/core/src/multiarray/common.h:277:35 #1 0x... in array_boolean_subscript third_party/py/numpy/core/src/multiarray/mapping.c:1113:30 #2 0x... in array_subscript third_party/py/numpy/core/src/multiarray/mapping.c:1572:30 #3 0x... in PyObject_GetItem third_party/python_runtime/v3_7/Objects/abstract.c:182:26 ... SUMMARY: UndefinedBehaviorSanitizer: misaligned-pointer-use third_party/py/numpy/core/src/multiarray/common.h:277:35 NumPy/Python version information:Bug exists at HEAD. Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |