Bug 86645 - [9 Regression] UBSAN error: tree-cfg.c:7874:26: runtime error: load of value 4293224825, which is not a valid value for type 'dump_flag'
Summary: [9 Regression] UBSAN error: tree-cfg.c:7874:26: runtime error: load of value ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 9.0
: P3 normal
Target Milestone: 9.0
Assignee: Martin Liška
URL:
Keywords:
Depends on:
Blocks: ubsan
  Show dependency treegraph
 
Reported: 2018-07-23 13:01 UTC by Martin Liška
Modified: 2018-07-25 08:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-07-23 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2018-07-23 13:01:10 UTC
Seen for any test-case.
Comment 1 Martin Liška 2018-07-23 13:02:25 UTC
I've got patch for it.
Comment 2 Martin Liška 2018-07-25 08:04:48 UTC
Author: marxin
Date: Wed Jul 25 08:04:15 2018
New Revision: 262960

URL: https://gcc.gnu.org/viewcvs?rev=262960&root=gcc&view=rev
Log:
Limit dump_flag enum values range (PR middle-end/86645).

2018-07-25  Martin Liska  <mliska@suse.cz>

        PR middle-end/86645
	* dumpfile.c: And excluded values with TDF_ALL_VALUES.
	* dumpfile.h (enum dump_flag): Defince TDF_ALL_VALUES.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dumpfile.c
    trunk/gcc/dumpfile.h
Comment 3 Martin Liška 2018-07-25 08:06:32 UTC
Fixed on trunk.