[Opendnssec-user] segfault in ods-enforcerd / libbotan

Casper Gielen c.gielen at uvt.nl
Wed Jul 11 10:01:40 UTC 2012

I'm experiencing a segfaults ods-enforcerd in my test environment.

Jul 11 11:31:58 metagross kernel: [1050508.832383] ods-enforcerd[12574]: 
segfault at 8 ip 00007ffff561f8ad sp 00007fffffffe890 error 6 in 

strace:# strace ->
open("/var/lib/softhsm/slot0.db", O_RDWR|O_CREAT, 0644) = 6
... a lot of seeking and reading
lseek(6, 22616064, SEEK_SET)            = 22616064
1024) = 1024
fcntl(6, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0

and a backtrace:
#0  0x00007ffff561f8ad in Botan::SHA_256::clear() () from 
#1  0x00007ffff59af6a9 in SHA_256 (pPin=0x654f30 "CENSUUR", ulPinLen=8) 
at /usr/include/botan-1.10/botan/sha2_32.h:50
#2  digestPIN (pPin=0x654f30 "CENSUUR", ulPinLen=8) at userhandling.cpp:113
#3  0x00007ffff59b04c7 in SoftHSMInternal::login (this=0x628e70, 
hSession=Unhandled dwarf expression opcode 0xf3
) at SoftHSMInternal.cpp:306
#4  0x00000000004195e1 in hsm_session_init (repository=0x6526d0 
"LocalHSM", token_label=0x654dd0 "LocalHSM", path=Unhandled dwarf 
expression opcode 0xf3
) at ../../../../libhsm/src/libhsm.c:553
#5  hsm_attach (repository=0x6526d0 "LocalHSM", token_label=0x654dd0 
"LocalHSM", path=Unhandled dwarf expression opcode 0xf3
) at ../../../../libhsm/src/libhsm.c:2611
#6  0x00000000004198ee in hsm_open (config=Unhandled dwarf expression 
opcode 0xf3
) at ../../../../libhsm/src/libhsm.c:1800
#7  0x0000000000407fa0 in server_main (config=0x6256c0) at 
#8  0x0000000000404ae7 in main (argc=2, argv=0x7fffffffec78) at 

This is a test-environment so security is not an issue and I'm happy to 
mail out the sofhshm database and anything else that you might be 
interested in.

This machine runs Debian testing (wheezy) with ODS 1:1.3.9 as provided 
by Debian.
Casper Gielen <cgielen at uvt.nl> | LIS UNIX
PGP fingerprint = 16BD 2C9F 8156 C242 F981  63B8 2214 083C F80E 4AF7

Universiteit van Tilburg | Postbus 90153, 5000 LE
Warandelaan 2 | Telefoon 013 466 4100 | G 236 | http://www.uvt.nl

More information about the Opendnssec-user mailing list