The program produces a segfault when I start it without arguments.

Segmentation fault (core dumped)

The core dump is missing.
I ran GDB to find the source of the error. It's from the wayland client:

wl_proxy_get_version (proxy=proxy@entry=0x1) at ../wayland-1.23.1/src/wayland-client.c:2317
2317 return proxy->version;