Actions
Bug #4977
closedNS2: adding and removing a listen to/from a bind crashes osmo-gbproxy
Start date:
01/26/2021
Due date:
% Done:
100%
Spec Reference:
Description
$ telnet localhost 4246 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Welcome to the OsmoGbProxy VTY interface Copyright (C) 2010 Harald Welte and On-Waves License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. OsmoGbProxy> enable OsmoGbProxy# configure terminal OsmoGbProxy(config)# ns OsmoGbProxy(config-ns)# bind udp foo OsmoGbProxy(config-ns-bind)# listen 127.0.0.1 1234 OsmoGbProxy(config-ns-bind)# no listenConnection closed by foreign host. ~ took 28s
Assert failed bind->ll != GPRS_NS2_LL_UDP gprs_ns2_vty2.c:509 backtrace() returned 18 addresses /home/daniel/local/osmo-master/lib/libosmocore.so.16(+0x13de6f) [0x7ff9092a2e6f] /home/daniel/local/osmo-master/lib/libosmocore.so.16(osmo_generate_backtrace+0x18) [0x7ff9092a32e3] /home/daniel/local/osmo-master/lib/libosmocore.so.16(+0x13dc16) [0x7ff9092a2c16] /home/daniel/local/osmo-master/lib/libosmocore.so.16(osmo_set_panic_handler+0) [0x7ff9092a2d7b] /home/daniel/local/osmo-master/lib/libosmogb.so.11(+0x2a7806) [0x7ff909826806] /home/daniel/local/osmo-master/lib/libosmovty.so.4(+0x93d45) [0x7ff90949cd45] /home/daniel/local/osmo-master/lib/libosmovty.so.4(cmd_execute_command+0xfd) [0x7ff9094a3486] /home/daniel/local/osmo-master/lib/libosmovty.so.4(+0xa4157) [0x7ff9094ad157] /home/daniel/local/osmo-master/lib/libosmovty.so.4(+0xa444e) [0x7ff9094ad44e] /home/daniel/local/osmo-master/lib/libosmovty.so.4(vty_read+0x1092) [0x7ff9094b2f5a] /home/daniel/local/osmo-master/lib/libosmovty.so.4(+0xb143a) [0x7ff9094ba43a] /home/daniel/local/osmo-master/lib/libosmocore.so.16(+0xf8896) [0x7ff90925d896] /home/daniel/local/osmo-master/lib/libosmocore.so.16(+0xf8980) [0x7ff90925d980] /home/daniel/local/osmo-master/lib/libosmocore.so.16(osmo_select_main+0xc) [0x7ff90925da05] /home/daniel/scm/osmo/osmo-sgsn/src/gbproxy/osmo-gbproxy(+0x72077) [0x55c27637f077] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7ff90863ad0a] /home/daniel/scm/osmo/osmo-sgsn/src/gbproxy/osmo-gbproxy(+0x599ba) [0x55c2763669ba] signal 6 received
Actions