Project

General

Profile

Actions

Bug #4977

closed

NS2: adding and removing a listen to/from a bind crashes osmo-gbproxy

Added by daniel about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
libosmogb
Target version:
-
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 #1

Updated by daniel about 3 years ago

  • Status changed from New to In Progress
  • Assignee changed from lynxis to daniel
Actions #2

Updated by daniel about 3 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 90

The assert was the wrong way around. Fix in:
https://gerrit.osmocom.org/c/libosmocore/+/22448

Actions #3

Updated by daniel about 3 years ago

  • Subject changed from NS2: addind and removing a listen to/from a bind crashes osmo-gbproxy to NS2: adding and removing a listen to/from a bind crashes osmo-gbproxy
Actions #4

Updated by daniel about 3 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Merged

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)