1
|
==13975== Memcheck, a memory error detector
|
2
|
==13975== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
|
3
|
==13975== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
|
4
|
==13975== Command: tests/sgsn/sgsn_test
|
5
|
==13975==
|
6
|
<0012> gprs_llc.c:485 LLC: unknown TLLI 0xc0000234, creating LLME on the fly
|
7
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
8
|
[0;m<0012> gprs_llc.c:485 LLC: unknown TLLI 0xffeeddcc, creating LLME on the fly
|
9
|
[0;m[1;33m<0002> gprs_sgsn.c:237 MM(/00000000) Allocated with GEA0 cipher.
|
10
|
[0;m<0012> gprs_llc.c:485 LLC: unknown TLLI 0xffeeddcc, creating LLME on the fly
|
11
|
[0;m[1;33m<0002> gprs_sgsn.c:237 MM(/00000000) Allocated with GEA0 cipher.
|
12
|
[0;m<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT
|
13
|
[0;m<000f> gprs_subscriber.c:239 SUBSCR(1234567890) Got SendAuthenticationInfoResult, num_auth_vectors = 2
|
14
|
[0;m<000f> gprs_subscriber.c:251 SUBSCR(1234567890) Adding auth tuple, cksn = 0
|
15
|
[0;m<000f> gprs_subscriber.c:251 SUBSCR(1234567890) Adding auth tuple, cksn = 1
|
16
|
[0;m<000f> gprs_subscriber.c:828 SUBSCR(1234567890) Updating subscriber authentication info
|
17
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
18
|
<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_SEND_AUTH_INFO_ERROR
|
19
|
[0;m<000f> gprs_subscriber.c:470 SUBSCR(1234567890) Send authentication info has failed with cause 7, handled as: Permission denied
|
20
|
[0;m<000f> gprs_subscriber.c:478 SUBSCR(1234567890) GPRS send auth info req failed, access denied, GMM cause = 'GPRS services not allowed' (7)
|
21
|
[0;m<000f> gprs_subscriber.c:828 SUBSCR(1234567890) Updating subscriber authentication info
|
22
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
23
|
<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_UPDATE_LOCATION_RESULT
|
24
|
[0;m<000f> gprs_subscriber.c:364 SUBSCR(1234567890) Will set PDP info, context id = 1, APN = 04 74 65 73 74 03 61 70 6e
|
25
|
[0;m<000f> gprs_subscriber.c:364 SUBSCR(1234567890) Will set PDP info, context id = 2, APN = 03 66 6f 6f 03 61 70 6e
|
26
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
27
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
28
|
<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_UPDATE_LOCATION_ERROR
|
29
|
[0;m<000f> gprs_subscriber.c:520 SUBSCR(1234567890) Update location has failed with cause 7, handled as: Permission denied
|
30
|
[0;m<000f> gprs_subscriber.c:528 SUBSCR(1234567890) GPRS update location failed, access denied, GMM cause = 'GPRS services not allowed' (7)
|
31
|
[0;m<000f> gprs_subscriber.c:828 SUBSCR(1234567890) Updating subscriber authentication info
|
32
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
33
|
<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_INSERT_DATA_REQUEST
|
34
|
[0;m<000f> gprs_subscriber.c:364 SUBSCR(1234567890) Will set PDP info, context id = 3, APN = 03 62 61 72 03 61 70 6e
|
35
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
36
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
37
|
<000f> gprs_subscriber.c:206 SUBSCR(1234567890) Sending GSUP, will send: 12 01 05 21 43 65 87 09 28 01 01
|
38
|
[0;m<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_DELETE_DATA_REQUEST
|
39
|
[0;m<000f> gprs_subscriber.c:414 SUBSCR(1234567890) Rx GSUP message OSMO_GSUP_MSGT_DELETE_DATA_REQUEST not supported for CS
|
40
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(1234567890) Sending GSUP, will send: 15 01 05 21 43 65 87 09 02 01 61 28 01 01
|
41
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(---) Sending GSUP, will send: 1d 01 05 11 11 11 11 01 02 01 02 28 01 01
|
42
|
[0;m<000f> gprs_subscriber.c:653 Unknown IMSI 1111111110, discarding GSUP request of type 0x1c
|
43
|
[0;m<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_LOCATION_CANCEL_REQUEST
|
44
|
[0;m<000f> gprs_subscriber.c:626 SUBSCR(1234567890) Cancelling MS subscriber (update procedure)
|
45
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(1234567890) Sending GSUP, will send: 1e 01 05 21 43 65 87 09 28 01 01
|
46
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
47
|
[0;mCalled my_dummy_sgsn_update_subscriber_data, mmctx = 0x829e560, subscr = 0x829cf00
|
48
|
<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_LOCATION_CANCEL_REQUEST
|
49
|
[0;m<000f> gprs_subscriber.c:626 SUBSCR(1234567890) Cancelling MS subscriber (subscription withdraw)
|
50
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(1234567890) Sending GSUP, will send: 1e 01 05 21 43 65 87 09 28 01 01
|
51
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
52
|
[0;m<000f> gprs_subscriber.c:714 SUBSCR(1234567890) Received GSUP message OSMO_GSUP_MSGT_PURGE_MS_RESULT
|
53
|
[0;m<000f> gprs_subscriber.c:575 SUBSCR(1234567890) Completing purge MS
|
54
|
[0;m<000f> gprs_subscriber.c:816 SUBSCR(1234567890) Updating subscriber data
|
55
|
[0;m<000f> gprs_subscriber.c:568 GSUP(1234567890) Completing purge MS
|
56
|
[0;m<000f> gprs_subscriber.c:564 GSUP(1234567890) Purge MS has failed with cause 'IMSI unknown in HLR' (2)
|
57
|
[0;m<000f> gprs_subscriber.c:564 GSUP(1234567890) Purge MS has failed with cause 'Network failure' (17)
|
58
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(---) Sending GSUP, will send: 11 01 05 21 43 65 87 09 02 01 02 28 01 01
|
59
|
[0;m<000f> gprs_subscriber.c:653 Unknown IMSI 1234567890, discarding GSUP request of type 0x10
|
60
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(---) Sending GSUP, will send: 15 01 05 21 43 65 87 09 02 01 02 28 01 01
|
61
|
[0;m<000f> gprs_subscriber.c:653 Unknown IMSI 1234567890, discarding GSUP request of type 0x14
|
62
|
[0;m<000f> gprs_subscriber.c:206 SUBSCR(---) Sending GSUP, will send: 1d 01 05 21 43 65 87 09 02 01 02 28 01 01
|
63
|
[0;m<000f> gprs_subscriber.c:653 Unknown IMSI 1234567890, discarding GSUP request of type 0x1c
|
64
|
[0;m<0012> gprs_llc.c:485 LLC: unknown TLLI 0xc0000023, creating LLME on the fly
|
65
|
[0;m[1;33m<0002> gprs_sgsn.c:237 MM(/00000000) Allocated with GEA0 cipher.
|
66
|
[0;m[1;33m<0002> gprs_gmm.c:1463 MM(/00000000) -> GMM DETACH REQUEST TLLI=0xc0000023 type=GPRS detach
|
67
|
[0;m[1;33m<0002> gprs_gmm.c:522 <- GPRS MM DETACH ACC (force-standby: 0)
|
68
|
[0;m<0012> gprs_llc_parse.c:81 LLC SAPI=1 C U GEA? IOV-UI=0x000000 FCS=0xe92dc0 [0;mCMD=UI [0;mDATA [0;m
|
69
|
[0;m<0012> gprs_gb_parse.c:408 Got LLC message, CRC: e92dc0 (computed e92dc0)
|
70
|
[0;mGot DL LLC message: DETACH_ACK
|
71
|
[1;33m<0002> gprs_gmm.c:313 MM(/00000000) Cleaning MM context due to GPRS DETACH REQUEST
|
72
|
[0;m<0012> gprs_llc.c:485 LLC: unknown TLLI 0xc0000023, creating LLME on the fly
|
73
|
[0;m[1;33m<0002> gprs_sgsn.c:237 MM(/00000000) Allocated with GEA0 cipher.
|
74
|
[0;m[1;33m<0002> gprs_gmm.c:1463 MM(/00000000) -> GMM DETACH REQUEST TLLI=0xc0000023 type=GPRS detach Power-off
|
75
|
[0;m[1;33m<0002> gprs_gmm.c:313 MM(/00000000) Cleaning MM context due to GPRS DETACH REQUEST
|
76
|
[0;m<0012> gprs_llc.c:485 LLC: unknown TLLI 0xc0000023, creating LLME on the fly
|
77
|
[0;m[1;33m<0002> gprs_gmm.c:1919 Cannot handle GMM for unknown MM CTX
|
78
|
[0;m<0012> gprs_llc.c:1076 LLGM Reset
|
79
|
[0;m==13975== Invalid read of size 4
|
80
|
==13975== at 0x713C404: pthread_mutex_lock (pthread_mutex_lock.c:66)
|
81
|
==13975== by 0x6C6240B: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
|
82
|
==13975== by 0x6CF2B06: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
|
83
|
==13975== by 0x40B721: gprs_llgmm_reset (gprs_llc.c:1078)
|
84
|
==13975== by 0x412BF1: gsm0408_rcv_gmm (gprs_gmm.c:1931)
|
85
|
==13975== by 0x414421: gsm0408_gprs_rcvmsg_gb (gprs_gmm.c:2851)
|
86
|
==13975== by 0x4084B6: send_0408_message (sgsn_test.c:217)
|
87
|
==13975== by 0x403DC6: test_gmm_detach_no_mmctx (sgsn_test.c:846)
|
88
|
==13975== by 0x403DC6: main (sgsn_test.c:2462)
|
89
|
==13975== Address 0x10 is not stack'd, malloc'd or (recently) free'd
|
90
|
==13975==
|
91
|
==13975==
|
92
|
==13975== Process terminating with default action of signal 11 (SIGSEGV)
|
93
|
==13975== Access not within mapped region at address 0x10
|
94
|
==13975== at 0x713C404: pthread_mutex_lock (pthread_mutex_lock.c:66)
|
95
|
==13975== by 0x6C6240B: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
|
96
|
==13975== by 0x6CF2B06: ??? (in /usr/lib/x86_64-linux-gnu/libgnutls.so.28.30.1)
|
97
|
==13975== by 0x40B721: gprs_llgmm_reset (gprs_llc.c:1078)
|
98
|
==13975== by 0x412BF1: gsm0408_rcv_gmm (gprs_gmm.c:1931)
|
99
|
==13975== by 0x414421: gsm0408_gprs_rcvmsg_gb (gprs_gmm.c:2851)
|
100
|
==13975== by 0x4084B6: send_0408_message (sgsn_test.c:217)
|
101
|
==13975== by 0x403DC6: test_gmm_detach_no_mmctx (sgsn_test.c:846)
|
102
|
==13975== by 0x403DC6: main (sgsn_test.c:2462)
|
103
|
==13975== If you believe this happened as a result of a stack
|
104
|
==13975== overflow in your program's main thread (unlikely but
|
105
|
==13975== possible), you can try to increase the size of the
|
106
|
==13975== main thread stack using the --main-stacksize= flag.
|
107
|
==13975== The main thread stack size used in this run was 8388608.
|
108
|
Testing LLME allocations
|
109
|
Testing core subscriber data API
|
110
|
llist_count(gprs_subscribers) == 0
|
111
|
llist_count(gprs_subscribers) == 1
|
112
|
llist_count(gprs_subscribers) == 1
|
113
|
llist_count(gprs_subscribers) == 2
|
114
|
llist_count(gprs_subscribers) == 3
|
115
|
llist_count(gprs_subscribers) == 2
|
116
|
llist_count(gprs_subscribers) == 1
|
117
|
llist_count(gprs_subscribers) == 0
|
118
|
Testing authentication triplet handling
|
119
|
Testing subscriber GSUP handling
|
120
|
Testing GMM detach
|
121
|
Testing GMM detach (power off)
|
122
|
Testing GMM detach (no MMCTX)
|
123
|
==13975==
|
124
|
==13975== HEAP SUMMARY:
|
125
|
==13975== in use at exit: 13,290 bytes in 14 blocks
|
126
|
==13975== total heap usage: 77 allocs, 63 frees, 104,336 bytes allocated
|
127
|
==13975==
|
128
|
==13975== LEAK SUMMARY:
|
129
|
==13975== definitely lost: 0 bytes in 0 blocks
|
130
|
==13975== indirectly lost: 0 bytes in 0 blocks
|
131
|
==13975== possibly lost: 13,290 bytes in 14 blocks
|
132
|
==13975== still reachable: 0 bytes in 0 blocks
|
133
|
==13975== suppressed: 0 bytes in 0 blocks
|
134
|
==13975== Rerun with --leak-check=full to see details of leaked memory
|
135
|
==13975==
|
136
|
==13975== For counts of detected and suppressed errors, rerun with: -v
|
137
|
==13975== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
|