https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94516

            Bug ID: 94516
           Summary: [10 Regression] gnutls test ./psk-file fails since
                    r10-7515-g2c0fa3ecf70d199af18785702e9e0548fd3ab793
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

The following release:
https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.12.tar.xz

fails with:
$ export CFLAGS="-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
-Werror=return-type -g -fPIE"
$ ./configure
$ make
$ cd tests
$ make check
$ valgrind ./psk-file 
==22044== Memcheck, a memory error detector
==22044== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==22044== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==22044== Command: ./psk-file
==22044== 
ntest NORMAL:-KX-ALL:+PSK (user:non-hex)
==22045== 
==22045== HEAP SUMMARY:
==22045==     in use at exit: 337 bytes in 7 blocks
==22045==   total heap usage: 1,371 allocs, 1,364 frees, 203,699 bytes
allocated
==22045== 
==22045== LEAK SUMMARY:
==22045==    definitely lost: 0 bytes in 0 blocks
==22045==    indirectly lost: 0 bytes in 0 blocks
==22045==      possibly lost: 0 bytes in 0 blocks
==22045==    still reachable: 337 bytes in 7 blocks
==22045==         suppressed: 0 bytes in 0 blocks
==22045== Rerun with --leak-check=full to see details of leaked memory
==22045== 
==22045== For lists of detected and suppressed errors, rerun with: -s
==22045== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
test
NORMAL:-VERS-ALL:+VERS-TLS1.3:-CIPHER-ALL:+AES-128-GCM:+DHE-PSK:+PSK:-GROUP-DH-ALL
(user:jas)
==22046== 
==22046== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==22046==  General Protection Fault
==22046==    at 0x48D291A: UnknownInlinedFun (pk.c:1925)
==22046==    by 0x48D291A: wrap_nettle_pk_generate_keys.lto_priv.0 (pk.c:2509)
==22046==    by 0x48F53FB: client_gen_key_share (key_share.c:95)
==22046==    by 0x48F59CC: key_share_send_params.lto_priv.0 (key_share.c:725)
==22046==    by 0x4998F6B: hello_ext_send (hello_ext.c:368)
==22046==    by 0x49660D5: UnknownInlinedFun (extv.c:218)
==22046==    by 0x49660D5: _gnutls_extv_append (extv.c:200)
==22046==    by 0x4999301: _gnutls_gen_hello_extensions (hello_ext.c:436)
==22046==    by 0x49B2731: UnknownInlinedFun (handshake.c:2265)
==22046==    by 0x49B2731: UnknownInlinedFun (handshake.c:2895)
==22046==    by 0x49B2731: gnutls_handshake (handshake.c:2727)
==22046==    by 0x402C1F: client (psk-file.c:102)
==22046==    by 0x4030B3: run_test3 (psk-file.c:349)
==22046==    by 0x4031FE: run_test2 (psk-file.c:358)
==22046==    by 0x4031FE: doit (psk-file.c:407)

Reply via email to