[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
New submission from Jeffrey Walton: 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 `-fwrapv`. This fellow from

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Changes by Jeffrey Walton noloa...@gmail.com: Added file: http://bugs.python.org/file34426/python-3-4-make-test.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the report. Could you check if the current default branch of mercurial fixes the problems? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e68f156ea0e6 by Benjamin Peterson in branch 'default': cast negative numbers to size_t before shifting them (#20929) http://hg.python.org/cpython/rev/e68f156ea0e6 -- nosy: +python-dev ___ Python tracker

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: 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? --

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: The big list of issues earlier has been parred down to the following after `make`: Objects/longobject.c:40:42: runtime error: index -3 out of bounds for type 'PyLongObject [262]' Objects/listobject.c:2046:22: runtime error: index 623 out of bounds for type

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: What branch are you building now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___ ___

[issue20929] Undefined behavior flagged by Clang 3.4

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: What branch are you building now? Python 3.5 from `hg clone http://hg.python.org/cpython`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Updated title to reflect Python 3.4-RC3. -- title: Undefined behavior flagged by Clang 3.4 - Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3) ___ Python tracker rep...@bugs.python.org

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Well, that's 3.4.1 atm. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___ ___ Python-bugs-list

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: 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 --

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: Also see http://bugs.python.org/issue20932. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___ ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay, I think I fixed those bugs too on default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Changes by Benjamin Peterson bp+pyb...@benjamin-peterson.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Jeffrey Walton
Jeffrey Walton added the comment: On Fri, Mar 14, 2014 at 10:28 PM, Benjamin Peterson rep...@bugs.python.org wrote: Benjamin Peterson added the comment: Well, that's 3.4.1 atm. Here's why I got that stale version: https://www.google.com/search?q=download+python+3.4. The first hit is RC3.

[issue20929] Undefined behavior flagged by Clang 3.4 (Python 3.4-RC3)

2014-03-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's indeed the latest release, but the default branch will become 3.4.1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20929 ___