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

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
```
$ gcc -c inet_net_pton.i -O3 -march=znver2 -wrapper valgrind
==3723094== Memcheck, a memory error detector
==3723094== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==3723094== Using Valgrind-3.23.0.GIT and LibVEX; rerun with -h for copyright
info
==3723094== Command: /usr/libexec/gcc/x86_64-pc-linux-gnu/14/cc1 -fpreprocessed
inet_net_pton.i -quiet -dumpbase inet_net_pton.i -dumpbase-ext .i -march=znver2
-O3 -o /tmp/cclQ7eCN.s
==3723094==
==3723094== Invalid read of size 8
==3723094==    at 0x21DDFBE: UnknownInlinedFun (gimple-iterator.h:236)
==3723094==    by 0x21DDFBE: UnknownInlinedFun (tree-vect-loop.cc:11804)
==3723094==    by 0x21DDFBE: vect_transform_loop(_loop_vec_info*, gimple*)
(tree-vect-loop.cc:11969)
==3723094==    by 0x24647FD: vect_transform_loops(hash_table<simduid_to_vf,
false, xcallocator>*&, loop*, gimple*, function*) [clone .lto_priv.0]
(tree-vectorizer.cc:1006)
==3723094==    by 0x23D9AB1: UnknownInlinedFun (tree-vectorizer.cc:1152)
==3723094==    by 0x23D9AB1: try_vectorize_loop(hash_table<simduid_to_vf,
false, xcallocator>*&, unsigned int*, loop*, function*)
(tree-vectorizer.cc:1182)
==3723094==    by 0x2112028: (anonymous
namespace)::pass_vectorize::execute(function*) [clone .lto_priv.0]
(tree-vectorizer.cc:1298)
==3723094==    by 0x1B18654: execute_one_pass(opt_pass*) (passes.cc:2646)
==3723094==    by 0x1BDC0EB: execute_pass_list_1(opt_pass*) (passes.cc:2755)
==3723094==    by 0x1BDC108: execute_pass_list_1(opt_pass*) (passes.cc:2756)
==3723094==    by 0x1BDC108: execute_pass_list_1(opt_pass*) (passes.cc:2756)
==3723094==    by 0x1BDBE18: execute_pass_list(function*, opt_pass*)
(passes.cc:2766)
==3723094==    by 0x2295983: cgraph_node::expand() (cgraphunit.cc:1843)
==3723094==    by 0x1B14F13: UnknownInlinedFun (cgraphunit.cc:2026)
==3723094==    by 0x1B14F13: symbol_table::compile() (cgraphunit.cc:2400)
==3723094==    by 0x22A7598: symbol_table::finalize_compilation_unit()
(cgraphunit.cc:2585)
==3723094==  Address 0x20 is not stack'd, malloc'd or (recently) free'd
==3723094==
during GIMPLE pass: vect
In file included from
/var/tmp/portage/dev-libs/libbsd-0.11.8/work/libbsd-0.11.8/src/inet_net_pton.c:28:
/usr/include/arpa/inet.h: In function ‘inet_net_pton’:
/usr/include/arpa/inet.h:89:12: internal compiler error: Segmentation fault
   89 | extern int inet_net_pton (int __af, const char *__cp,
      |            ^~~~~~~~~~~~~
0x1262376 crash_signal
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/toplev.cc:317
0x21ddfbe gsi_prev(gimple_stmt_iterator*)
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/gimple-iterator.h:236
0x21ddfbe move_early_exit_stmts
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vect-loop.cc:11804
0x21ddfbe vect_transform_loop(_loop_vec_info*, gimple*)
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vect-loop.cc:11969
0x24647fd vect_transform_loops
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vectorizer.cc:1006
0x23d9ab1 try_vectorize_loop_1
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vectorizer.cc:1152
0x23d9ab1 try_vectorize_loop
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vectorizer.cc:1182
0x2112028 execute
       
/usr/src/debug/sys-devel/gcc-14.0.1.9999/gcc-14.0.1.9999/gcc/tree-vectorizer.cc:1298
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to