The following SQL causes an assertion fault:

<blockquote><verbatim>
CREATE TABLE t1(a);
CREATE TABLE t2(b);
CREATE TABLE t3(c);
CREATE VIEW vvv AS SELECT b FROM t2 ORDER BY 1;
SELECT 123 FROM t1, (SELECT b FROM vvv UNION ALL SELECT c from t3);


Bisecting isolates the problem to check-in [b9727e6bbfc3c] (2015-05-22).
The problem first appeared in version 3.8.11 on 2015-07-27.