Created
April 16, 2014 06:01
-
-
Save sonots/10814032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) bt | |
#0 0x00110410 in __kernel_vsyscall () | |
#1 0x003c8e90 in ppoll () from /lib/libc.so.6 | |
#2 0x009b34f8 in rb_wait_for_single_fd (fd=7, events=1, tv=0x0) at thread.c:3583 | |
#3 0x009b3855 in rb_thread_wait_fd_rw (fd=-514) at thread.c:3422 | |
#4 rb_thread_wait_fd (fd=-514) at thread.c:3433 | |
#5 0x0079fce4 in rsock_s_recvfrom (sock=156152260, argc=1, argv=0xb7cd401c, from=RECV_IP) at init.c:132 | |
#6 0x007ab006 in ip_recvfrom (argc=1, argv=0xb7cd401c, sock=156152260) at ipsocket.c:265 | |
#7 0x009819b5 in call_cfunc_m1 (func=0x7aafe0 <ip_recvfrom>, recv=156152260, argc=1, argv=0xb7cd401c) at vm_insnhelper.c:1325 | |
#8 0x0098722c in vm_call_cfunc_with_frame (th=0x929cbc8, reg_cfp=0xb7d53fb8, ci=<value optimized out>) at vm_insnhelper.c:1469 | |
#9 0x0099f5c6 in vm_call_cfunc (th=0x929cbc8, cfp=0xb7d53fb8, ci=0x94a6d04) at vm_insnhelper.c:1559 | |
#10 vm_call_method (th=0x929cbc8, cfp=0xb7d53fb8, ci=0x94a6d04) at vm_insnhelper.c:1751 | |
#11 0x0099840d in vm_exec_core (th=0x929cbc8, initial=<value optimized out>) at insns.def:1017 | |
#12 0x0099db27 in vm_exec (th=0x929cbc8) at vm.c:1201 | |
#13 0x0099df77 in rb_iseq_eval_main (iseqval=155835900) at vm.c:1449 | |
#14 0x0085ef47 in ruby_exec_internal (n=0x949ddfc) at eval.c:250 | |
#15 0x00860be7 in ruby_exec_node (n=0x949ddfc) at eval.c:315 | |
#16 ruby_run_node (n=0x949ddfc) at eval.c:307 | |
#17 0x0085d371 in main (argc=2, argv=0xbfc4d294) at main.c:36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
require 'fcntl' | |
require 'cool.io' | |
@bind = '127.0.0.1' | |
@port = '12345' | |
@usock = UDPSocket.new | |
@usock.bind(@bind, @port) | |
@usock.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) | |
@usock.recvfrom(1024) | |
@usock.recvfrom(1024) | |
@usock.recvfrom(1024) | |
@usock.recvfrom(1024) | |
@usock.recvfrom(1024) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment