Project

General

Profile

Bug #4793

vty command crashes osmo-ggsn

Added by keith 12 days ago. Updated 9 days ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
10/09/2020
Due date:
10/12/2020
% Done:

100%

Spec Reference:

Description

OsmoGGSN# show pdp-context ggsn ggsn0 imsi 262420000000222 x

where x is 0-15 will crash the ggsn with:

Program received signal SIGSEGV, Segmentation fault.
0x000055ef9095c89c in in46a_is_v4 (addr=0x7f7e3d46ea70) at ../lib/in46_addr.h:40
40 return addr->len == sizeof(struct in_addr);

Also Note:

OsmoGGSN# show pdp-context ggsn ggsn0 imsi 262420000000222

Logs a whole bunch of pdp.c:330 Begin pdp_tidget. Not found

and then displays:

% No such PDP context found

Yes, the IMSI has a pdp-context:

OsmoGGSN# show pdp-context ggsn ggsn0 ipv4 10.20.0.7
IMSI: 262420000000222, NSAPI: 5, MSISDN: (NONE)
Version: 1, Primary, Num Secondaries: 0
Control: 192.168.11.151:00000001 <-> 10.23.100.51:00000001
Data: 192.168.11.151:00000001 <-> 10.23.100.51:00000001
APN requested: internet
APN in use: internet
End-User Address (IPv4): 10.20.0.7
Transmit GTP Sequence Number for G-PDU: Yes

History

#1 Updated by keith 12 days ago

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x0000562972e4689c in in46a_is_v4 (addr=0x7fed27fd2ab0) at ../lib/in46_addr.h:40
40              return addr->len == sizeof(struct in_addr);
(gdb) bt
#0  0x0000562972e4689c in in46a_is_v4 (addr=0x7fed27fd2ab0) at ../lib/in46_addr.h:40
#1  0x0000562972e4690e in pdp_get_peer_ipv (pdp=0x5629745fe920, is_ipv6=false) at util.c:31
#2  0x0000562972e3b483 in show_one_pdp_v4only (vty=0x5629745fdb50, pdp=0x5629745fe920, v4only=false)
    at ggsn_vty.c:853
#3  0x0000562972e3ba59 in show_one_pdp (vty=0x5629745fdb50, pdp=0x5629745fe920) at ggsn_vty.c:903
#4  0x0000562972e3bb4d in show_pdpctx_imsi (self=0x56297304f460 <show_pdpctx_imsi_cmd>,
    vty=0x5629745fdb50, argc=3, argv=0x7ffc431ba440) at ggsn_vty.c:930
#5  0x00007fed437a5637 in ?? () from /usr/lib/x86_64-linux-gnu/libosmovty.so.4
#6  0x00007fed437aa65c in vty_read () from /usr/lib/x86_64-linux-gnu/libosmovty.so.4
#7  0x00007fed437ac791 in ?? () from /usr/lib/x86_64-linux-gnu/libosmovty.so.4
#8  0x00007fed4357762f in ?? () from /usr/lib/x86_64-linux-gnu/libosmocore.so.16
#9  0x00007fed43577d36 in osmo_select_main () from /usr/lib/x86_64-linux-gnu/libosmocore.so.16
#10 0x0000562972e39108 in main (argc=3, argv=0x7ffc431bb278) at ggsn_main.c:203

#2 Updated by keith 11 days ago

#3 Updated by keith 11 days ago

https://gerrit.osmocom.org/c/osmo-ggsn/+/20532

now fixes the crash and the display problem but needs cleanup.

#4 Updated by keith 11 days ago

  • Due date set to 10/12/2020
  • % Done changed from 0 to 70

#5 Updated by keith 9 days ago

  • Status changed from New to Closed
  • % Done changed from 70 to 100

Patch Merged

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)