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
Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3) #65128
Comments
Downloaded Python-3.4.0rc3. Compiled with Clang 3.4, added -fsanitzie=undefined to CFLAGS. Ran 'make' and 'make check'. Lots of issues, many are duplicates (see below). One or more of these issues might be the reason for This fellow from objimpl.h seems to be the source of many of the issues: #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1) Modules/gcmodule.c:1718:5: runtime error: left shift of negative value -2 |
New changeset e68f156ea0e6 by Benjamin Peterson in branch 'default': |
Thanks for the report. Could you check if the current "default" branch of mercurial fixes the problems? |
Checkout is complete. Working through a build now. Could you look at http://bugs.python.org/issue20930 and advise on the best way to proceed? |
The big list of issues earlier has been parred down to the following after Objects/longobject.c:40:42: runtime error: index -3 out of bounds for type 'PyLongObject [262]'
I'm going to open another bug report since this is a different branch. Is that OK? |
What branch are you building now? |
Python 3.5 from |
Updated title to reflect Python 3.4-RC3. |
Well, that's 3.4.1 atm. |
My bad. I managed to download a file named Python-3.4.0rc3.tgz this morning (the tarball is still in my downloads). I'm not sure from where since http://www.python.org/download/ does not have it.... |
Also see http://bugs.python.org/issue20932. |
Okay, I think I fixed those bugs too on default. |
On Fri, Mar 14, 2014 at 10:28 PM, Benjamin Peterson
Here's why I got that stale version: |
That's indeed the latest release, but the default branch will become 3.4.1. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: