core dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xmlsec1 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
root # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
root# uname -a
Linux server 3.2.0-39-generic #62-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root# xmlsec1 --version
xmlsec1 1.2.14 (openssl)
Package: openssl
Version: 1.0.1-4ubuntu5.8
Package: xmlsec1
Version: 1.2.14-1.2build1
Package: libxmlsec1
Version: 1.2.14-1.2build1
Same command with same files works on 32-bit Ubuntu (xmlsec1 in that working machine is version 1.2.9)
root# xmlsec1 --decrypt --trusted certs/ca.pem --trusted certs/RootCert.pem --privkey-pem certs/privkey.pem /tmp/crypted.EWKqgO
Segmentation fault (core dumped)
And backtrace from gdb
(gdb) bt
#0 0x00007ffff6ce6139 in ?? () from /lib/x86_
#1 0x00007ffff7bbf815 in ?? () from /usr/lib/
#2 0x00007ffff797aa42 in xmlSecTransform
#3 0x00007ffff797aad1 in xmlSecTransform
#4 0x00007ffff797a39a in xmlSecTransform
#5 0x00007ffff79840a3 in xmlSecEncCtxDec
#6 0x00007ffff7962d4d in ?? () from /usr/lib/
#7 0x00007ffff795fa72 in xmlSecKeyInfoNo
#8 0x00007ffff7965f46 in xmlSecKeysMngrG
#9 0x00007ffff79821d2 in ?? () from /usr/lib/
#10 0x00007ffff7984061 in xmlSecEncCtxDec
#11 0x00007ffff7984345 in xmlSecEncCtxDecrypt () from /usr/lib/
#12 0x00000000004061ea in ?? ()
#13 0x0000000000403b0a in ?? ()
#14 0x00007ffff701376d in __libc_start_main () from /lib/x86_
#15 0x0000000000403ed1 in ?? ()
#16 0x00007fffffffe678 in ?? ()
#17 0x000000000000001c in ?? ()
#18 0x0000000000000009 in ?? ()
#19 0x00007fffffffe8dc in ?? ()
#20 0x00007fffffffe8ed in ?? ()
#21 0x00007fffffffe8f7 in ?? ()
#22 0x00007fffffffe901 in ?? ()
#23 0x00007fffffffe90e in ?? ()
#24 0x00007fffffffe918 in ?? ()
#25 0x00007fffffffe92f in ?? ()
#26 0x00007fffffffe93d in ?? ()
#27 0x00007fffffffe94f in ?? ()
#28 0x0000000000000000 in ?? ()
I won't give full core dump file, it contains my privkey
I debugged this more. 32bit version of xmlsec1 works fine.
Crash happens during function call xmlSecEncCtxDec rypt(&encCtx, data->startNode). Call is made from apps/xmlsec.c:1710
start_time = clock(); Decrypt( &encCtx, data->startNode) < 0) {
fprintf( stderr, "Error: failed to decrypt file\n");
> if(xmlSecEncCtx
goto done;
}
total_time += clock() - start_time;
encCtx and data and data->startNode all have some content, but my knowledge about ssl-libraries is too small, so I cannot verify if that content is correct.