The following SQL results in a segfault while running the SELECT statement.

<blockquote><pre>
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3), (4,5,6);
CREATE TABLE t2(d,e,f);
INSERT INTO t2 VALUES(3,6,9), (4,8,12);
SELECT * FROM t1 AS x LEFT JOIN t2 AS y ON (y.d=x.c) OR (y.e=x.b);


This problem was initially reported on the | mailing list].  The problem
appears to have been introduced by check-in [62678be3df35cdcb091] and first
appeared in version 3.7.14.