public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/97178] New: gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine'
@ 2020-09-23 11:29 marxin at gcc dot gnu.org
  2020-09-23 15:37 ` [Bug analyzer/97178] " dmalcolm at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-09-23 11:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97178
           Summary: gcc/analyzer/program-state.cc:575:54: runtime error:
                    member call on null pointer of type 'struct engine'
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

I see it when I build UBSAN compiler and run self tests:

/home/marxin/Programming/gcc2/objdir/./gcc/xgcc
-B/home/marxin/Programming/gcc2/objdir/./gcc/ -xc++ -nostdinc /dev/null -S -o
/dev/null -fself-test=/home/marxin/Programming/gcc2/gcc/testsuite/selftests
/home/marxin/Programming/gcc2/gcc/analyzer/program-state.cc:575:54: runtime
error: member call on null pointer of type 'struct engine'
/home/marxin/Programming/gcc2/gcc/analyzer/region-model.h:2859:56: runtime
error: member access within null pointer of type 'struct engine'
-fself-test: 61912 pass(es) in 1.120425 seconds

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

* [Bug analyzer/97178] gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine'
  2020-09-23 11:29 [Bug analyzer/97178] New: gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine' marxin at gcc dot gnu.org
@ 2020-09-23 15:37 ` dmalcolm at gcc dot gnu.org
  2020-09-23 17:29 ` cvs-commit at gcc dot gnu.org
  2020-09-23 17:33 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-09-23 15:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2020-09-23

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Thanks for filing this; confirmed.  Am testing a fix.

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

* [Bug analyzer/97178] gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine'
  2020-09-23 11:29 [Bug analyzer/97178] New: gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine' marxin at gcc dot gnu.org
  2020-09-23 15:37 ` [Bug analyzer/97178] " dmalcolm at gcc dot gnu.org
@ 2020-09-23 17:29 ` cvs-commit at gcc dot gnu.org
  2020-09-23 17:33 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-23 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:f65ebb5210e2fded0f7b339219685f4480124f0c

commit r11-3403-gf65ebb5210e2fded0f7b339219685f4480124f0c
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Wed Sep 23 11:18:43 2020 -0400

    analyzer: fix member call on null seen with ubsan [PR97178]

    gcc/analyzer/ChangeLog:
            PR analyzer/97178
            * engine.cc (impl_run_checkers): Update for change to ext_state
            ctor.
            * program-state.cc (selftest::test_sm_state_map): Pass an engine
            instance to ext_state ctor.
            (selftest::test_program_state_1): Likewise.
            (selftest::test_program_state_2): Likewise.
            (selftest::test_program_state_merging): Likewise.
            (selftest::test_program_state_merging_2): Likewise.
            * program-state.h (extrinsic_state::extrinsic_state): Remove NULL
            default value for "eng" param.

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

* [Bug analyzer/97178] gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine'
  2020-09-23 11:29 [Bug analyzer/97178] New: gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine' marxin at gcc dot gnu.org
  2020-09-23 15:37 ` [Bug analyzer/97178] " dmalcolm at gcc dot gnu.org
  2020-09-23 17:29 ` cvs-commit at gcc dot gnu.org
@ 2020-09-23 17:33 ` dmalcolm at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2020-09-23 17:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed by above commit.

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

end of thread, other threads:[~2020-09-23 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23 11:29 [Bug analyzer/97178] New: gcc/analyzer/program-state.cc:575:54: runtime error: member call on null pointer of type 'struct engine' marxin at gcc dot gnu.org
2020-09-23 15:37 ` [Bug analyzer/97178] " dmalcolm at gcc dot gnu.org
2020-09-23 17:29 ` cvs-commit at gcc dot gnu.org
2020-09-23 17:33 ` 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).