public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc
@ 2020-12-01  2:54 rnsanchez at gmail dot com
  2020-12-01 10:19 ` [Bug analyzer/98073] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rnsanchez at gmail dot com @ 2020-12-01  2:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98073
           Summary: error: in can_merge_p, at analyzer/region-model.cc
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: rnsanchez at gmail dot com
  Target Milestone: ---

Created attachment 49655
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49655&action=edit
Manually reduced after preprocessing http_htx.c

While compiling HAProxy from git (@v2.4-dev1-42-g4d6c59499).

Compiling the reduced file:

$ cc -Iinclude -fanalyzer -Wno-address-of-packed-member       -DUSE_EPOLL 
-DUSE_NETFILTER -DUSE_PCRE    -DUSE_POLL  -DUSE_THREAD  -DUSE_BACKTRACE  
-DUSE_TPROXY -DUSE_LINUX_TPROXY -DUSE_LINUX_SPLICE -DUSE_LIBCRYPT -DUSE_CRYPT_H
-DUSE_GETADDRINFO -DUSE_OPENSSL -DUSE_LUA -DUSE_FUTEX -DUSE_ACCEPT4  -DUSE_ZLIB
 -DUSE_CPU_AFFINITY -DUSE_TFO -DUSE_NS -DUSE_DL -DUSE_RT      -DUSE_PRCTL
-DUSE_THREAD_DUMP     -DUSE_PCRE -I/usr/include 
-DCONFIG_HAPROXY_VERSION=\"2.4-dev1-4d6c59-42\"
-DCONFIG_HAPROXY_DATE=\"2020/11/30\" -c -o src/http_htx.o
src/http_htx-reduced.i -v -save-temps
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/10.2.0/specs
COLLECT_GCC=cc
Target: x86_64-slackware-linux
Configured with: ../configure --prefix=/usr --libdir=/usr/lib64
--mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap
--enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++
--enable-threads=posix --enable-checking=release --enable-objc-gc
--with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new
--disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit
--disable-libssp --enable-gnu-unique-object --enable-plugin --enable-lto
--disable-install-libiberty --disable-werror --with-gnu-ld --with-isl --verbose
--with-arch-directory=amd64 --disable-gtktest --enable-clocale=gnu
--disable-multilib --target=x86_64-slackware-linux
--build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-I' 'include' '-fanalyzer' '-Wno-address-of-packed-member'
'-D' 'USE_EPOLL' '-D' 'USE_NETFILTER' '-D' 'USE_PCRE' '-D' 'USE_POLL' '-D'
'USE_THREAD' '-D' 'USE_BACKTRACE' '-D' 'USE_TPROXY' '-D' 'USE_LINUX_TPROXY'
'-D' 'USE_LINUX_SPLICE' '-D' 'USE_LIBCRYPT' '-D' 'USE_CRYPT_H' '-D'
'USE_GETADDRINFO' '-D' 'USE_OPENSSL' '-D' 'USE_LUA' '-D' 'USE_FUTEX' '-D'
'USE_ACCEPT4' '-D' 'USE_ZLIB' '-D' 'USE_CPU_AFFINITY' '-D' 'USE_TFO' '-D'
'USE_NS' '-D' 'USE_DL' '-D' 'USE_RT' '-D' 'USE_PRCTL' '-D' 'USE_THREAD_DUMP'
'-D' 'USE_PCRE' '-I' '/usr/include' '-D'
'CONFIG_HAPROXY_VERSION="2.4-dev1-4d6c59-42"' '-D'
'CONFIG_HAPROXY_DATE="2020/11/30"' '-c' '-o' 'src/http_htx.o' '-v'
'-save-temps' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-slackware-linux/10.2.0/cc1 -fpreprocessed
src/http_htx-reduced.i -quiet -dumpbase http_htx-reduced.i -mtune=generic
-march=x86-64 -auxbase-strip src/http_htx.o -Wno-address-of-packed-member
-version -fanalyzer -o http_htx-reduced.s
GNU C17 (GCC) version 10.2.0 (x86_64-slackware-linux)
        compiled by GNU C version 10.2.0, GMP version 6.2.0, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C17 (GCC) version 10.2.0 (x86_64-slackware-linux)
        compiled by GNU C version 10.2.0, GMP version 6.2.0, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7ecb224e89d32d55be91bf0fce5dc194
during IPA pass: analyzer
src/http_htx-reduced.i: In function 'http_update_host':
src/http_htx-reduced.i:123:14: internal compiler error: in can_merge_p, at
analyzer/region-model.cc:2053
  123 |    authority = uri;
      |    ~~~~~~~~~~^~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug analyzer/98073] error: in can_merge_p, at analyzer/region-model.cc
  2020-12-01  2:54 [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc rnsanchez at gmail dot com
@ 2020-12-01 10:19 ` marxin at gcc dot gnu.org
  2020-12-01 10:23 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-01 10:19 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2020-12-01

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed on master with r11-2694-g808f4dfeb3a95f50.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug analyzer/98073] error: in can_merge_p, at analyzer/region-model.cc
  2020-12-01  2:54 [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc rnsanchez at gmail dot com
  2020-12-01 10:19 ` [Bug analyzer/98073] " marxin at gcc dot gnu.org
@ 2020-12-01 10:23 ` marxin at gcc dot gnu.org
  2021-01-06  1:54 ` cvs-commit at gcc dot gnu.org
  2021-01-06  2:03 ` dmalcolm at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-01 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:

struct ist {
  char ptr;
  long len
} __trans_tmp_1, http_update_host_authority;
http_update_host_sl_0_0_0;
http_update_host(const struct ist uri) {
  uri.len || uri.ptr;
  if (http_update_host_sl_0_0_0) {
    http_update_host_authority = __trans_tmp_1;
    !http_update_host_authority.len;
  } else
    http_update_host_authority = uri;
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug analyzer/98073] error: in can_merge_p, at analyzer/region-model.cc
  2020-12-01  2:54 [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc rnsanchez at gmail dot com
  2020-12-01 10:19 ` [Bug analyzer/98073] " marxin at gcc dot gnu.org
  2020-12-01 10:23 ` marxin at gcc dot gnu.org
@ 2021-01-06  1:54 ` cvs-commit at gcc dot gnu.org
  2021-01-06  2:03 ` dmalcolm at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-06  1:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:

https://gcc.gnu.org/g:23fc2be633c61f24a4fbd4096c669e7147ca44ae

commit r11-6496-g23fc2be633c61f24a4fbd4096c669e7147ca44ae
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Tue Jan 5 20:53:40 2021 -0500

    analyzer: add regression test for PR 98073

    This ICE was fixed by r11-2694-g808f4dfeb3a95f50 (aka the big state
    rewrite for GCC 11).

    gcc/testsuite/ChangeLog:
            PR analyzer/98073
            * gcc.dg/analyzer/pr98073.c: New test.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug analyzer/98073] error: in can_merge_p, at analyzer/region-model.cc
  2020-12-01  2:54 [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc rnsanchez at gmail dot com
                   ` (2 preceding siblings ...)
  2021-01-06  1:54 ` cvs-commit at gcc dot gnu.org
@ 2021-01-06  2:03 ` dmalcolm at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2021-01-06  2:03 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this.

This is fixed for GCC 11, but is not fixable for GCC 10.  Marking as resolved.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-06  2:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  2:54 [Bug analyzer/98073] New: error: in can_merge_p, at analyzer/region-model.cc rnsanchez at gmail dot com
2020-12-01 10:19 ` [Bug analyzer/98073] " marxin at gcc dot gnu.org
2020-12-01 10:23 ` marxin at gcc dot gnu.org
2021-01-06  1:54 ` cvs-commit at gcc dot gnu.org
2021-01-06  2:03 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).