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

LSAN: 42872 bytes leaked in/by wolfSSL_Malloc

    XMLWordPrintable

Details

    Description

      I saw the following memory leak in malloc/wolfSSL_Malloc during preview-11.3-preview testing:

      preview-11.3-preview cc08a83ef4225960dccb46bd68fc549160d21841

      ==2097640==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 3792 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be67964 in wolfSSL_X509_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:4845
          #3 0x55917a602480 in vio_gencert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:124
          #4 0x55917a602480 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:164
          #5 0x55917a602480 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #6 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #7 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #8 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #9 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #10 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Direct leak of 192 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be5a66e in wolfSSL_EVP_PKEY_new_ex /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:8969
          #3 0x55917be5a7ee in wolfSSL_EVP_PKEY_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:8961
          #4 0x55917be5f78d in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2649
          #5 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #6 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #7 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #8 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #9 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #10 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #11 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #12 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 17008 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917bdf9a5e in wolfSSL_RSA_new_ex /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:939
          #3 0x55917bdfa053 in wolfSSL_RSA_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:1037
          #4 0x55917be5f59e in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3246
          #5 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #6 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #7 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #8 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #9 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #10 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #11 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #12 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #13 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2350 byte(s) in 1 object(s) allocated from:
          #0 0x559177338718 in realloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05718)
          #1 0x55917bff5d14 in wolfSSL_Realloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:426
          #2 0x55917bddd000 in PopulateRSAEvpPkeyDer /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:7759
          #3 0x55917be2b3f5 in wolfSSL_CTX_use_PrivateKey /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:30942
          #4 0x55917a602473 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #5 0x55917a602473 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #6 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #7 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #8 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #9 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #10 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d399 in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2482
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d262 in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2445
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d3f7 in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2496
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d33b in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2467
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d30c in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2460
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d36a in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2474
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d294 in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2451
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 2136 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be471d1 in wolfSSL_BN_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37624
          #3 0x55917be4d0ec in SetIndividualExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/ssl.c:37580
          #4 0x55917be4d3c8 in SetRsaExternal /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:2489
          #5 0x55917be4df6f in wolfssl_rsa_generate_key_native /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3169
          #6 0x55917be5f5b9 in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3254
          #7 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #8 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #9 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #10 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #11 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #12 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #13 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #14 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #15 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 1196 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917bfb1ca4 in AllocDer /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/asn.c:22454
          #3 0x55917be81d7e in wolfSSL_X509_resign_cert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:9900
          #4 0x55917be81d7e in wolfSSL_X509_sign /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:9940
          #5 0x55917a6024ee in vio_gencert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:133
          #6 0x55917a6024ee in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:164
          #7 0x55917a6024ee in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #8 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #9 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #10 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #11 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #12 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 550 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be82301 in wolfSSL_X509_set_pubkey /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:13068
          #3 0x55917a6024d3 in vio_gencert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:131
          #4 0x55917a6024d3 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:164
          #5 0x55917a6024d3 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #6 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #7 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #8 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #9 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #10 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 512 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917be81c4d in wolfSSL_X509_resign_cert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:9882
          #3 0x55917be81c4d in wolfSSL_X509_sign /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/x509.c:9940
          #4 0x55917a6024ee in vio_gencert /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:133
          #5 0x55917a6024ee in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:164
          #6 0x55917a6024ee in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #7 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #8 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #9 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #10 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #11 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 152 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917bdf9b1b in wolfSSL_RSA_new_ex /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:946
          #3 0x55917bdfa053 in wolfSSL_RSA_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:1037
          #4 0x55917be5f59e in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3246
          #5 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #6 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #7 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #8 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #9 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #10 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #11 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #12 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #13 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      Indirect leak of 32 byte(s) in 1 object(s) allocated from:
          #0 0x559177338367 in malloc (/test/28856_P2_UBASAN_MD211023-mariadb-11.3.0-linux-x86_64-dbg/bin/mariadbd+0x7d05367)
          #1 0x55917bff5cd6 in wolfSSL_Malloc /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/memory.c:293
          #2 0x55917bdf9c77 in wolfSSL_RSA_new_ex /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:982
          #3 0x55917bdfa053 in wolfSSL_RSA_new /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:1037
          #4 0x55917be5f59e in wolfSSL_RSA_generate_key /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/src/pk.c:3246
          #5 0x55917be5f958 in wolfSSL_EVP_PKEY_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/extra/wolfssl/wolfssl/wolfcrypt/src/evp.c:2661
          #6 0x55917a602416 in vio_keygen /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:112
          #7 0x55917a602416 in vio_set_cert_stuff /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:157
          #8 0x55917a602416 in new_VioSSLFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:408
          #9 0x55917a602d9b in new_VioSSLAcceptorFd /test/bb-11.3-mdev-28856-and-fixes_dbg_san/vio/viosslfactories.c:496
          #10 0x5591773a8872 in init_ssl /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:4710
          #11 0x5591773a8872 in mysqld_main(int, char**) /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/mysqld.cc:5884
          #12 0x55917737df0a in main /test/bb-11.3-mdev-28856-and-fixes_dbg_san/sql/main.cc:34
          #13 0x1536e2629d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
       
      SUMMARY: AddressSanitizer: 42872 byte(s) leaked in 17 allocation(s).
      231021 18:45:03 [ERROR] mysqld got signal 6 ;
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.