Skip to content

Segmentation fault: On SUB socket.connect() in release builds #329

@eicm

Description

@eicm

On release builds I get segmentation fault calling socket.connect(), while on debug builds it works fine:

int main(int argc, char* argv[]) {
  zmq::context_t context(1);
  zmq::socket_t socket(context, ZMQ_SUB);
  socket.setsockopt(ZMQ_SUBSCRIBE, "frame", 5);
  socket.connect("tcp://localhost:46461");
  return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions