{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/5736","labels_url":"https://api.github.com/repos/numpy/numpy/issues/5736/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/5736/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/5736/events","html_url":"https://github.com/numpy/numpy/issues/5736","id":65088346,"number":5736,"title":"many boundary issues detected in clang 3.6 with -fsanitize=undefined for numpy 1.9.2","user":{"login":"howarthjw","id":9382714,"avatar_url":"https://avatars.githubusercontent.com/u/9382714?v=3","gravatar_id":"","url":"https://api.github.com/users/howarthjw","html_url":"https://github.com/howarthjw","followers_url":"https://api.github.com/users/howarthjw/followers","following_url":"https://api.github.com/users/howarthjw/following{/other_user}","gists_url":"https://api.github.com/users/howarthjw/gists{/gist_id}","starred_url":"https://api.github.com/users/howarthjw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howarthjw/subscriptions","organizations_url":"https://api.github.com/users/howarthjw/orgs","repos_url":"https://api.github.com/users/howarthjw/repos","events_url":"https://api.github.com/users/howarthjw/events{/privacy}","received_events_url":"https://api.github.com/users/howarthjw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-29T19:36:26Z","updated_at":"2015-03-29T20:17:18Z","closed_at":null,"body":"Building numpy 1.9.2 with the clang 3.6 compilers and the -fsanitize=undefined triggered many runtime error messages during the unit tests for numpy. A sampling of these detected on x86_64-apple-darwin14 are...\r\n\r\nnumpy/core/src/multiarray/iterators.c:333:5: runtime error: index -1 out of bounds for type 'npy_intp [32]'\r\nnumpy/core/src/multiarray/iterators.c:1413:9: runtime error: index -1 out of bounds for type 'npy_intp [32]'\r\nnumpy/core/src/multiarray/common.h:161:35: runtime error: load of misaligned address 0x7fb8ca9519f2 for type 'unsigned int', which requires 4 byte alignment\r\nnumpy/core/src/multiarray/datetime.c:991:13: runtime error: index 26 out of bounds for type 'NPY_DATETIMEUNIT [16][4]'\r\nnumpy/core/src/multiarray/datetime.c:992:16: runtime error: index 27 out of bounds for type 'NPY_DATETIMEUNIT [16][4]'\r\n(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value 34440 is outside the range of representable values of type 'short'\r\n(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value 130 is outside the range of representable values of type 'signed char'\r\n.(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value 325 is outside the range of representable values of type 'unsigned char'\r\n.numpy/core/src/multiarray/arraytypes.c.src:536:5: runtime error: load of misaligned address 0x7fb8cac0730c for type 'PyObject *' (aka 'struct _object *'), which requires 8 byte alignment\r\nKnumpy/core/src/umath/loops.c.src:1490:40: runtime error: division by zero\r\n(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value inf is outside the range of representable values of type 'long'\r\n(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value nan is outside the range of representable values of type 'long'\r\n(/sw/src/fink.build/root-numpy-py27-1.9.2-3/sw/lib/python2.7/site-packages/numpy/core/multiarray.so+0x4e15ea): runtime error: value -inf is outside the range of representable values of type 'long'\r\n\r\n...for a total of 16696 runtime errors detected by UBSan as described in...\r\n\r\nhttps://docs.python.org/devguide/clang.html"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/87468663","html_url":"https://github.com/numpy/numpy/issues/5736#issuecomment-87468663","issue_url":"https://api.github.com/repos/numpy/numpy/issues/5736","id":87468663,"user":{"login":"pv","id":35046,"avatar_url":"https://avatars.githubusercontent.com/u/35046?v=3","gravatar_id":"","url":"https://api.github.com/users/pv","html_url":"https://github.com/pv","followers_url":"https://api.github.com/users/pv/followers","following_url":"https://api.github.com/users/pv/following{/other_user}","gists_url":"https://api.github.com/users/pv/gists{/gist_id}","starred_url":"https://api.github.com/users/pv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pv/subscriptions","organizations_url":"https://api.github.com/users/pv/orgs","repos_url":"https://api.github.com/users/pv/repos","events_url":"https://api.github.com/users/pv/events{/privacy}","received_events_url":"https://api.github.com/users/pv/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T20:17:18Z","updated_at":"2015-03-29T20:17:18Z","body":"@howarthjw: please go ahead and upload the full log to http://gist.github.com or somewhere, and add a link to it here."}}