reirep / mptcp-java

A integration of an old version of mptcp into java
https://www.multipath-tcp.org/
GNU General Public License v3.0
3 stars 2 forks source link

error when closing subflows #4

Open FaZoREX opened 7 years ago

FaZoREX commented 7 years ago

hello

in a client-server program I encounter this error on the client side when closing some mptcp subflows and create new ones during data reception from the server:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f79191a7c9f, pid=3322, tid=0x00007f79195ab700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libmptcp-api2884198094027225513.so+0xc9f]  Java_com_mptcp_Mptcp__1native_1closeSubflow+0x2a

I appreciate any help.

Feri

reirep commented 7 years ago

Hi ! I'm currently abroad, I'm gonna look into this as soon as possible. Thansk for the feedback Pierre

FaZoREX commented 7 years ago

thanks for the reply, basically I open 15 subflows and after that I want to close one of them and open a new one with another port continuously, but the mptcp tuples at some point returns invalid ip addresses. and I think this leads to the segmentation fault after I open and close around 100 subflows. the following is the output of the mptcp tuples:

1 OPENED: subflowID[0]: 2 (192.168.33.10:41849 :::: 192.168.33.1:9090)
2 OPENED: subflowID[1]: 3 (192.168.33.10:59901 :::: 192.168.33.1:9090)
3 OPENED: subflowID[2]: 4 (192.168.33.10:22571 :::: 192.168.33.1:9090)
4 OPENED: subflowID[3]: 5 (192.168.33.10:13519 :::: 192.168.33.1:9090)
5 OPENED: subflowID[4]: 6 (192.168.33.10:62868 :::: 192.168.33.1:9090)
6 OPENED: subflowID[5]: 7 (192.168.33.10:11972 :::: 192.168.33.1:9090)
7 OPENED: subflowID[6]: 8 (192.168.33.10:52302 :::: 192.168.33.1:9090)
8 OPENED: subflowID[7]: 9 (192.168.33.10:24473 :::: 192.168.33.1:9090)
9 OPENED: subflowID[8]: 10 (192.168.33.10:63765 :::: 192.168.33.1:9090)
10 OPENED: subflowID[9]: 11 (192.168.33.10:4972 :::: 192.168.33.1:9090)
11 OPENED: subflowID[10]: 12 (192.168.33.10:48602 :::: 192.168.33.1:9090)
12 OPENED: subflowID[11]: 13 (192.168.33.10:59206 :::: 192.168.33.1:9090)
13 OPENED: subflowID[12]: 14 (192.168.33.10:7252 :::: 192.168.33.1:9090)
14 OPENED: subflowID[13]: 15 (192.168.33.10:25307 :::: 192.168.33.1:9090)
15 OPENED: subflowID[14]: 16 (192.168.33.10:29114 :::: 192.168.33.1:9090)
1 CLOSED: subflowID[11]: 13 (192.168.33.10:59206 :::: 192.168.33.1:9090)
16 OPENED: subflowID[11]: 17 (192.168.33.10:33905 :::: 192.168.33.1:9090)
2 CLOSED: subflowID[13]: 15 (192.168.33.10:25307 :::: 192.168.33.1:9090)
17 OPENED: subflowID[13]: 18 (192.168.33.10:32241 :::: 192.168.33.1:9090)
3 CLOSED: subflowID[8]: 10 (192.168.33.10:63765 :::: 192.168.33.1:9090)
18 OPENED: subflowID[8]: 19 (192.168.33.10:38343 :::: 192.168.33.1:9090)
4 CLOSED: subflowID[0]: 2 (192.168.33.10:41849 :::: 192.168.33.1:9090)
19 OPENED: subflowID[0]: 20 (192.168.33.10:5133 :::: 192.168.33.1:9090)
5 CLOSED: subflowID[1]: 3 (192.168.33.10:59901 :::: 192.168.33.1:9090)
20 OPENED: subflowID[1]: 21 (192.168.33.10:48165 :::: 192.168.33.1:9090)
6 CLOSED: subflowID[12]: 14 (192.168.33.10:7252 :::: 192.168.33.1:9090)
21 OPENED: subflowID[12]: 22 (192.168.33.10:16029 :::: 192.168.33.1:9090)
7 CLOSED: subflowID[10]: 12 (192.168.33.10:48602 :::: 192.168.33.1:9090)
22 OPENED: subflowID[10]: 23 (192.168.33.10:37308 :::: 192.168.33.1:9090)
8 CLOSED: subflowID[5]: 7 (192.168.33.10:11972 :::: 192.168.33.1:9090)
23 OPENED: subflowID[5]: 24 (192.168.33.10:36869 :::: 192.168.33.1:9090)
9 CLOSED: subflowID[1]: 21 (192.168.33.10:48165 :::: 192.168.33.1:9090)
24 OPENED: subflowID[1]: 25 (192.168.33.10:19375 :::: 192.168.33.1:9090)
10 CLOSED: subflowID[8]: 19 (192.168.33.10:38343 :::: 192.168.33.1:9090)
25 OPENED: subflowID[8]: 26 (192.168.33.10:61826 :::: 192.168.33.1:9090)
11 CLOSED: subflowID[2]: 4 (192.168.33.10:22571 :::: 192.168.33.1:9090)
26 OPENED: subflowID[2]: 27 (192.168.33.10:35388 :::: 192.168.33.1:9090)
12 CLOSED: subflowID[3]: 5 (192.168.33.10:13519 :::: 192.168.33.1:9090)
27 OPENED: subflowID[3]: 28 (192.168.33.10:63329 :::: 192.168.33.1:9090)
13 CLOSED: subflowID[1]: 25 (192.168.33.10:19375 :::: 192.168.33.1:9090)
28 OPENED: subflowID[1]: 29 (192.168.33.10:35727 :::: 192.168.33.1:9090)
14 CLOSED: subflowID[4]: 6 (192.168.33.10:62868 :::: 192.168.33.1:9090)
29 OPENED: subflowID[4]: 30 (192.168.33.10:35152 :::: 192.168.33.1:9090)
15 CLOSED: subflowID[4]: 30 (192.168.33.10:35152 :::: 192.168.33.1:9090)
30 OPENED: subflowID[4]: 31 (192.168.33.10:4608 :::: 192.168.33.1:9090)
16 CLOSED: subflowID[7]: 9 (192.168.33.10:24473 :::: 192.168.33.1:9090)
31 OPENED: subflowID[7]: 2 (192.168.33.10:8068 :::: 192.168.33.1:9090)
17 CLOSED: subflowID[4]: 31 (192.168.33.10:4608 :::: 192.168.33.1:9090)
32 OPENED: subflowID[4]: 3 (192.168.33.10:59272 :::: 192.168.33.1:9090)
18 CLOSED: subflowID[12]: 22 (192.168.33.10:16029 :::: 192.168.33.1:9090)
33 OPENED: subflowID[12]: 4 (192.168.33.10:47078 :::: 192.168.33.1:9090)
19 CLOSED: subflowID[10]: 23 (192.168.33.10:37308 :::: 192.168.33.1:9090)
34 OPENED: subflowID[10]: 5 (192.168.33.10:63069 :::: 192.168.33.1:9090)
20 CLOSED: subflowID[8]: 26 (192.168.33.10:61826 :::: 192.168.33.1:9090)
35 OPENED: subflowID[8]: 6 (192.168.33.10:59954 :::: 192.168.33.1:9090)
21 CLOSED: subflowID[12]: 4 (0.0.0.0:0 :::: 0.0.0.0:0)
36 OPENED: subflowID[12]: 7 (192.168.33.10:42455 :::: 192.168.33.1:9090)
22 CLOSED: subflowID[1]: 29 (192.168.33.10:35727 :::: 192.168.33.1:9090)
37 OPENED: subflowID[1]: 9 (192.168.33.10:10905 :::: 192.168.33.1:9090)
23 CLOSED: subflowID[0]: 20 (192.168.33.10:5133 :::: 192.168.33.1:9090)
38 OPENED: subflowID[0]: 10 (192.168.33.10:12994 :::: 192.168.33.1:9090)
24 CLOSED: subflowID[3]: 28 (192.168.33.10:63329 :::: 192.168.33.1:9090)
39 OPENED: subflowID[3]: 12 (192.168.33.10:30696 :::: 192.168.33.1:9090)
25 CLOSED: subflowID[10]: 5 (0.0.0.0:0 :::: 0.0.0.0:0)
40 OPENED: subflowID[10]: 13 (192.168.33.10:18304 :::: 192.168.33.1:9090)
26 CLOSED: subflowID[10]: 13 (0.0.0.0:0 :::: 0.0.0.0:0)
41 OPENED: subflowID[10]: 14 (192.168.33.10:29987 :::: 192.168.33.1:9090)
27 CLOSED: subflowID[10]: 14 (0.0.0.0:0 :::: 0.0.0.0:0)
42 OPENED: subflowID[10]: 15 (192.168.33.10:3678 :::: 192.168.33.1:9090)
28 CLOSED: subflowID[4]: 3 (0.0.0.0:0 :::: 0.0.0.0:0)
43 OPENED: subflowID[4]: 19 (192.168.33.10:17877 :::: 192.168.33.1:9090)
29 CLOSED: subflowID[13]: 18 (192.168.33.10:32241 :::: 192.168.33.1:9090)
44 OPENED: subflowID[13]: 20 (192.168.33.10:50115 :::: 192.168.33.1:9090)
30 CLOSED: subflowID[7]: 2 (192.168.33.10:8068 :::: 192.168.33.1:9090)
45 OPENED: subflowID[7]: 21 (192.168.33.10:11563 :::: 192.168.33.1:9090)
31 CLOSED: subflowID[5]: 24 (192.168.33.10:36869 :::: 192.168.33.1:9090)
46 OPENED: subflowID[5]: 22 (192.168.33.10:56798 :::: 192.168.33.1:9090)
32 CLOSED: subflowID[7]: 21 (0.0.0.0:0 :::: 0.0.0.0:0)
47 OPENED: subflowID[7]: 23 (192.168.33.10:24952 :::: 192.168.33.1:9090)
33 CLOSED: subflowID[4]: 19 (0.0.0.0:0 :::: 0.0.0.0:0)
48 OPENED: subflowID[4]: 24 (192.168.33.10:8366 :::: 192.168.33.1:9090)
34 CLOSED: subflowID[9]: 11 (192.168.33.10:4972 :::: 192.168.33.1:9090)
49 OPENED: subflowID[9]: 25 (192.168.33.10:19564 :::: 192.168.33.1:9090)
35 CLOSED: subflowID[5]: 22 (0.0.0.0:0 :::: 0.0.0.0:0)
50 OPENED: subflowID[5]: 26 (192.168.33.10:30548 :::: 192.168.33.1:9090)
36 CLOSED: subflowID[2]: 27 (192.168.33.10:35388 :::: 192.168.33.1:9090)
51 OPENED: subflowID[2]: 27 (192.168.33.10:48087 :::: 192.168.33.1:9090)
37 CLOSED: subflowID[13]: 20 (0.0.0.0:0 :::: 0.0.0.0:0)
52 OPENED: subflowID[13]: 28 (192.168.33.10:28364 :::: 192.168.33.1:9090)
38 CLOSED: subflowID[4]: 24 (0.0.0.0:0 :::: 0.0.0.0:0)
53 OPENED: subflowID[4]: 29 (192.168.33.10:57221 :::: 192.168.33.1:9090)
39 CLOSED: subflowID[0]: 10 (0.0.0.0:0 :::: 0.0.0.0:0)
54 OPENED: subflowID[0]: 30 (192.168.33.10:44595 :::: 192.168.33.1:9090)
40 CLOSED: subflowID[10]: 15 (0.0.0.0:0 :::: 0.0.0.0:0)
55 OPENED: subflowID[10]: 31 (192.168.33.10:32345 :::: 192.168.33.1:9090)
41 CLOSED: subflowID[9]: 25 (0.0.0.0:0 :::: 0.0.0.0:0)
56 OPENED: subflowID[9]: 2 (192.168.33.10:13819 :::: 192.168.33.1:9090)
42 CLOSED: subflowID[4]: 29 (0.0.0.0:0 :::: 0.0.0.0:0)
57 OPENED: subflowID[4]: 3 (192.168.33.10:32605 :::: 192.168.33.1:9090)
43 CLOSED: subflowID[10]: 31 (0.0.0.0:0 :::: 0.0.0.0:0)
58 OPENED: subflowID[10]: 4 (192.168.33.10:19831 :::: 192.168.33.1:9090)
44 CLOSED: subflowID[8]: 6 (0.0.0.0:0 :::: 0.0.0.0:0)
59 OPENED: subflowID[8]: 5 (192.168.33.10:57153 :::: 192.168.33.1:9090)
45 CLOSED: subflowID[11]: 17 (192.168.33.10:33905 :::: 192.168.33.1:9090)
60 OPENED: subflowID[11]: 6 (192.168.33.10:57691 :::: 192.168.33.1:9090)
46 CLOSED: subflowID[14]: 16 (192.168.33.10:29114 :::: 192.168.33.1:9090)
61 OPENED: subflowID[14]: 7 (192.168.33.10:57137 :::: 192.168.33.1:9090)
47 CLOSED: subflowID[1]: 9 (0.0.0.0:0 :::: 0.0.0.0:0)
62 OPENED: subflowID[1]: 9 (192.168.33.10:4577 :::: 192.168.33.1:9090)
48 CLOSED: subflowID[4]: 3 (0.0.0.0:0 :::: 0.0.0.0:0)
63 OPENED: subflowID[4]: 10 (192.168.33.10:59335 :::: 192.168.33.1:9090)
49 CLOSED: subflowID[7]: 23 (0.0.0.0:0 :::: 0.0.0.0:0)
64 OPENED: subflowID[7]: 11 (192.168.33.10:22626 :::: 192.168.33.1:9090)
50 CLOSED: subflowID[8]: 5 (0.0.0.0:0 :::: 0.0.0.0:0)
65 OPENED: subflowID[8]: 12 (192.168.33.10:61756 :::: 192.168.33.1:9090)
51 CLOSED: subflowID[6]: 8 (192.168.33.10:52302 :::: 192.168.33.1:9090)
66 OPENED: subflowID[6]: 13 (192.168.33.10:23136 :::: 192.168.33.1:9090)
52 CLOSED: subflowID[6]: 13 (0.0.0.0:0 :::: 0.0.0.0:0)
67 OPENED: subflowID[6]: 14 (192.168.33.10:14805 :::: 192.168.33.1:9090)
53 CLOSED: subflowID[9]: 2 (0.0.0.0:0 :::: 0.0.0.0:0)
68 OPENED: subflowID[9]: 15 (192.168.33.10:35597 :::: 192.168.33.1:9090)
54 CLOSED: subflowID[12]: 7 (0.0.0.0:0 :::: 0.0.0.0:0)
69 OPENED: subflowID[12]: 16 (192.168.33.10:44034 :::: 192.168.33.1:9090)
55 CLOSED: subflowID[7]: 11 (0.0.0.0:0 :::: 0.0.0.0:0)
70 OPENED: subflowID[7]: 17 (192.168.33.10:18572 :::: 192.168.33.1:9090)
56 CLOSED: subflowID[5]: 26 (0.0.0.0:0 :::: 0.0.0.0:0)
71 OPENED: subflowID[5]: 18 (192.168.33.10:42843 :::: 192.168.33.1:9090)
57 CLOSED: subflowID[10]: 4 (0.0.0.0:0 :::: 0.0.0.0:0)
72 OPENED: subflowID[10]: 19 (192.168.33.10:53041 :::: 192.168.33.1:9090)
58 CLOSED: subflowID[10]: 19 (0.0.0.0:0 :::: 0.0.0.0:0)
73 OPENED: subflowID[10]: 20 (192.168.33.10:58936 :::: 192.168.33.1:9090)
59 CLOSED: subflowID[9]: 15 (0.0.0.0:0 :::: 0.0.0.0:0)
74 OPENED: subflowID[9]: 21 (192.168.33.10:1867 :::: 192.168.33.1:9090)
60 CLOSED: subflowID[5]: 18 (0.0.0.0:0 :::: 0.0.0.0:0)
75 OPENED: subflowID[5]: 22 (192.168.33.10:23887 :::: 192.168.33.1:9090)
61 CLOSED: subflowID[12]: 16 (0.0.0.0:0 :::: 0.0.0.0:0)
76 OPENED: subflowID[12]: 23 (192.168.33.10:6384 :::: 192.168.33.1:9090)
62 CLOSED: subflowID[0]: 30 (0.0.0.0:0 :::: 0.0.0.0:0)
77 OPENED: subflowID[0]: 24 (192.168.33.10:2899 :::: 192.168.33.1:9090)
63 CLOSED: subflowID[0]: 24 (0.0.0.0:0 :::: 0.0.0.0:0)
78 OPENED: subflowID[0]: 25 (192.168.33.10:7574 :::: 192.168.33.1:9090)
64 CLOSED: subflowID[12]: 23 (0.0.0.0:0 :::: 0.0.0.0:0)
79 OPENED: subflowID[12]: 26 (192.168.33.10:47172 :::: 192.168.33.1:9090)
65 CLOSED: subflowID[3]: 12 (0.0.0.0:0 :::: 0.0.0.0:0)
80 OPENED: subflowID[3]: 27 (192.168.33.10:28743 :::: 192.168.33.1:9090)
66 CLOSED: subflowID[6]: 14 (0.0.0.0:0 :::: 0.0.0.0:0)
81 OPENED: subflowID[6]: 28 (192.168.33.10:63147 :::: 192.168.33.1:9090)
67 CLOSED: subflowID[13]: 28 (0.0.0.0:0 :::: 0.0.0.0:0)
82 OPENED: subflowID[13]: 29 (192.168.33.10:27478 :::: 192.168.33.1:9090)
68 CLOSED: subflowID[8]: 12 (0.0.0.0:0 :::: 0.0.0.0:0)
83 OPENED: subflowID[8]: 30 (192.168.33.10:5286 :::: 192.168.33.1:9090)
69 CLOSED: subflowID[4]: 10 (0.0.0.0:0 :::: 0.0.0.0:0)
84 OPENED: subflowID[4]: 31 (192.168.33.10:14787 :::: 192.168.33.1:9090)
70 CLOSED: subflowID[11]: 6 (0.0.0.0:0 :::: 0.0.0.0:0)
85 OPENED: subflowID[11]: 2 (192.168.33.10:48972 :::: 192.168.33.1:9090)
71 CLOSED: subflowID[13]: 29 (0.0.0.0:0 :::: 0.0.0.0:0)
86 OPENED: subflowID[13]: 3 (192.168.33.10:52840 :::: 192.168.33.1:9090)
72 CLOSED: subflowID[4]: 31 (0.0.0.0:0 :::: 0.0.0.0:0)
87 OPENED: subflowID[4]: 4 (192.168.33.10:14480 :::: 192.168.33.1:9090)
73 CLOSED: subflowID[4]: 4 (0.0.0.0:0 :::: 0.0.0.0:0)
88 OPENED: subflowID[4]: 5 (192.168.33.10:8275 :::: 192.168.33.1:9090)
74 CLOSED: subflowID[6]: 28 (0.0.0.0:0 :::: 0.0.0.0:0)
89 OPENED: subflowID[6]: 6 (192.168.33.10:38490 :::: 192.168.33.1:9090)
75 CLOSED: subflowID[9]: 21 (0.0.0.0:0 :::: 0.0.0.0:0)
90 OPENED: subflowID[9]: 7 (192.168.33.10:35264 :::: 192.168.33.1:9090)
76 CLOSED: subflowID[1]: 9 (0.0.0.0:0 :::: 0.0.0.0:0)
91 OPENED: subflowID[1]: 8 (192.168.33.10:56650 :::: 192.168.33.1:9090)
77 CLOSED: subflowID[5]: 22 (0.0.0.0:0 :::: 0.0.0.0:0)
92 OPENED: subflowID[5]: 9 (192.168.33.10:46649 :::: 192.168.33.1:9090)
78 CLOSED: subflowID[9]: 7 (0.0.0.0:0 :::: 0.0.0.0:0)
93 OPENED: subflowID[9]: 10 (192.168.33.10:8734 :::: 192.168.33.1:9090)
79 CLOSED: subflowID[9]: 10 (0.0.0.0:0 :::: 0.0.0.0:0)
94 OPENED: subflowID[9]: 11 (192.168.33.10:38057 :::: 192.168.33.1:9090)
80 CLOSED: subflowID[12]: 26 (0.0.0.0:0 :::: 0.0.0.0:0)
95 OPENED: subflowID[12]: 12 (192.168.33.10:44642 :::: 192.168.33.1:9090)
81 CLOSED: subflowID[7]: 17 (0.0.0.0:0 :::: 0.0.0.0:0)
96 OPENED: subflowID[7]: 13 (192.168.33.10:62235 :::: 192.168.33.1:9090)
82 CLOSED: subflowID[8]: 30 (0.0.0.0:0 :::: 0.0.0.0:0)
97 OPENED: subflowID[8]: 14 (192.168.33.10:27569 :::: 192.168.33.1:9090)
83 CLOSED: subflowID[4]: 5 (0.0.0.0:0 :::: 0.0.0.0:0)
98 OPENED: subflowID[4]: 15 (192.168.33.10:55338 :::: 192.168.33.1:9090)
84 CLOSED: subflowID[8]: 14 (0.0.0.0:0 :::: 0.0.0.0:0)
99 OPENED: subflowID[8]: 16 (192.168.33.10:50277 :::: 192.168.33.1:9090)
85 CLOSED: subflowID[0]: 25 (0.0.0.0:0 :::: 0.0.0.0:0)
100 OPENED: subflowID[0]: 17 (192.168.33.10:45366 :::: 192.168.33.1:9090)
86 CLOSED: subflowID[6]: 6 (0.0.0.0:0 :::: 0.0.0.0:0)
101 OPENED: subflowID[6]: 18 (192.168.33.10:28995 :::: 192.168.33.1:9090)
87 CLOSED: subflowID[2]: 27 (0.0.0.0:0 :::: 0.0.0.0:0)
102 OPENED: subflowID[2]: 19 (192.168.33.10:6277 :::: 192.168.33.1:9090)
88 CLOSED: subflowID[13]: 3 (0.0.0.0:0 :::: 0.0.0.0:0)
103 OPENED: subflowID[13]: 20 (192.168.33.10:38202 :::: 192.168.33.1:9090)
89 CLOSED: subflowID[7]: 13 (0.0.0.0:0 :::: 0.0.0.0:0)
104 OPENED: subflowID[7]: 21 (192.168.33.10:9138 :::: 192.168.33.1:9090)
90 CLOSED: subflowID[2]: 19 (0.0.0.0:0 :::: 0.0.0.0:0)

Feri

FaZoREX commented 7 years ago

any updates?