Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4387

Infinite loop in PredicateList.joinClauseTransitiveClosure()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.1, 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.1.0
    • Fix Version/s: 10.5.3.1, 10.6.1.0
    • Component/s: SQL
    • Labels:
      None
    • Issue & fix info:
      High Value Fix, Repro attached
    • Bug behavior facts:
      Crash

      Description

      This sequence of statements triggers an infinite loop in PredicateList.joinClauseTransitiveClosure() and never completes:

      create table c (a int, b int, c int);
      create table cc (aa int);

      select * from cc t1, c t2, cc t3 where t3.aa = t2.a and t3.aa = t2.b and t3.aa = t2.c;

        Attachments

        1. derby-4387.diff
          3 kB
          Dag H. Wanvik
        2. derby-4387.stat
          0.2 kB
          Dag H. Wanvik

          Issue Links

            Activity

              People

              • Assignee:
                dagw Dag H. Wanvik
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: