Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15587

AES test fails, segfaults in EVP_CipherInit_ex

    XMLWordPrintable

    Details

      Description

      The aes test always fails:

      gdb /home/mariadb/mariadb-10.2.13/unittest/mysys/aes-t
      GNU gdb (Debian 7.11.1-2~bpo8+1) 7.11.1
      Copyright (C) 2016 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      and "show warranty" for details.
      This GDB was configured as "x86_64-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <http://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
      <http://www.gnu.org/software/gdb/documentation/>.
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from /home/mariadb/mariadb-10.2.13/unittest/mysys/aes-t...done.
      (gdb) r
      Starting program: /home/mariadb/mariadb-10.2.13/unittest/mysys/aes-t 
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
      1..87
      ok 1 - encrypt MY_AES_ECB 200 pad
      ok 2 - my_aes_get_size
      ok 3 - md5
      ok 4 - decrypt MY_AES_ECB 208
      ok 5 - memcmp
      ok 6 - encrypt MY_AES_ECB 128 pad
      ok 7 - my_aes_get_size
      ok 8 - md5
      ok 9 - decrypt MY_AES_ECB 144
      ok 10 - memcmp
      ok 11 - encrypt MY_AES_CBC 159 pad
      ok 12 - my_aes_get_size
      ok 13 - md5
      ok 14 - decrypt MY_AES_CBC 160
      ok 15 - memcmp
      ok 16 - encrypt MY_AES_CBC 192 pad
      ok 17 - my_aes_get_size
      ok 18 - md5
      ok 19 - decrypt MY_AES_CBC 208
      ok 20 - memcmp
       
      Program received signal SIGSEGV, Segmentation fault.
      EVP_CipherInit_ex (enc=1, iv=0x0, key=<optimized out>, cipher=0x555555600d04 <EVP_aes_128_ecb()::c>, ctx=0x7fffffffd208) at /home/mariadb/mariadb-10.2.13/mysys_ssl/yassl.cc:100
      100         TAO(ctx)->SetIV(iv);
      (gdb) quit
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              NG Nicolas G.
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: