<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hey everyone,<br>
    <br>
    I think I ran into a regression in IPython 3.0 where whenever I
    interrupt running code, the IPython console and kernel crash.
    Probably the easiest way I know to reproduce this is:<br>
    <font face="monospace">$ ipython console<br>
      In [1]: for i in range(1000000):<br>
         ...:    print i<br>
         ...:</font><br>
    And then press Ctrl-C during execution.<br>
    <br>
    I expect that it will catch a KeyboardInterrupt exception and then
    go back to an IPython prompt. However, instead it outputs:<br>
    <font face="monospace">Out [1]: 1<br>
      2<br>
      <font face="sans-serif"><...></font><br>
      41654^CTraceback (most recent call last):<br>
        File "/usr/custom/Anaconda-2.0.1/bin/ipython", line 6, in
      <module><br>
          sys.exit(start_ipython())<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/__init__.py",
      line 120, in start_ipython<br>
          return launch_new_instance(argv=argv, **kwargs)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/config/application.py",
      line 574, in launch_instance<br>
          app.start()<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py",
      line 367, in start<br>
          return self.subapp.start()<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/ipapp.py",
      line 371, in start<br>
          self.shell.mainloop()<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py",
      line 407, in mainloop<br>
          self.interact(display_banner=display_banner)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py",
      line 568, in interact<br>
          self.run_cell(source_raw)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py",
      line 168, in run_cell<br>
          self.handle_input_request(msg_id, timeout=0.05)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/terminal/console/interactiveshell.py",
      line 373, in handle_input_request<br>
          req = self.client.stdin_channel.get_msg(timeout=timeout)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/IPython/kernel/blocking/channels.py",
      line 50, in get_msg<br>
          ready = self.socket.poll(timeout)<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/socket.py",
      line 448, in poll<br>
          evts = dict(p.poll(timeout))<br>
        File
      "/usr/custom/Anaconda-2.0.1/lib/python2.7/site-packages/zmq/sugar/poll.py",
      line 101, in poll<br>
          return zmq_poll(self.sockets, timeout=timeout)<br>
        File "zmq/backend/cython/_poll.pyx", line 115, in
      zmq.backend.cython._poll.zmq_poll
      (zmq/backend/cython/_poll.c:1586)<br>
        File "zmq/backend/cython/checkrc.pxd", line 21, in
      zmq.backend.cython.checkrc._check_rc
      (zmq/backend/cython/_poll.c:2016)<br>
          raise ZMQError(errno)<br>
      ZMQError: Interrupted system call<br>
      <br>
      If you suspect this is an IPython bug, please report it at:<br>
          <a class="moz-txt-link-freetext" href="https://github.com/ipython/ipython/issues">https://github.com/ipython/ipython/issues</a><br>
      or send an email to the mailing list at <a class="moz-txt-link-abbreviated" href="mailto:ipython-dev@scipy.org">ipython-dev@scipy.org</a><br>
      <br>
      You can print a more detailed traceback right now with "%tb", or
      use "%debug"<br>
      to interactively debug it.<br>
      <br>
      Extra-detailed tracebacks for bug-reporting purposes can be
      enabled via:<br>
          %config Application.verbose_crash=True<br>
      $</font><br>
    <br>
    Dropping me back at the shell. This doesn't occur in just running
    plain "$ ipython", so the kernel should have something to do with
    it.<br>
    <br>
    I am running IPython 3.0 through Anaconda on CentOS 6.6.I hadn't
    encountered this bug in IPython 2. Maybe other people can confirm if
    it occurs for them. And if so, what additional info I would need to
    file a bug report. Thanks!<br>
    <br>
                                                                 Gregory
    Simonian<br>
  </body>
</html>