Failure in test_hashlib.py and test_hmac.py

Failure in test_hashlib.py and test_hmac.py

Post by Chris Lie » Fri, 05 Mar 2010 10:33:00


am building Python 2.6.4 on a shared server and am encountering test
failures in test_hashlib.py and test_hmac.py, specifically concerning
sha512. I recompiled Python with --with-pydebug and CLFAGS=CPPFLAGS="-
g" and ran the tests in GDB and got the following results:

----------------------------------------------------------------------------

GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "x86_64-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run test_hashlib.py
Starting program: /export/users1/chris.lieb/packages/python/bin/
python2.6 test_hashlib.py
test_case_md5_0 (__main__.HashLibTestCase) ... ok
test_case_md5_1 (__main__.HashLibTestCase) ... ok
test_case_md5_2 (__main__.HashLibTestCase) ... ok
test_case_md5_huge (__main__.HashLibTestCase) ... ok
test_case_md5_uintmax (__main__.HashLibTestCase) ... ok
test_case_sha1_0 (__main__.HashLibTestCase) ... ok
test_case_sha1_1 (__main__.HashLibTestCase) ... ok
test_case_sha1_2 (__main__.HashLibTestCase) ... ok
test_case_sha1_3 (__main__.HashLibTestCase) ... ok
test_case_sha224_0 (__main__.HashLibTestCase) ... ok
test_case_sha224_1 (__main__.HashLibTestCase) ... ok
test_case_sha224_2 (__main__.HashLibTestCase) ... ok
test_case_sha224_3 (__main__.HashLibTestCase) ... ok
test_case_sha256_0 (__main__.HashLibTestCase) ... ok
test_case_sha256_1 (__main__.HashLibTestCase) ... ok
test_case_sha256_2 (__main__.HashLibTestCase) ... ok
test_case_sha256_3 (__main__.HashLibTestCase) ... ok
test_case_sha384_0 (__main__.HashLibTestCase) ... ok
test_case_sha384_1 (__main__.HashLibTestCase) ... ok
test_case_sha384_2 (__main__.HashLibTestCase) ... ok
test_case_sha384_3 (__main__.HashLibTestCase) ... ok
test_case_sha512_0 (__main__.HashLibTestCase) ... FAIL
test_case_sha512_1 (__main__.HashLibTestCase) ... FAIL
test_case_sha512_2 (__main__.HashLibTestCase) ... FAIL
test_case_sha512_3 (__main__.HashLibTestCase) ... FAIL
test_hexdigest (__main__.HashLibTestCase) ...
Program received signal SIGSEGV, Segmentation fault.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x00002ba86ffbb463 in ?? ()
(gdb) bt
#0 0x00002ba86ffbb463 in ?? ()
#1 0x000000000046993d in PyString_FromStringAndSize (
str=0x7fff71c67800 "203~T(P\200\a005\vW
\025203Glt;<]
\205 5
\203\030207~cAz\2012z177",
size=1054484473)
at Objects/stringobject.c:90
#2 0x00002ba87030d59a in ?? ()
#3 0x0000000000000000 in ?? ()

-----------------------------------------------------------------------------------------

GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "x86_64-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so
 
 
 

Failure in test_hashlib.py and test_hmac.py

Post by Chris Lie » Sat, 06 Mar 2010 13:07:12

n Mar 3, 8:33pm, Chris Lieb < XXXX@XXXXX.COM > wrote:

Does anyone have any tips or insights for trying to debug this issue?
Any help is greatly appreciated.

Chris Lieb

 
 
 

Failure in test_hashlib.py and test_hmac.py

Post by Paul Rubi » Sat, 06 Mar 2010 16:50:15

Chris Lieb < XXXX@XXXXX.COM > writes:

You should certainly file a bug report (bugs.python.org). If you want
to debug it yourself and include a patch, that's great. Otherwise, just
file the report.

In the case of test_hashlib.py, it segfaulted on the first sha512 test
when I didn't have the debugging options enabled. Only after enabling
debugging did I get FAIL's for the sha512 tests.

Does anyone know what is causing these failures?

Please be precise about the hw and compiler versions.
 
 
 

Failure in test_hashlib.py and test_hmac.py

Post by Chris Lie » Sun, 07 Mar 2010 01:08:56


> In the case of test_hashlib.py, it segfaulted on the first sha512 test> > when I didn't have the debugging options enabled. nly after enabli>g
> debugging did I get FAIL's for the sha512 te>ts>
>
> Does anyone know what is causing these fai>ur>s?
>
> Please be precise about the hw and compiler versions.

I have created this as bug 8073 [ http://www.yqcomputer.com/ ]