eternaltyro / cryptsetup

Since Google code is shuttering...
http://code.google.com/p/cryptsetup
GNU General Public License v2.0
0 stars 0 forks source link

Cryptsetup benchmark 1.6.3 broken on Ubuntu 12.04 #206

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.get source from 
https://cryptsetup.googlecode.com/files/cryptsetup-1.6.3.tar.bz2

2.configure, make, make install

3. Try to run benchmarks: cryptsetup benchmark

What is the expected output? What do you see instead?
EXTECTED:
     # cryptsetup benchmark
     # Tests are approximate using memory only (no storage IO).
     PBKDF2-sha1       111077 iterations per second
     PBKDF2-sha256      53718 iterations per second
     PBKDF2-sha512      18832 iterations per second
     PBKDF2-ripemd160   89775 iterations per second
     PBKDF2-whirlpool   23918 iterations per second
     #  Algorithm | Key | Encryption | Decryption
          aes-cbc   128b  212.0 MiB/s  428.0 MiB/s
      serpent-cbc   128b   23.1 MiB/s   66.0 MiB/s
      twofish-cbc   128b   46.1 MiB/s   50.5 MiB/s
          aes-cbc   256b  163.0 MiB/s  350.0 MiB/s
      serpent-cbc   256b   23.1 MiB/s   66.0 MiB/s
      twofish-cbc   256b   47.0 MiB/s   50.0 MiB/s
          aes-xts   256b  190.0 MiB/s  190.0 MiB/s
      serpent-xts   256b   58.4 MiB/s   58.0 MiB/s
      twofish-xts   256b   49.0 MiB/s   49.5 MiB/s
          aes-xts   512b  175.0 MiB/s  175.0 MiB/s
      serpent-xts   512b   59.0 MiB/s   58.0 MiB/s
      twofish-xts   512b   48.5 MiB/s   49.5 MiB/s

ACTUAL:

# Tests are approximate using memory only (no storage IO).
cryptsetup: relocation error: cryptsetup: symbol crypt_benchmark_kdf, version 
CRYPTSETUP_1.0 not defined in file libcryptsetup.so.4 with link time reference

What version of the product are you using? On what operating system?
1.6.3

Please provide any additional information below.
Issue discovered on Ubuntu 12.04, 
3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux

Original issue reported on code.google.com by n.pal...@gmail.com on 14 Feb 2014 at 4:10

GoogleCodeExporter commented 9 years ago
also applies to 1.6.2

Original comment by n.pal...@gmail.com on 14 Feb 2014 at 4:12

GoogleCodeExporter commented 9 years ago
This is almost for sure caused by your environment. You have probably old 
libcryptsetup library somewhere in path.

Use ldd on cryptsetup binary which causes this, check where it see old 
libcryptsetup.so and uninstall it.

(Next time I will increase version when adding symbols so this will fail better 
way.)

Original comment by gmazyl...@gmail.com on 14 Feb 2014 at 5:14

GoogleCodeExporter commented 9 years ago

Original comment by gmazyl...@gmail.com on 16 Feb 2014 at 8:46