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

pycryptopp trac at allmydata.org
Tue Sep 8 23:39:17 PDT 2009


#19: Segmentation fault in HashMultipleBlocks
---------------------+------------------------------------------------------
Reporter:  francois  |           Owner:  francois
    Type:  defect    |          Status:  new     
Priority:  major     |         Version:  0.5.1   
Keywords:            |   Launchpad_bug:          
---------------------+------------------------------------------------------

Comment(by warner):

 Nice catch! I just pushed [669] with your fix: set PY_SSIZE_T_CLEAN
 everywhere, and update the two remaining uses of "int"-sized {{{t#}}}
 length variables to be Py_ssize_t instead. The segfaults go away, and
 tests pass on linux/32bit, OS-X/10.6/64bit, OS-X/10.5/probably-64-bit.

 I didn't touch that implicit cast. If your analysis points out a problem,
 give a yell.

 francois: could you play with this patch and see if it makes your segfault
 go away? I know that it happens infrequently enough that it'll be hard to
 develop confidence by merely running the test suite a few times, but maybe
 if you observed no crash for three times as long as the usual time it
 takes to crash, we could treat this one as done..

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


More information about the tahoe-dev mailing list