[tahoe-dev] [pycryptopp] #19: Segmentation fault in HashMultipleBlocks

pycryptopp trac at allmydata.org
Mon Apr 27 05:29:49 PDT 2009


#19: Segmentation fault in HashMultipleBlocks
---------------------+------------------------------------------------------
Reporter:  francois  |           Owner:       
    Type:  defect    |          Status:  new  
Priority:  major     |         Version:  0.5.1
Keywords:            |   Launchpad_bug:       
---------------------+------------------------------------------------------
 During some Tahoe development, I happen to run "make quicktest"
 frequently. Sometimes, in a non-reproducible way, a segmentation fault
 kills the Python interpreter before the end of the test run.

 Fortunately, I was able to catch it in gdb, here is the beginning of the
 stackstrace.

 {{{
 (gdb) bt
 #0  CryptoPP::IteratedHashBase<unsigned int,
 CryptoPP::HashTransformation>::HashMultipleBlocks (this=0x7fe5a00f7370,
 input=0x79cffd4,
     length=<value optimized out>) at cryptopp/misc.h:674
 #1  0x00007fe5aa755a3f in CryptoPP::IteratedHashBase<unsigned int,
 CryptoPP::HashTransformation>::Update (this=0x7fe5a00f7370,
 input=0x58e0054 "",
     len=140621524238411) at cryptopp/iterhash.cpp:56
 #2  0x00007fe5aa72b899 in CryptoPP::PK_MessageAccumulatorBase::Update (
     this=0x7fe5a00f72b0, input=0x58e0054 "", length=140621524238411)
     at ./cryptopp/pubkey.h:292
 #3  0x00007fe5aa7a2f5a in CryptoPP::PK_Verifier::VerifyMessage (
     this=0x7fe5a0066590, message=0x58e0054 "", messageLen=140621524238411,
     signature=0x7fe5a01ba214
 "dJ\232��\r�a�\"\204\216uY�\213�P�6_�UL\211\004�\035\037?}Xh$\ro�\022s�r�\0344خS�HE�\236m}�\216\027,�\224\213O���!�3�'�]�LX���I�\031\223\v\224�\232f\037��)����\204]\021$\021�LB\226�Ʊ�.�3��J\177\2100�\0211��\022\220\032\026YQS|�\004\207\230�\017�qG�\t\006\212x��a\226�vx����\223\002t�lK&ܾįX\006\\+I\225��\021�F\220��;\\�\aT3\036��l�\216\017�,�\217\vI�"...,
     signatureLength=256) at cryptopp/cryptlib.cpp:681
 #4  0x00007fe5aa7b015d in ?? ()
    from
 /home/francois/WORK/dev/tahoe-534/pycryptopp-0.5.10-py2.6-linux-x86_64.egg/pycryptopp/publickey/rsa.so
 #5  0x00000000004a2b03 in PyEval_EvalFrameEx ()
 #6  0x00000000004a3dae in PyEval_EvalFrameEx ()
 #7  0x00000000004a4649 in PyEval_EvalCodeEx ()
 }}}

 Tahoe's Makefile is automatically installing this version of pycryptopp:

 pycryptopp-0.5.10-py2.6-linux-x86_64.egg

 Catch me on IRC if more gdb black magic is required.

-- 
Ticket URL: <http://allmydata.org/trac/pycryptopp/ticket/19>
pycryptopp <http://allmydata.org/trac/pycryptopp>
Python bindings for the Crypto++ library


More information about the tahoe-dev mailing list