The following bug has been logged on the website:
Bug reference: 14809
Logged by: Matthew Maurer
Email address: matthew(dot)r(dot)maurer(at)gmail(dot)com
PostgreSQL version: 9.6.5
Operating system: Ubuntu Xenial
Description:
Log looks like: https://bpaste.net/show/4c1d3940ca27
https://data.maurer.codes/clique.sql contains a reproduction case.
On my machine, this consistently causes the glibc heap assertion in about 9
seconds on a fresh database. If you get "ERROR: stack depth limit exceeded"
you may need to increase your max_stack_depth to observe the error (mine was
2MB, but is a release build, debug builds might need more to hit this).