Project

General

Profile

Bug #2981 » mgcp_valgrind.log

fixeria, 02/22/2018 09:21 AM

 
1
==23497== Memcheck, a memory error detector
2
==23497== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
3
==23497== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
4
==23497== Command: ./mgcp_test
5
==23497== 
6
<0010> mgcp_protocol.c:353 AUEP: auditing endpoint ...
7
<0010> mgcp_msg.c:322 Unable to find Endpoint `ds/e1-2/1@mgw'
8
<0010> mgcp_protocol.c:329 AUEP 18983213: failed to find the endpoint
9
<0010> mgcp_msg.c:322 Unable to find Endpoint `ds/e1-3/1@mgw'
10
<0010> mgcp_protocol.c:329 MDCX 18983213: failed to find the endpoint
11
<0010> mgcp_protocol.c:740 MDCX: modifying existing connection ...
12
<0010> mgcp_protocol.c:753 MDCX: endpoint:0x2 endpoint is not holding a connection.
13
<0010> mgcp_msg.c:279 Addressing virtual trunk without prefix (deprecated), please use rtpbridge/: '1@mgw'
14
<0010> mgcp_protocol.c:500 CRCX: creating new connection ...
15
==23497== Invalid read of size 4
16
==23497==    at 0x7401404: pthread_mutex_lock (pthread_mutex_lock.c:66)
17
==23497==    by 0x5FE040B: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
18
==23497==    by 0x6070B06: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
19
==23497==    by 0x40D886: mgcp_alloc_id (mgcp_conn.c:48)
20
==23497==    by 0x40D886: mgcp_conn_alloc (mgcp_conn.c:136)
21
==23497==    by 0x4065AF: handle_create_con (mgcp_protocol.c:612)
22
==23497==    by 0x4057F2: mgcp_handle_message (mgcp_protocol.c:338)
23
==23497==    by 0x4020E4: test_messages (mgcp_test.c:677)
24
==23497==    by 0x4020E4: main (mgcp_test.c:1475)
25
==23497==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
26
==23497== 
27
==23497== 
28
==23497== Process terminating with default action of signal 11 (SIGSEGV)
29
==23497==  Access not within mapped region at address 0x10
30
==23497==    at 0x7401404: pthread_mutex_lock (pthread_mutex_lock.c:66)
31
==23497==    by 0x5FE040B: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
32
==23497==    by 0x6070B06: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
33
==23497==    by 0x40D886: mgcp_alloc_id (mgcp_conn.c:48)
34
==23497==    by 0x40D886: mgcp_conn_alloc (mgcp_conn.c:136)
35
==23497==    by 0x4065AF: handle_create_con (mgcp_protocol.c:612)
36
==23497==    by 0x4057F2: mgcp_handle_message (mgcp_protocol.c:338)
37
==23497==    by 0x4020E4: test_messages (mgcp_test.c:677)
38
==23497==    by 0x4020E4: main (mgcp_test.c:1475)
39
==23497==  If you believe this happened as a result of a stack
40
==23497==  overflow in your program's main thread (unlikely but
41
==23497==  possible), you can try to increase the size of the
42
==23497==  main thread stack using the --main-stacksize= flag.
43
==23497==  The main thread stack size used in this run was 8388608.
44
line: 'one CR'
45
line: 'two CR'
46
line: ''
47
line: 'one CRLF'
48
line: 'two CRLF'
49
line: ''
50
line: 'one LF'
51
line: 'two LF'
52
line: ''
53
line: 'mixed (4 lines)'
54
line: ''
55
line: ''
56
line: ''
57

    
58
================================================
59
Testing AUEP1
60
creating message from statically defined input:
61
---------8<---------
62
AUEP 158663169 ds/e1-1/2@mgw MGCP 1.0
63

    
64
---------8<---------
65
checking response:
66
using message as statically defined for comparison
67
Response matches our expectations.
68
(response contains a connection id)
69

    
70
================================================
71
Testing AUEP2
72
creating message from statically defined input:
73
---------8<---------
74
AUEP 18983213 ds/e1-2/1@mgw MGCP 1.0
75

    
76
---------8<---------
77
checking response:
78
using message as statically defined for comparison
79
Response matches our expectations.
80
(response contains a connection id)
81

    
82
================================================
83
Testing MDCX1
84
creating message from statically defined input:
85
---------8<---------
86
MDCX 18983213 ds/e1-3/1@mgw MGCP 1.0
87

    
88
---------8<---------
89
checking response:
90
using message as statically defined for comparison
91
Response matches our expectations.
92
(response contains a connection id)
93

    
94
================================================
95
Testing MDCX2
96
creating message from statically defined input:
97
---------8<---------
98
MDCX 18983214 ds/e1-1/2@mgw MGCP 1.0
99

    
100
---------8<---------
101
checking response:
102
using message as statically defined for comparison
103
Response matches our expectations.
104
(response contains a connection id)
105

    
106
================================================
107
Testing CRCX
108
creating message from statically defined input:
109
---------8<---------
110
CRCX 2 1@mgw MGCP 1.0
111
M: recvonly
112
C: 2
113
L: p:20
114

    
115
v=0
116
c=IN IP4 123.12.12.123
117
m=audio 5904 RTP/AVP 97
118
a=rtpmap:97 GSM-EFR/8000
119
a=ptime:40
120

    
121
---------8<---------
122
==23497== 
123
==23497== HEAP SUMMARY:
124
==23497==     in use at exit: 18,073 bytes in 21 blocks
125
==23497==   total heap usage: 31 allocs, 10 frees, 52,918 bytes allocated
126
==23497== 
127
==23497== LEAK SUMMARY:
128
==23497==    definitely lost: 0 bytes in 0 blocks
129
==23497==    indirectly lost: 0 bytes in 0 blocks
130
==23497==      possibly lost: 18,041 bytes in 20 blocks
131
==23497==    still reachable: 32 bytes in 1 blocks
132
==23497==         suppressed: 0 bytes in 0 blocks
133
==23497== Rerun with --leak-check=full to see details of leaked memory
134
==23497== 
135
==23497== For counts of detected and suppressed errors, rerun with: -v
136
==23497== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
(2-2/2)
Add picture from clipboard (Maximum size: 48.8 MB)