[issue3367] Uninitialized value read in parsetok.c

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I close the issue, it has been fixed. I'm no longer able to reproduce the initial issue: $ ./configure --with-pydebug --with-valgrind $ make clean $ make $ valgrind --suppressions=Misc/valgrind-python.supp ./python ==2670== Memcheck, a memory error

[issue3367] Uninitialized value read in parsetok.c

2019-02-24 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3367] Uninitialized value read in parsetok.c

2015-05-04 Thread Mark Lawrence
Mark Lawrence added the comment: The fix proposed by Alexander in issue3367.diff has never been applied. How would I go about reproducing the original issue on Windows? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python

[issue3367] Uninitialized value read in parsetok.c

2014-12-31 Thread A.M. Kuchling
Changes by A.M. Kuchling a...@amk.ca: -- nosy: -akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing

[issue3367] Uninitialized value read in parsetok.c

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list

[issue3367] Uninitialized value read in parsetok.c

2013-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I see a crash with valgring even without hitting Ctrl-D. $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python ==26172== Memcheck, a memory error detector ==26172== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.

[issue3367] Uninitialized value read in parsetok.c

2013-10-27 Thread Stefan Krah
Stefan Krah added the comment: Serhiy, probably a false positive: https://bugs.kde.org/show_bug.cgi?id=298281 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2012-11-05 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing

[issue3367] Uninitialized value read in parsetok.c

2012-07-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Should this be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___ ___

[issue3367] Uninitialized value read in parsetok.c

2012-07-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I think the original issue in parsetok.c is still present. The fix that was committed was for sys_update_path(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-07-20 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I can still reproduce the parsetok.c problem on the 'default' branch using the CTRL+D method Stefan described. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-06-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- assignee: belopolsky - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I don't quite understand what you're saying about line mismatch Victor. Anyway, if you look at it, it is clear that: 1) sys_update_path() can be called with argc==0 (main.c line 647) 2) 1742 was always setting arg0 to argv[0] that

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It's the line argv0 = argv[0] in sys_update_path(). The copies of argv made in python.c aren't NULL terminated. Kristján's patch worked around that (and fixes the problem), but I'd prefer to make a full copy of argv in python.c. Could

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: 3) line 1812 assumes n to be equal to the length of arg0, but depending on conditional compilation, it may not get set at all, and in any case in line line 1805 it gets set only if p is not NULL. n is initialized to 0

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Kristján's patch is wrong: n should be set to 0 even if argc 0. The patch is also useless with argv-alloc.diff. @Stefan: Your patch is correct and solves the issue. You can commit it to 2.7, 3.2 and 3.3. --

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'm sure you didn't intend to use words such as wrong and useless Victor. Perhaps n must be 0 even for argc0, but I did that as an afterthought. Which is the reason I asked you to take a look rather than committing this right

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I only have the C99 standard. It says [5.1.2.2.1]: - argv[argc] shall be a NULL pointer. Is this different in C89? Also, my patch terminates the *copies* of argv, not argv itself. -- ___

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: KR page 115 also says: The standard requires that argv[argc] be a NULL pointer. So it must be in C89 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm sure you didn't intend to use words such as wrong and useless Victor.  Perhaps n must be 0 even for argc0, but I did that as an afterthought. If n is initialized as wcslen(argv[0]), test_cmd_line_script fails. --

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c0900fd6e4b3 by Stefan Krah in branch '3.2': Issue #3367: NULL-terminate argv[] copies to prevent an invalid access http://hg.python.org/cpython/rev/c0900fd6e4b3 New changeset 1ab8fa2277d9 by Stefan Krah in branch

[issue3367] Uninitialized value read in parsetok.c

2012-03-26 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: You are right, Stefan, argv[argc] is defined to be NULL by the standard. Jolly good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm unable to reproduce this error: -- $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python Python 3.3.0a1+ (default:0554183066b5, Mar 20 2012, 10:47:41) ... ==20258== Invalid read of size 8 ==20258==

[issue3367] Uninitialized value read in parsetok.c

2012-03-25 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Stephan: can you redo the Valgrind test on copy the exact line where the invalid read occurs (in sysmodule.c). Oops: ... *and* copy the exact line ... -- ___ Python tracker

[issue3367] Uninitialized value read in parsetok.c

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Victor, could you check out the last patch here for sysmodule? I gather that you are familiar with it. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue3367] Uninitialized value read in parsetok.c

2012-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a patch for the sysmodule.c problem -- Added file: http://bugs.python.org/file24983/sysmodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367

[issue3367] Uninitialized value read in parsetok.c

2012-03-21 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2012-03-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: bump, what is the status of this? Was it fixed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2012-03-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It isn't fixed. Also, there's now an additional invalid read in sys_update_path(): $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python ==20258== Memcheck, a memory error detector ==20258== Copyright (C)

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No need to bump the version, it can go into 3.2.1. But seeing the history of this case, I don't want to play around here before 3.2 final. -- ___ Python tracker rep...@bugs.python.org

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Feb 4, 2011 at 11:35 AM, Georg Brandl rep...@bugs.python.org wrote: .. But seeing the history of this case, I don't want to play around here before 3.2 final. Here is my understanding of the history of this case:

[issue3367] Uninitialized value read in parsetok.c

2011-02-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: georg.brandl - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I don't have a working valgrind or purify, but I was able to reproduce the problem using a poor man's solution of adding assert(0xcbcbcbcbcbcbcbcb != tok-line_start); before if (a = tok-line_start)

[issue3367] Uninitialized value read in parsetok.c

2011-02-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: George, This is not really important enough to get into the 3.2 release, but uninitialized variable bugs tend to be nasty when they bite you, so I'll ask your opinion before bumping the version. -- assignee: -

[issue3367] Uninitialized value read in parsetok.c

2010-10-20 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can still reproduce it in py3k just by hitting Ctrl-D in the interactive interpreter: $ valgrind --db-attach=yes --suppressions=Misc/valgrind-python.supp ./python ==16724== Memcheck, a memory error detector ==16724== Copyright (C)

[issue3367] Uninitialized value read in parsetok.c

2010-01-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Excellent! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2010-01-26 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I think this was fixed with checkins r76689 and r76230, made by Benjamin. Since we are using exec '' as the reproduction case, the token state is setup in 'PyTokenizer_FromString', which causes 'tok-inp == '. The code before these checkins

[issue3367] Uninitialized value read in parsetok.c

2010-01-26 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: Added file: http://bugs.python.org/file16021/revert-76139-76689.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2009-05-16 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Confirmed in trunk: ~/trunk-py$ ./configure --with-pydebug --without-pymalloc make [...] ~/trunk-py$ valgrind --suppressions=Misc/valgrind-python.supp ./python ==29730== Memcheck, a memory error detector. [...] Python 2.7a0 (trunk:72608M, May 16

[issue3367] Uninitialized value read in parsetok.c

2008-10-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Kristján, you suggested this patch to be considered for 2.5.3. It seems the patch is incorrect. Can you provide a correct one? -- nosy: +loewis versions: +Python 2.5.3 ___ Python tracker [EMAIL

[issue3367] Uninitialized value read in parsetok.c

2008-10-07 Thread Kristján Valur Jónsson
Kristján Valur Jónsson [EMAIL PROTECTED] added the comment: Now that the 'easy' keyword is absent, I'm afraid this is out of my depth. I'll run purify again and try to find the exact repro case. ___ Python tracker [EMAIL PROTECTED]

[issue3367] Uninitialized value read in parsetok.c

2008-10-07 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ok, un-targetting it from 2.5.3 for now. -- versions: -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3367 ___

[issue3367] Uninitialized value read in parsetok.c

2008-08-04 Thread A.M. Kuchling
A.M. Kuchling [EMAIL PROTECTED] added the comment: This patch was applied in rev. 65539, but then reverted; it turns out to break Lib/test/test_parser.py. The exception is: raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File

[issue3367] Uninitialized value read in parsetok.c

2008-07-15 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson [EMAIL PROTECTED]: If a PyTokenizer_FromString() is called with an empty string, the tokenizer's line_start member never gets initialized. Later, it is compared with the token pointer 'a' in parsetok.c:193 and that behavior can result in undefined

[issue3367] Uninitialized value read in parsetok.c

2008-07-15 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson [EMAIL PROTECTED]: -- versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3367 ___ ___

[issue3367] Uninitialized value read in parsetok.c

2008-07-15 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing

[issue3367] Uninitialized value read in parsetok.c

2008-07-15 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- priority: - high ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3367 ___ ___ Python-bugs-list mailing