Page MenuHome GnuPG

test "basic" dumps core on sparcv9
Closed, ResolvedPublic

Description

One test of the testsuite of libgcrypt 1.5.1 is failing when compiling on Solaris
10 with Sun Studio 12 compiler as 64 bit sparcv9:

dam@unstable10s [unstable10s]:/home/dam/mgar/pkg/libgcrypt/trunk/work/solaris10-
sparc/build-isa-sparcv9/libgcrypt-1.5.1/tests > file core
core: ELF 64-bit MSB core file SPARCV9 Version 1, from 'basic'

dam@unstable10s [unstable10s]:/home/dam/mgar/pkg/libgcrypt/trunk/work/solaris10-
sparc/build-isa-sparcv9/libgcrypt-1.5.1/tests > pstack core
core 'core' of 7975: /home/dam/mgar/pkg/libgcrypt/trunk/work/solaris10-
sparc/build-isa-spar
ffffffff7eb4bb90 serpent_key_prepare (100133c98, ffffffff7ffff09d, 10, a0f8,
17cb70, a000) + b8
ffffffff7eb4cef0 serpent_setkey (100133c98, ffffffff7ffff09d, 10, a248,
ffffffff7eca2bb8, a000) + 88
ffffffff7eb20054 cipher_setkey (100133bf0, ffffffff7ffff09d, 10,
ffffffff7eb4ce68, 100133bf0, ffffffff7ec9eb18) + 18
0000000100004050 check_one_cipher_core (130, 1, 0, ffffffff7ffff09d, 20,
ffffffff7ffff088) + 144
00000001000043a0 check_one_cipher (130, 1, 0, 10002b, ffffffff7ffff09c,
ffffffff7ffff09d) + c4
00000001000045ac check_ciphers (1001312c0, 10002b140, 100130398, 100130000,
10013118c, 100000) + 140
0000000100005c44 main (1, 0, 100131188, 10002f728, 0, 0) + 268
0000000100001d7c _start (0, 0, 0, 0, 0, 0) + 17c

Please let me know what else you need to further diagnose the issue.

Best regards -- Dago

Details

Due Date
Mar 31 2013, 1:00 AM
Version
1.5.1

Related Objects

Event Timeline

I just verified that the issue only appears on 64 bit sparc, all others like 32
bit i386, 32 bit sparc and 64 bit amd64 work fine, so it is most likely a byte-
order issue.

Ah yes, that Serpent case again. We have a fix for that but a brief inspection
made me believe that it will only happen if the serpent.c code is used outside
of the Libgcrypt. It is an alignment problem. Please give me a few days to
prepare an updated patch.

werner claimed this task.