Created
July 3, 2014 20:00
-
-
Save robxu9/8c892150a1e88e154065 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
Starting program: /home/rxu/Documents/digitalocean/duplex/dpx-c/tests/check_dpx | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib64/libthread_db.so.1". | |
Running suite(s): DPX-C Core | |
[New Thread 0x7ffff7797700 (LWP 18825)] | |
Now listening on 127.0.0.1:9876 | |
(0) Connecting to 127.0.0.1:9876 | |
1 | |
accepted connection from 127.0.0.1:50433 | |
(0) Connected. | |
First connection, routing... [index 0] | |
First connection, routing... [index 0] | |
Sending frame [0]: 0 bytes | |
12 | |
12-1 | |
12-2 | |
(0) Pumping started for channel 0 | |
[Switching to Thread 0x7ffff7797700 (LWP 18825)] | |
Breakpoint 1, _dpx_duplex_conn_read_frames (c=0x7ffff00eba10) at conn.c:68 | |
68 if (channel == NULL && frame->type == DPX_FRAME_OPEN) { | |
(gdb) n | |
69 if (_dpx_peer_handle_open(c->peer, c, frame)) { | |
(gdb) n | |
(0) Pumping started for channel 0 | |
70 dpx_frame_free(frame); | |
(gdb) n | |
71 continue; | |
(gdb) n | |
51 while (msgpack_unpacker_next(&unpacker, &result)) { | |
(gdb) n | |
47 while((read_size = fdread1(c->connfd, buf, DPX_DUPLEX_CONN_CHUNK)) > 0) { | |
(gdb) s | |
fdread1 (fd=5, buf=0x7ffff00fa010, n=8192) at fd.c:156 | |
156 fdwait(fd, 'r'); | |
(gdb) s | |
fdwait (fd=5, rw=114) at fd.c:120 | |
120 if(!startedfdtask){ | |
(gdb) n | |
125 if(npollfd >= MAXFD){ | |
(gdb) n | |
130 taskstate("fdwait for %s", rw=='r' ? "read" : rw=='w' ? "write" : "error"); | |
(gdb) n | |
131 bits = 0; | |
(gdb) n | |
132 switch(rw){ | |
(gdb) n | |
134 bits |= POLLIN; | |
(gdb) n | |
135 break; | |
(gdb) n | |
141 polltask[npollfd] = taskrunning; | |
(gdb) n | |
142 pollfd[npollfd].fd = fd; | |
(gdb) n | |
143 pollfd[npollfd].events = bits; | |
(gdb) n | |
144 pollfd[npollfd].revents = 0; | |
(gdb) n | |
145 npollfd++; | |
(gdb) n | |
146 taskswitch(); | |
(gdb) s | |
taskswitch () at task.c:170 | |
170 needstack(0); | |
(gdb) n | |
171 contextswitch(&taskrunning->context, &taskschedcontext); | |
(gdb) n | |
12-3 | |
12-4 | |
Program received signal SIGSEGV, Segmentation fault. | |
0x00007ffff00fc060 in ?? () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment