[issue3537] dict creation failure causes crash

2008-08-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Applied and added test in r65637. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3537] dict creation failure causes crash

2008-08-10 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: The problem is that PyDict_New doesn't reinitialize the fields of a dict from the free list when the number of entries is zero. For a preconstructed dict (like created by BUILD_MAP) of size >=8, however, there will be an allocated ma_table and m

[issue3537] dict creation failure causes crash

2008-08-10 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Also happens in trunk. -- nosy: +georg.brandl versions: +Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3537] dict creation failure causes crash

2008-08-10 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: If the first item can't be inserted the interpreter will crash eventually. while 1: try: d = { 'a':a, 'b':'b', 'c':'c', 'd':'d', 'e':'e',