Segfault when running N1QL query & port 8093 is not available

n1ql

#1

I’ve been pulling my hair out for the last couple days over this one.

It turns out that the Ruby client library throws a segfault (using Ruby 2.2.3 & 2.3.1) when port 8093 is not available. I’m running couchbase in a Docker container, and only exposed the secure port (18093).

I can’t log a bug report on your JIRA because you need an account and users can’t sign up freely. This is IMHO terrible for open-source because developers can’t quickly & easily submit bug reports without an admin’s blessing.


#2

do you also use secure port to bootstrap? could you provide minimal example to reproduce?


#3

I was experimenting with the secure port, still reading up on it.

To reproduce, simply connect to couchbase with the latest Ruby client but don’t expose port 8093, and you’ll see a segfault. There’s some missing exception handling somewhere.