osmo-msc/openbsc/tests
Holger Hans Peter Freyther 73ec6980d5 nat: Introduce a config free for the test and fix valgrind issues
The talloc_free on the nat lead to the freeing of the bsc_config
which lead to freeing of the rate_ctr_group. The rate_ctr_group
remained in a global list and the next creation of a bsc_config
would access dead memory. Fix it.

The free routine is only meant to be used by the test, for the
real nat we would need to make sure that all connections and
other state that refers to the cfg is removed/closed first.

Fix various memleaks in the test while we are at it. There are
still some to fix.

==7195== Invalid write of size 4
==7195==    at 0x4043171: rate_ctr_group_alloc (linuxlist.h:65)
==7195==    by 0x804D893: bsc_config_alloc (bsc_nat_utils.c:174)
==7195==    by 0x804B5D2: main (bsc_nat_test.c:954)
==7195==  Address 0x4311cbc is 52 bytes inside a block of size 208 free'd
==7195==    at 0x4029D28: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==7195==    by 0x4048D98: _talloc_free (talloc.c:609)
==7195==    by 0x4052806: talloc_free (talloc.c:578)
==7195==    by 0x804B58A: main (bsc_nat_test.c:940)
2014-08-29 11:42:34 +02:00
..
abis Makefile.am: Use AM_CPPFLAGS 2013-06-12 09:16:27 +02:00
bsc move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
bsc-nat nat: Introduce a config free for the test and fix valgrind issues 2014-08-29 11:42:34 +02:00
bsc-nat-trie move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
channel channel_test: Return a positive number to claim it was paged 2014-05-28 17:00:48 +02:00
db db: Fix next fall-out with make distcheck 2014-05-01 07:53:42 +02:00
gbproxy gbproxy: Move peer definitions to gb_proxy_peer.c 2014-08-24 16:16:40 +02:00
gprs gprs: Add testcases for the APN string/octet conversion and fix it 2014-08-04 15:00:54 +02:00
gsm0408 sms: Increment the RP Message Reference for each transaction 2014-02-20 11:35:56 +01:00
mgcp mgcp: Change API to remove memory management from the name 2014-07-22 15:00:52 +02:00
smpp smpp: Fix the make distcheck for smpp 2013-09-19 11:08:43 +02:00
trau mncc: Complete definitions for all speech traffic frames at MNCC interface 2014-03-20 22:36:16 +01:00
Makefile.am misc: Introduce a more neutral configure option for CTRL/VTY 2014-08-22 00:29:04 +02:00
atlocal.in mgcp/test: Add test cases for transcoding and repacking 2014-06-05 14:08:53 +02:00
ctrl_test_runner.py ctrl: Extend the testcase for using '09' as numbers on the interface 2014-04-24 10:30:05 +02:00
smpp_test_runner.py nitb/smpp: Add simple test runner for the issues found by daniel 2014-03-06 23:48:17 +01:00
testsuite.at mgcp/test: Add test cases for transcoding and repacking 2014-06-05 14:08:53 +02:00
vty_test_runner.py mgcp: Verify that the force-ptime is written back to the file 2014-07-07 19:24:34 +02:00