Changes:
[Pau Espin Pedrol] osmo_sccp_simple_client_on_ss7_id(): Always follow VTY config of ASP if
------------------------------------------ [...truncated 339.44 KB...] Process returned code: 0 Socket: closing 127.0.0.1:4239 <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 49458), raddr=('127.0.0.1', 4239)> (0 sockets open) Verifying stp/osmo-stp -c /build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry, test write_config Launching: PWD=/build 'stp/osmo-stp' '-c' '/build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry'
ls -l /proc/30648/fd
total 0 lr-x------ 1 build build 64 Jun 14 12:06 0 -> pipe:[3621879795] l-wx------ 1 build build 64 Jun 14 12:06 1 -> pipe:[3621879796] l-wx------ 1 build build 64 Jun 14 12:06 2 -> pipe:[3621879797] l-wx------ 1 build build 64 Jun 14 12:06 3 -> /dev/null
ss -tn
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
ss -tln
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
ps xua | grep osmo
build 30648 11.0 0.0 24764 19164 ? S 12:06 0:00 /usr/bin/python3 /usr/local/bin/osmotestconfig.py -p /build -w /build -v build 30745 0.0 0.0 21474924676 13568 ? R 12:06 0:00 /build/stp/.libs/osmo-stp -c /build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry build 30765 0.0 0.0 2480 580 ? S 12:06 0:00 /bin/sh -c ps xua | grep osmo build 30767 0.0 0.0 6240 712 ? S 12:06 0:00 grep osmo
Connecting socket failed, retrying... Socket: in 2 tries, connected to 127.0.0.1:4239 <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 49484), raddr=('127.0.0.1', 4239)> (1 sockets open) Process returned code: 0 Socket: closing 127.0.0.1:4239 <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 49484), raddr=('127.0.0.1', 4239)> (0 sockets open) Verifying stp/osmo-stp -c /build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry, test token_vty_command Launching: PWD=/build 'stp/osmo-stp' '-c' '/build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry'
ls -l /proc/30648/fd
total 0 lr-x------ 1 build build 64 Jun 14 12:06 0 -> pipe:[3621879795] l-wx------ 1 build build 64 Jun 14 12:06 1 -> pipe:[3621879796] l-wx------ 1 build build 64 Jun 14 12:06 2 -> pipe:[3621879797] l-wx------ 1 build build 64 Jun 14 12:06 3 -> /dev/null
ss -tn
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
ss -tln
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
ps xua | grep osmo
build 30648 11.0 0.0 24764 19164 ? S 12:06 0:00 /usr/bin/python3 /usr/local/bin/osmotestconfig.py -p /build -w /build -v build 30769 0.0 0.0 21474924712 14692 ? R 12:06 0:00 /build/stp/.libs/osmo-stp -c /build/writtenconfig/osmo-stp-multihome.cfgcr4ojcry build 30789 0.0 0.0 2480 512 ? S 12:06 0:00 /bin/sh -c ps xua | grep osmo build 30791 0.0 0.0 6240 644 ? S 12:06 0:00 grep osmo
Connecting socket failed, retrying... Socket: in 2 tries, connected to 127.0.0.1:4239 <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 49504), raddr=('127.0.0.1', 4239)> (1 sockets open) Process returned code: 0 Socket: closing 127.0.0.1:4239 <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 49504), raddr=('127.0.0.1', 4239)> (0 sockets open) make[5]: Leaving directory '/build/tests/vty' make[4]: Leaving directory '/build/tests/vty' make[3]: Leaving directory '/build/tests/vty' make[3]: Entering directory '/build/tests' make check-local make[4]: Entering directory '/build/tests' :;{ \ echo '# Signature of the current package.' && \ echo 'm4_define([AT_PACKAGE_NAME],' && \ echo ' [libosmo-sccp])' && \ echo 'm4_define([AT_PACKAGE_TARNAME],' && \ echo ' [libosmo-sccp])' && \ echo 'm4_define([AT_PACKAGE_VERSION],' && \ echo ' [1.7.0.34-83db])' && \ echo 'm4_define([AT_PACKAGE_STRING],' && \ echo ' [libosmo-sccp 1.7.0.34-83db])' && \ echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ echo ' [openbsc@lists.osmocom.org])'; \ echo 'm4_define([AT_PACKAGE_URL],' && \ echo ' [])'; \ } >'./package.m4' /bin/bash ../missing --run autom4te --language=autotest -I '.' -o testsuite.tmp testsuite.at mv testsuite.tmp testsuite /bin/bash './testsuite' ## -------------------------------------- ## ## libosmo-sccp 1.7.0.34-83db test suite. ## ## -------------------------------------- ##
Regression tests.
1: m2ua ok 2: mtp ok 3: sccp ok 4: xua ok 5: ss7 FAILED (testsuite.at:32)
## ------------- ## ## Test results. ## ## ------------- ##
ERROR: All 5 tests were run, 1 failed unexpectedly. ## -------------------------- ## ## testsuite.log was created. ## ## -------------------------- ##
Please send `tests/testsuite.log' and all information you think might help:
To: openbsc@lists.osmocom.org Subject: [libosmo-sccp 1.7.0.34-83db] testsuite: 5 failed
You may investigate any problem if you feel able to do so, in which case the test suite provides a good starting point. Its output may be found below `tests/testsuite.dir'.
make[4]: *** [Makefile:669: check-local] Error 1 make[4]: Leaving directory '/build/tests' make[3]: *** [Makefile:529: check-am] Error 2 make[3]: Leaving directory '/build/tests' make[2]: *** [Makefile:378: check-recursive] Error 1 make[2]: Leaving directory '/build/tests' make[1]: *** [Makefile:509: check-recursive] Error 1 make[1]: Leaving directory '/build' make: *** [Makefile:809: check] Error 2 + cat-testlogs.sh
======================== ./tests/testsuite.dir/5/testsuite.log
# -*- compilation -*- 5. testsuite.at:29: testing ss7 ... ./testsuite.at:32: $abs_top_builddir/tests/ss7/ss7_test stderr: [38;5;43m<000c> 0: Creating SS7 Instance [0;m[38;5;43m<000c> 0: Creating Route Table system [0;m[38;5;43m<000c> 0: Point Code Format 8-8-8 is longer than 14 bits, odd? [0;m[38;5;43m<000c> registering user=testuser for SI 1 with priv 0x1234 [0;m[38;5;43m<000c> delivering MTP-TRANSFER.ind to user testuser, priv=0x1234 [0;m[38;5;43m<000c> No MTP-User for SI 1 [0;m[38;5;43m<000c> Unsupported Primitive [0;m[38;5;43m<000c> 0: Creating Route Table foobar [0;m[38;5;43m<000c> 0: Creating Linkset a [0;m[38;5;43m<000c> 0: Creating Linkset b [0;m[38;5;43m<000c> 0: Creating route: pc=12=0.1.4 mask=0x3fff via linkset 'a' [0;m[38;5;43m<000c> 0: Destroying route: pc=12=0.1.4 mask=0x3fff via linkset/ASP 'a' [0;m[38;5;43m<000c> 0: Creating route: pc=8=0.1.0 mask=0x3ff8 via linkset 'a' [0;m[38;5;43m<000c> 0: Creating route: pc=12=0.1.4 mask=0x3fff via linkset 'b' [0;m[38;5;43m<000c> 0: Creating route: pc=0=0.0.0 mask=0x0 via linkset 'a' [0;m[38;5;43m<000c> 0: Destroying route: pc=0=0.0.0 mask=0x0 via linkset/ASP 'a' [0;m[38;5;43m<000c> 0: Destroying route: pc=12=0.1.4 mask=0x3fff via linkset/ASP 'b' [0;m[38;5;43m<000c> 0: Destroying route: pc=8=0.1.0 mask=0x3ff8 via linkset/ASP 'a' [0;m[38;5;43m<000c> 0: Creating route: pc=8=0.1.0 mask=0x3ff9 via linkset 'a' [0;m[38;5;43m<000c> 0: Destroying route: pc=8=0.1.0 mask=0x3ff9 via linkset/ASP 'a' [0;m[38;5;43m<000c> 0: Destroying Linkset a [0;m[38;5;43m<000c> 0: Destroying Linkset b [0;m[38;5;43m<000c> 0: Creating Linkset a [0;m[38;5;43m<000c> 0: Creating Linkset b [0;m[38;5;43m<000c> 0: Creating Link a:1 [0;m[38;5;43m<000c> 0: Creating Link a:2 [0;m[38;5;43m<000c> 0: Destroying Link a:1 [0;m[38;5;43m<000c> 0: Destroying Link a:2 [0;m[38;5;43m<000c> 0: Destroying Linkset a [0;m[38;5;43m<000c> 0: Destroying Linkset b [0;m[38;5;43m<000c> XUA_AS(as1){AS_DOWN}: Allocated [0;m[38;5;43m<000c> 0: as-as1: Created AS [0;m[38;5;43m<000c> 0: as-as1: Adding ASP asp1 to AS [0;m[38;5;43m<000c> 0: asp-asp1: Restarting ASP asp1, r=:0<->l=:2905 [0;m[38;5;23m<0002> [WAIT_RECONNECT] osmo_stream_cli_reconnect(): retrying in 5 seconds... [0;m[38;5;43m<000c> 0: asp-asp1: Unable to open stream client for ASP asp1, :2905 ==> :0 [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_DOWN}: Allocated [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_DOWN}: Received Event M-ASP_UP.req [0;m[38;5;43m<000c> 0: asp-asp1: Cannot transmit, asp->client not connected [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_DOWN}: Received Event ASPSM-ASP_UP_ACK [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_DOWN}: state_chg to ASP_INACTIVE [0;m[38;5;43m<000c> XUA_AS(as1){AS_DOWN}: Received Event ASPAS-ASP_INACTIVE.ind [0;m[38;5;43m<000c> XUA_AS(as1){AS_DOWN}: state_chg to AS_INACTIVE [0;m[38;5;43m<000c> 0: asp-asp1: No Layer Manager, dropping M-ASP_UP.confirm [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_INACTIVE}: Received Event M-ASP_ACTIVE.req [0;m[38;5;43m<000c> 0: asp-asp1: Cannot transmit, asp->client not connected [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_INACTIVE}: Received Event ASPTM-ASP_AC_ACK [0;m[38;5;43m<000c> XUA_ASP(asp1){ASP_INACTIVE}: state_chg to ASP_ACTIVE [0;m[38;5;43m<000c> XUA_AS(as1){AS_INACTIVE}: Received Event ASPAS-ASP_ACTIVE.ind [0;m[38;5;43m<000c> XUA_AS(as1){AS_INACTIVE}: state_chg to AS_ACTIVE [0;m[38;5;43m<000c> 0: asp-asp1: No Layer Manager, dropping M-ASP_ACTIVE.confirm [0;m[38;5;43m<000c> 0: as-as1: Removing ASP asp1 from AS [0;m[38;5;43m<000c> 0: as-as1: Removing ASP asp1 from AS [0;m[38;5;43m<000c> 0: asp-asp1: Destroying ASP [0;mAddressSanitizer:DEADLYSIGNAL ================================================================= ==30977==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f96ff175076 bp 0x7ffed05aa368 sp 0x7ffed05aa368 T0) ==30977==The signal is caused by a WRITE memory access. ==30977==Hint: address points to the zero page. #0 0x7f96ff175076 in __llist_del (/build/deps/install/lib/libosmocore.so.20+0x2e076) #1 0x7f96ff1750ad in llist_del (/build/deps/install/lib/libosmocore.so.20+0x2e0ad) #2 0x7f96ff175688 in osmo_fd_unregister (/build/deps/install/lib/libosmocore.so.20+0x2e688) #3 0x7f96ff263700 in osmo_stream_cli_close (/build/deps/install/lib/libosmonetif.so.11+0x13700) #4 0x7f96ff26484a in osmo_stream_cli_destroy (/build/deps/install/lib/libosmonetif.so.11+0x1484a) #5 0x5560e160c631 in osmo_ss7_asp_destroy (/build/tests/ss7/ss7_test+0x15b631) #6 0x5560e15f7b22 in test_as (/build/tests/ss7/ss7_test+0x146b22) #7 0x5560e15f818e in main (/build/tests/ss7/ss7_test+0x14718e) #8 0x7f96fe5f4d09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09) #9 0x5560e15f5b49 in _start (/build/tests/ss7/ss7_test+0x144b49)
AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/build/deps/install/lib/libosmocore.so.20+0x2e076) in __llist_del ==30977==ABORTING --- expout 2023-06-14 12:06:09.086529942 +0000 +++ /build/tests/testsuite.dir/at-groups/5/stdout 2023-06-14 12:06:09.086529942 +0000 @@ -1,30 +0,0 @@ -Testing ITU-style point code format -test_pc_transcode(0) -> 0.0.0 -> 0 -test_pc_transcode(1) -> 0.0.1 -> 1 -test_pc_transcode(8) -> 0.1.0 -> 8 -test_pc_transcode(2048) -> 1.0.0 -> 2048 -test_pc_transcode(14336) -> 7.0.0 -> 14336 -test_pc_transcode(100) -> 0.12.4 -> 100 -test_pc_transcode(2342) -> 1.36.6 -> 2342 -test_pc_transcode(16383) -> 7.255.7 -> 16383 -mask /1 => 8192 (0x2000) 4.0.0 -mask 7.0.0 => 14336 (0x3800) 7.0.0 -mask /14 => 16383 (0x3fff) 7.255.7 -Testing ANSI-style point code format -test_pc_transcode(0) -> 0-0-0 -> 0 -test_pc_transcode(1) -> 0-0-1 -> 1 -test_pc_transcode(256) -> 0-1-0 -> 256 -test_pc_transcode(65536) -> 1-0-0 -> 65536 -test_pc_transcode(2048) -> 0-8-0 -> 2048 -test_pc_transcode(16777215) -> 255-255-255 -> 16777215 -test_pc_transcode(100) -> 0-0-100 -> 100 -test_pc_transcode(2342) -> 0-9-38 -> 2342 -mask /1 => 8388608 (0x800000) 128-0-0 -mask /16 => 16776960 (0xffff00) 255-255-0 -mask /24 => 16777215 (0xffffff) 255-255-255 -Testing SS7 user -Testing SS7 routing -route with full mask: 0.1.4/14 -route with partial mask: 0.1.0/11 -route with non-consecutive mask: 0.1.0/7.255.1 -Testing SS7 linkset/link ./testsuite.at:32: exit code was 1, expected 0 5. testsuite.at:29: 5. ss7 (testsuite.at:29): FAILED (testsuite.at:32) Build step 'Execute shell' marked build as failure $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 1843701 killed; [ssh-agent] Stopped. Archiving artifacts