Seems bcli->args[3] should be bcli->args[2] on lines 194 and 206 of bitcoind.c.
My setup: 2 ubuntu VMs networked to eachother, one has bitcoind running, both have lightningd. lighning-cli connect [ip] [port] [tx] causes segfault on the machine that's connecting.