Skip to content

Conflict resolution accesses front() of an empty vector #11

@cernoch

Description

@cernoch

At this exact line, the uip_clauses_.back() can become an empty vector:

if (uip_clauses_.back().front() == TOS_decLit().neg()) {

Calling .front() on an empty vector is an undefined behavior.

How to reproduce:

  1. Checkout the bug-conflict-resolution-invalid-access branch.
  2. Build as usual.
  3. Run the report-test: ctest -R bugreport:vector_empty_front_called. I got the following error:
    Start 2: bugreport:vector_empty_front_called
1/1 Test #2: bugreport:vector_empty_front_called ...***Exception: SegFault  0.12 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.20 sec

The following tests FAILED:
	  2 - bugreport:vector_empty_front_called (SEGFAULT)
Errors while running CTest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions