Opened 10 years ago

Closed 10 years ago

#112 closed defect (fixed)

cmdctl crash

Reported by: jreed Owned by: jreed
Priority: medium Milestone:
Component: Unclassified Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity:
Sub-Project: Feature Depending on Ticket:
Estimated Difficulty: Add Hours to Ticket:
Total Hours: Internal?:

Description

in bindctl I run:

Xfrin retransfer zone_name="foo" master="127.0.0.1"

I know I don't have the python bindings but still trying.

So it crashed cmdctl in addition to xfrin. bindctl hangs.

Here is part of output ...

--    self.send_header('Server', self.version_string())
  File "/usr/pkg/lib/python3.1/http/server.py", line 410, in send_header
    self.wfile.write(("%s: %s\r\n" % (keyword, value)).encode('ASCII', 'strict'))
  File "/usr/pkg/lib/python3.1/socket.py", line 219, in write
    return self._sock.send(b)
  File "/usr/pkg/lib/python3.1/ssl.py", line 205, in send
  File "/usr/pkg/lib/python3.1/ssl.py", line 205, in send
Traceback (most recent call last):
  File "/home/reed/opt/bind10/libexec/bind10/b10-cmdctl", line 479, in <module>
    v = self._sslobj.write(data)
socket.error: [Errno 32] Broken pipe
--------------------------------------
    run(options.addr, options.port, options.idle_timeout, options.verbose)
  File "/home/reed/opt/bind10/libexec/bind10/b10-cmdctl", line 437, in run
    httpd.serve_forever()
  File "/home/reed/opt/bind10/libexec/bind10/b10-cmdctl", line 401, in serve_forever
    if not self.cmdctrl.handle_recv_msg():
  File "/home/reed/opt/bind10/libexec/bind10/b10-cmdctl", line 253, in handle_recv_msg
    (message, env) = self.cc.group_recvmsg(True)
  File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 182, in group_recvmsg
    env, msg  = self.recvmsg(nonblock, seq)
  File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/session.py", line 111, in recvmsg
    return isc.cc.message.from_wire(data[2:header_length+2]), None
  File "/home/reed/opt/bind10/lib/python3.1/site-packages/isc/cc/message.py", line 142, in from_wire
    raise DecodeError("Incorrect protocol version")
isc.cc.message.DecodeError: Incorrect protocol version
Process b10-cmdctl (PID 25464) died.
Resurrecting dead b10-cmdctl process...
Resurrected b10-cmdctl (PID 17139)

Subtickets

Change History (2)

comment:1 Changed 10 years ago by shane

  • Owner set to jreed
  • Status changed from new to assigned

May have been fixed. Please check again.

comment:2 Changed 10 years ago by jreed

  • Resolution set to fixed
  • Status changed from assigned to closed

I can't repeat. Now I get:

> Xfrin retransfer zone_name="foo" master="127.0.0.1"
send the message to cmd-ctrld
received reply: {"error": "xfrin failed, can't load dns message python library: 'bind10_dns'"}

So I will close this ticket.

Note: See TracTickets for help on using tickets.