public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105577] New: [12 Regression] ICE in delete_unmarked_insns, at dce.cc:653
@ 2022-05-12  8:52 curdeius at gmail dot com
  2022-05-12  8:53 ` [Bug c++/105577] " curdeius at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: curdeius at gmail dot com @ 2022-05-12  8:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105577
           Summary: [12 Regression] ICE in delete_unmarked_insns, at
                    dce.cc:653
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: curdeius at gmail dot com
  Target Milestone: ---

Similar to bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90082.

GCC 12.1.0 ICEs when compiling this code with:
```
g++ -DROCKSDB_PLATFORM_POSIX -isystem rocksdb-cloud -isystem
rocksdb-cloud/include -O3 -march=haswell -fnon-call-exceptions -c
rocksdb-cloud/db/db_impl/db_impl_compaction_flush.cc
```
All the three flags are important, as the ICE doesn't happen with -O2, nor
without -march, nor with -march=skylake, but it does happen with microarchs
older than haswell.
ICE doesn't happen without -fnon-call-exceptions either.

Version:
```
$ g++ --version
g++ (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

The minimized repro (couldn't do better for the moment, preprocessed source
attached of both minimal repro and the full file attached):
```
#include "db/db_impl/db_impl.h"

namespace ROCKSDB_NAMESPACE {

void DBImpl::InstallSuperVersionAndScheduleWork(
    ColumnFamilyData* cfd, SuperVersionContext* sv_context,
    const MutableCFOptions& mutable_cf_options) {
  if (UNLIKELY(sv_context->new_superversion == nullptr)) {
    sv_context->NewSuperVersion();
  }

  bottommost_files_mark_threshold_ = kMaxSequenceNumber;
  for (auto* my_cfd : *versions_->GetColumnFamilySet()) {
    bottommost_files_mark_threshold_ = std::min(
        bottommost_files_mark_threshold_,
        my_cfd->current()->storage_info()->bottommost_files_mark_threshold());
  }
}

}  // namespace ROCKSDB_NAMESPACE
```

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

end of thread, other threads:[~2022-06-01 15:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12  8:52 [Bug c++/105577] New: [12 Regression] ICE in delete_unmarked_insns, at dce.cc:653 curdeius at gmail dot com
2022-05-12  8:53 ` [Bug c++/105577] " curdeius at gmail dot com
2022-05-12  8:54 ` curdeius at gmail dot com
2022-05-12  9:04 ` marxin at gcc dot gnu.org
2022-05-12  9:29 ` [Bug rtl-optimization/105577] [12/13 " pinskia at gcc dot gnu.org
2022-05-12  9:47 ` curdeius at gmail dot com
2022-05-12 10:18 ` marxin at gcc dot gnu.org
2022-05-12 10:19 ` [Bug rtl-optimization/105577] [12/13 Regression] ICE in delete_unmarked_insns, at dce.cc:653 since r12-248-gb58dc0b803057c0e marxin at gcc dot gnu.org
2022-05-12 10:25 ` pinskia at gcc dot gnu.org
2022-05-12 11:53 ` rguenth at gcc dot gnu.org
2022-05-12 12:03 ` rguenth at gcc dot gnu.org
2022-05-12 13:05 ` cvs-commit at gcc dot gnu.org
2022-05-12 13:06 ` [Bug rtl-optimization/105577] [12 " rguenth at gcc dot gnu.org
2022-05-12 14:25 ` marxin at gcc dot gnu.org
2022-05-16 10:08 ` cvs-commit at gcc dot gnu.org
2022-05-19 12:47 ` cvs-commit at gcc dot gnu.org
2022-05-19 12:47 ` cvs-commit at gcc dot gnu.org
2022-05-19 12:49 ` rguenth at gcc dot gnu.org
2022-06-01 15:18 ` curdeius at gmail dot com

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).