Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Last active April 23, 2016 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroyuki-sato/46837a7f1945d38c337784f6aa73a23e to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/46837a7f1945d38c337784f6aa73a23e to your computer and use it in GitHub Desktop.
iruby hangup on

Environment

  • OSX: 10.11.4
  • Ruby: 2.2.3
  • Python: 2.7.10

Ruby

  • iruby: (0.2.8)
  • ffi (1.9.10)
  • ffi-rzmq (2.0.4)
  • ffi-rzmq-core (1.0.4)

Python

  • notebook (4.2.0)
  • ipython (4.2.0)
  • jupyter (1.0.0)
  • jupyter-client (4.2.2)
  • jupyter-console (4.1.1)
  • jupyter-core (4.1.0)
% iruby notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
/path/to/home/.pyenv/versions/2.7.11/lib/python2.7/site-packages/widgetsnbextension/__init__.py:30: UserWarning: To use the jupyter-js-widgets nbextension, you'll need to update
the Jupyter notebook to version 4.2 or later.
the Jupyter notebook to version 4.2 or later.""")
[I 21:49:50.259 NotebookApp] The port 8888 is already in use, trying another port.
[I 21:49:50.267 NotebookApp] Serving notebooks from local directory: /private/tmp/test
[I 21:49:50.267 NotebookApp] 0 active kernels
[I 21:49:50.267 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 21:49:50.267 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 21:50:13.024 NotebookApp] Creating new notebook in
[I 21:50:13.695 NotebookApp] Kernel started: aac977a8-9afc-4ae6-a0c6-60e1436e7d09
[W 21:50:13.868 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160422214950 (::1) 20.53ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=ruby
ruby(32117,0x7fff747ed000) malloc: *** error for object 0x7fcbdb873ae8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[I 21:50:16.694 NotebookApp] KernelRestarter: restarting kernel (1/5)
ruby(32123,0x7fff747ed000) malloc: *** error for object 0x7feade80afc8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[I 21:50:19.705 NotebookApp] KernelRestarter: restarting kernel (2/5)
ruby(32129,0x7fff747ed000) malloc: *** error for object 0x7f960e971518: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
^C[I 21:50:20.809 NotebookApp] interrupted
Serving notebooks from local directory: /private/tmp/test
1 active kernels
The Jupyter Notebook is running at: http://localhost:8889/
Shutdown this notebook server (y/[n])? [I 21:50:22.718 NotebookApp] KernelRestarter: restarting kernel (3/5)
ruby(32134,0x7fff747ed000) malloc: *** error for object 0x7ff14b036b68: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[W 21:50:23.788 NotebookApp] Timeout waiting for kernel_info reply from aac977a8-9afc-4ae6-a0c6-60e1436e7d09
y
[C 21:50:24.071 NotebookApp] Shutdown confirmed
[I 21:50:24.072 NotebookApp] Shutting down kernels
[I 21:50:24.075 NotebookApp] Kernel shutdown: aac977a8-9afc-4ae6-a0c6-60e1436e7d09
ruby 2.2.4
(lldb) run -S /path/to/home/.rbenv/gems/2.2.0/bin/iruby kernel /path/to/home/Library/Jupyter/runtime/kernel-36773490-fc76-4550-991c-fdeeaf3fe7a9.json
Process 59289 launched: '/path/to/home/.rbenv/versions/2.2.4/bin/ruby' (x86_64)
ruby(59289,0x7fff747ed000) malloc: *** error for object 0x103690cd8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Process 59289 stopped
* thread #1: tid = 0x88703, 0x00007fff8cc94f06 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00007fff8cc94f06 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0x7fff8cc94f06 <+10>: jae 0x7fff8cc94f10 ; <+20>
0x7fff8cc94f08 <+12>: movq %rax, %rdi
0x7fff8cc94f0b <+15>: jmp 0x7fff8cc8f7cd ; cerror_nocancel
0x7fff8cc94f10 <+20>: retq
(lldb) bt
* thread #1: tid = 0x88703, 0x00007fff8cc94f06 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff8cc94f06 libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff96ba04ec libsystem_pthread.dylib`pthread_kill + 90
frame #2: 0x00007fff92ec66e7 libsystem_c.dylib`abort + 129
frame #3: 0x00007fff8d2d6396 libsystem_malloc.dylib`szone_error + 626
frame #4: 0x00007fff8d2c9c03 libsystem_malloc.dylib`tiny_malloc_from_free_list + 1351
frame #5: 0x00007fff8d2c8705 libsystem_malloc.dylib`szone_malloc_should_clear + 292
frame #6: 0x00007fff8d2c85a1 libsystem_malloc.dylib`malloc_zone_malloc + 71
frame #7: 0x00007fff8d2c70cc libsystem_malloc.dylib`malloc + 42
frame #8: 0x00007fff82f097de libc++.1.dylib`operator new(unsigned long) + 30
frame #9: 0x0000000101f49253 libzmq.dylib`std::__1::__tree<zmq::own_t*, std::__1::less<zmq::own_t*>, std::__1::allocator<zmq::own_t*> >::__insert_unique(zmq::own_t* const&) + 59
frame #10: 0x0000000101f48fa7 libzmq.dylib`zmq::own_t::process_own(zmq::own_t*) + 55
frame #11: 0x0000000101f46fba libzmq.dylib`zmq::object_t::process_command(zmq::command_t&) + 134
frame #12: 0x0000000101f5535f libzmq.dylib`zmq::socket_base_t::process_commands(int, bool) + 129
frame #13: 0x0000000101f57114 libzmq.dylib`zmq::socket_base_t::recv(zmq::msg_t*, int) + 368
frame #14: 0x0000000101f68c22 libzmq.dylib`s_recvmsg(zmq::socket_base_t*, zmq_msg_t*, int) + 14
frame #15: 0x00007fff930eff14 libffi.dylib`ffi_call_unix64 + 76
frame #16: 0x00007fff930f079b libffi.dylib`ffi_call + 923
frame #17: 0x0000000101f0cb2b ffi_c.bundle`call_blocking_function(data=0x00007fff5fbfec50) + 75 at Call.c:359
frame #18: 0x00000001001ab0f5 ruby`rb_thread_call_without_gvl + 101
frame #19: 0x0000000101f0c9aa ffi_c.bundle`do_blocking_call(data=0x00007fff5fbfec50) + 42 at Call.c:368
frame #20: 0x000000010004d1a8 ruby`rb_rescue2 + 280
frame #21: 0x0000000101f0c7b0 ffi_c.bundle`rbffi_CallFunction(argc=3, argv=0x00000001018001c8, function=0x0000000101f689e4, fnInfo=0x000000010191a700) + 496 at Call.c:422
frame #22: 0x0000000101f1214a ffi_c.bundle`custom_trampoline(argc=3, argv=0x00000001018001c8, self=4316528920, handle=0x000000010143cf28) + 74 at MethodHandle.c:232
frame #23: 0x0000000100199b5d ruby`vm_call_cfunc + 1357
frame #24: 0x000000010019850d ruby`vm_call_method + 989
frame #25: 0x000000010018470d ruby`vm_exec_core + 14077
frame #26: 0x0000000100193f64 ruby`vm_exec + 132
frame #27: 0x0000000100193eac ruby`rb_iseq_eval + 284
frame #28: 0x000000010005095f ruby`rb_load_internal0 + 303
frame #29: 0x0000000100051891 ruby`rb_f_load + 193
frame #30: 0x0000000100199b5d ruby`vm_call_cfunc + 1357
frame #31: 0x000000010019850d ruby`vm_call_method + 989
frame #32: 0x000000010018470d ruby`vm_exec_core + 14077
frame #33: 0x0000000100193f64 ruby`vm_exec + 132
frame #34: 0x0000000100194b1d ruby`rb_iseq_eval_main + 509
frame #35: 0x000000010004c528 ruby`ruby_exec_internal + 152
frame #36: 0x000000010004c436 ruby`ruby_run_node + 54
frame #37: 0x0000000100000c6f ruby`main + 79
frame #38: 0x00007fff863285ad libdyld.dylib`start + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment