This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年06月06日 03:32 by brett.cannon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| clang_analyzer_253.tar.xz | brett.cannon, 2011年01月27日 17:49 | tar.xz file of the HTML output | ||
| clang_analyzer.diff | brett.cannon, 2011年02月03日 20:34 | Remove worthless assignments and increments | ||
| analyzer_fixes.diff | brett.cannon, 2011年02月04日 00:11 | Fixes various issues along with using the noreturn attribute | ||
| checker_254_2011年02月03日.tar.xz | brett.cannon, 2011年02月04日 00:12 | Clang static analyzer v254 results w/ analyzer_fixes.diff applied | ||
| wheres_my_pony.diff | brett.cannon, 2011年02月04日 01:23 | Patch with everything | ||
| Messages (16) | |||
|---|---|---|---|
| msg107180 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2010年06月06日 03:32 | |
Just like I did for Python 2.7. Should use this issue to keep track of what I have already processed and what I had to skip because OS X doesn't have the right files. |
|||
| msg127167 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年01月27日 02:31 | |
Analyzed by downloading the latest Clang static analyzer from http://clang-analyzer.llvm.org/ and running ``scan-build ./configure --with-pydebug; scan-build make -s -j2``. The attached tar.xz (yes I went with a cutting edge archival format; get pax on UNIX to read it) contains the HTML report. |
|||
| msg127169 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年01月27日 02:50 | |
Well, there is no upload because the compressed file is 70 MB. But you can download the file from https://docs.google.com/leaf?id=0B7CvitGf6YffMGFlYTg2N2UtMjY3Yi00ZTg1LWI2NWUtNmRiMmEwYzZjMTQ1&sort=name&layout=list&num=50 . |
|||
| msg127203 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年01月27日 17:49 | |
Turns out I was using pax wrong. =) Thought it automatically compressed new files; turns out it doesn't. Using the zx compressor it shrank the 70 MB file down, so ignore the Google Docs upload and just grab this. |
|||
| msg127205 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2011年01月27日 17:54 | |
For the record, you don't have to use pax, recent GNU tar handles xz fine (use the -J option). |
|||
| msg127781 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月03日 02:27 | |
Here is a patch that covers all of the relevant dead assignments that were detected. |
|||
| msg127785 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2011年02月03日 07:26 | |
Nice work. I'm surprised there wasn't more dead code. |
|||
| msg127807 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月03日 19:28 | |
This was just dead assignments. I have not tackled Idempotent operations, dead increments, dead initializations, dead nested assignments, possible deref of NULL, deref of unassigned pointer, division by zero, undefined/garbage results, or undefined alloc of 0 bytes. IOW I tackled 36 out of 164 reported issues. =) |
|||
| msg127819 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2011年02月03日 20:34 | |
Am looking forward to the rest. This will be a nice cleanup. |
|||
| msg127820 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月03日 20:34 | |
New patch which covers dead assignments and increments. |
|||
| msg127834 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月04日 00:11 | |
Here is a new patch which includes setting the noreturn attribute on Py_FatalError() and Py_Exit() in order to make the null pointer deref analysis results more tractable. |
|||
| msg127835 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月04日 00:12 | |
This is a new set of results with the analyzer_fixes.diff file applied using the latest analyzer. |
|||
| msg127852 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月04日 01:23 | |
OK, done going through the results. Attached is a patch with all of the fixes (only one actual bug which I file an issue for separately; everything else is removing a little bit of dead code here and there). |
|||
| msg129119 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月22日 20:19 | |
applied in r88506 |
|||
| msg141259 - (view) | Author: Petri Lehtinen (petri.lehtinen) * (Python committer) | Date: 2011年07月27日 18:35 | |
Regarding issue 12595 (function redeclaration warning when including Python.h), could a small part (or optionally all) of this patch be backported to 3.2? |
|||
| msg141278 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年07月27日 21:49 | |
I don't feel comfortable changing what is defined in a header file in a point release, so I am not going to backport the fix. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:01 | admin | set | github: 53160 |
| 2011年07月27日 21:49:45 | brett.cannon | set | messages: + msg141278 |
| 2011年07月27日 18:35:09 | petri.lehtinen | set | nosy:
+ petri.lehtinen messages: + msg141259 |
| 2011年07月27日 11:19:24 | petri.lehtinen | unlink | issue12595 superseder |
| 2011年07月27日 11:17:55 | petri.lehtinen | link | issue12595 superseder |
| 2011年02月22日 20:19:30 | brett.cannon | set | status: open -> closed nosy: brett.cannon, rhettinger, jcea, pitrou messages: + msg129119 resolution: fixed stage: resolved |
| 2011年02月04日 01:23:32 | brett.cannon | set | files:
+ wheres_my_pony.diff nosy: brett.cannon, rhettinger, jcea, pitrou messages: + msg127852 |
| 2011年02月04日 00:12:52 | brett.cannon | set | files:
+ checker_254_2011年02月03日.tar.xz nosy: brett.cannon, rhettinger, jcea, pitrou messages: + msg127835 |
| 2011年02月04日 00:11:07 | brett.cannon | set | files:
+ analyzer_fixes.diff nosy: brett.cannon, rhettinger, jcea, pitrou messages: + msg127834 |
| 2011年02月03日 20:34:51 | brett.cannon | set | files:
+ clang_analyzer.diff nosy: brett.cannon, rhettinger, jcea, pitrou messages: + msg127820 |
| 2011年02月03日 20:34:18 | brett.cannon | set | files:
- clang_analyzer.diff nosy: brett.cannon, rhettinger, jcea, pitrou |
| 2011年02月03日 20:34:07 | rhettinger | set | nosy:
brett.cannon, rhettinger, jcea, pitrou messages: + msg127819 |
| 2011年02月03日 19:28:07 | brett.cannon | set | nosy:
brett.cannon, rhettinger, jcea, pitrou messages: + msg127807 |
| 2011年02月03日 07:26:49 | rhettinger | set | nosy:
+ rhettinger messages: + msg127785 |
| 2011年02月03日 02:27:29 | brett.cannon | set | files:
+ clang_analyzer.diff messages: + msg127781 keywords: + patch nosy: brett.cannon, jcea, pitrou |
| 2011年01月27日 17:54:27 | pitrou | set | nosy:
+ pitrou messages: + msg127205 |
| 2011年01月27日 17:49:56 | brett.cannon | set | files:
+ clang_analyzer_253.tar.xz nosy: brett.cannon, jcea messages: + msg127203 |
| 2011年01月27日 02:50:08 | brett.cannon | set | nosy:
brett.cannon, jcea messages: + msg127169 |
| 2011年01月27日 02:31:40 | brett.cannon | set | nosy:
brett.cannon, jcea messages: + msg127167 |
| 2010年11月23日 03:51:44 | jcea | set | nosy:
+ jcea |
| 2010年06月06日 03:32:53 | brett.cannon | create | |