Hi Julia,

On Mon, Apr 23, 2007 at 07:10:53PM +0400, Julia Dubenskaya wrote:
> I was not able to reproduce the error reported in #1705896.
> My last commit has fixed some other bugs with XS.
> Please check if (by lucky chance) it fixes your bug too.
Unfortunately, no, I still get it. I've debugged it a bit more, and it
seems to be related to SPKAC. If I set MallocBadFreeAbort, the
server dies shortly after receiving the SPKAC from the client, here is
some debug output:

2007-04-24 11:05:40.194485 DEBUG:1 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::get_object_function (line 152): start
2007-04-24 11:05:40.194546 DEBUG:2 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::XS::get_object_function (line 119):
object:   OpenXPKI::Crypto::Backend::OpenSSL::SPKAC=SCALAR(0x416d990)
2007-04-24 11:05:40.194597 DEBUG:2 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::XS::get_object_function (line 120):
function: modulus
2007-04-24 11:05:40.195039 DEBUG:1 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::get_object_function (line 152): start
2007-04-24 11:05:40.195109 DEBUG:2 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::XS::get_object_function (line 119):
object:   OpenXPKI::Crypto::Backend::OpenSSL::SPKAC=SCALAR(0x416d990)
2007-04-24 11:05:40.195160 DEBUG:2 PID:13732
OpenXPKI::Crypto::Backend::OpenSSL::XS::get_object_function (line 120):
function: pubkey_hash
openxpkid: ()(13732) malloc: ***  Deallocation of a pointer not
malloced: 0x49cf62e; This could be a double free(), or free() called
with the middle of an allocated block; Try setting environment variable
MallocHelp to see tools to help debug

I don't really get the code there, but line 103 has SAFEFREE(char_ptr),
without char_ptr being used before, is that the correct way to do it!?

Any ideas are highly appreciated ...

Best regards,
    Alex
-- 
Dipl.-Math. Alexander Klink | IT-Security Engineer
        [EMAIL PROTECTED] | working @ urn:oid:1.3.6.1.4.1.11417

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to