https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92588
Bug ID: 92588
Summary: [10 Regression] ICE nodes with unreleased memory found
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: marxin at gcc dot gnu.org
Target Milestone: ---
I see the following ICE in openssl package:
$ gcc fips_rsagtest.o libssl.a libcrypto.a
dh_pmeth.c:304:12: warning: type of ‘dsa_builtin_paramgen’ does not match
original declaration [-Wlto-type-mismatch]
dsa_gen.c:142:5: note: type mismatch in parameter 10
dsa_gen.c:142:5: note: ‘dsa_builtin_paramgen’ was previously declared here
dsa_gen.c:142:5: note: code may be misoptimized unless ‘-fno-strict-aliasing’
is used
cryptlib.c:656:21: warning: type of ‘OPENSSL_ia32cap_P’ does not match original
declaration [-Wlto-type-mismatch]
fips.c:412:33: note: array types have different bounds
fips.c:412:33: note: ‘OPENSSL_ia32cap_P’ was previously declared here
In function ‘memcpy’,
inlined from ‘RSA_eay_public_decrypt’ at rsa_eay.c:754:9:
/usr/include/bits/string_fortified.h:34:10: warning: ‘__builtin_memcpy’
specified bound 18446744073709551615 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]
34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0
(__dest));
| ^
OPENSSL_init_library/47123 (OPENSSL_init_library) @0x7f9423afc580
Type: function definition
Visibility: visibility_specified visibility:hidden artificial constructor
References:
Referring:
Read from file: /tmp/ccIpL02r.ltrans8.o
Availability: not_available
Function flags: count:158289380 (estimated locally) body local
static_constructor (priority:65535) executed_once
Called by:
Calls:
OPENSSL_init_library/48240 (OPENSSL_init_library) @0x7f9423af56e0
Type: function definition
Visibility: visibility_specified visibility:hidden artificial constructor
References:
Referring:
Read from file: /tmp/ccIpL02r.ltrans8.o
Clone of OPENSSL_init_library/47123
Availability: not_available
Function flags: count:334850 (estimated locally) body local
static_constructor (priority:65535) executed_once
Called by:
Calls:
lto1: internal compiler error: nodes with unreleased memory found
0x894911 symbol_table::compile()
/home/marxin/Programming/gcc/gcc/cgraphunit.c:2717
0x7f2539 lto_main()
/home/marxin/Programming/gcc/gcc/lto/lto.c:657
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
I'm sending LTO bytecode as it's too many files one needs:
https://drive.google.com/file/d/1Rd5OIekl9To5tT0Duw5mXNX4BzJ3kBVg/view?usp=sharing
GCC compiler version needed:
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.0 20191119 (experimental) (SUSE Linux)