[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Could you try the same in Python 2.7 ? It's the same, just in stringobject.c. Many hash functions have this issue. > The overflow is intended (after all, it's a hash function), but we sho

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Could you try the same in Python 2.7 ? The overflow is intended (after all, it's a hash function), but we should probably add a cast to Py_hash_t to the hash building line in order to make the compiler aware of this. -- nosy: +lemburg __

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah added the comment: Ok, this is known, see #1621. Closing. -- resolution: -> duplicate status: open -> closed superseder: -> Do not assume signed integer overflow behavior ___ Python tracker _

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
New submission from Stefan Krah : Due to an integer overflow in unicode_hash, the python interpreter crashes if built with -ftrapv: ./configure --with-pydebug CFLAGS="-ftrapv" Starting program: /home/stefan/svn/py3k/python [Thread debugging using libthread_db enabled] Program received signa