Project

General

Profile

Actions

Bug #3956

closed

SIGSEGV in rate_ctr_group_free()

Added by keith about 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
GTP interface
Target version:
-
Start date:
04/24/2019
Due date:
% Done:

100%

Spec Reference:

Description

Limited context: all i got :(

<0023> gtp.c:2653 Packet from 192.168.100.2:2123, length: 14 content: 32 15 00 06 00 00 00 00 59 47 00 00 01 c0 : Unknown PDP context: 0 (expected if gtp_delete_context_
req is used)
<000e> sgsn_libgtp.c:627 libgtp EOF (type=20, pdp=(nil), cbp=0x555555cfeca0)
<0012> gprs_sndcp.c:514 SNSM-DEACTIVATE.ind for non-existing TLLI=f38f648c SAPI=3 NSAPI=6

Program received signal SIGSEGV, Segmentation fault.

backtrace:

#0  0x00007ffff7313531 in rate_ctr_group_free () from /usr/lib/x86_64-linux-gnu/libosmocore.so.12
#1  0x00005555555651ae in sgsn_pdp_ctx_free (pdp=pdp@entry=0x555555cfeca0) at gprs_sgsn.c:471
#2  0x0000555555570363 in delete_pdp_conf (pdp=0x0, cause=-1, cbp=0x555555cfeca0) at sgsn_libgtp.c:574
#3  cb_conf (type=20, cause=-1, pdp=0x0, cbp=0x555555cfeca0) at sgsn_libgtp.c:636
#4  0x00007ffff66a6401 in gtp_delete_pdp_conf () from /usr/lib/x86_64-linux-gnu/libgtp.so.4
#5  0x00007ffff66a921c in gtp_decaps1c () from /usr/lib/x86_64-linux-gnu/libgtp.so.4
#6  0x00007ffff7308dd4 in osmo_select_main () from /usr/lib/x86_64-linux-gnu/libosmocore.so.12
#7  0x000055555555b9e7 in main (argc=1, argv=0x7fffffffe668) at sgsn_main.c:524

pdp in sgsn_pdp_ctx_free():

(gdb) print *pdp
$6 = {list = {next = 0x100100, prev = 0x200200}, g_list = {next = 0x100100, 
    prev = 0x200200}, mm = 0x555555d1c7d0, destroy_ggsn = 0, ggsn = 0x0, 
  ggsn_list = {next = 0x100100, prev = 0x200200}, ctrg = 0x555555ce9ad0, 
  lib = 0x0, state = PDP_STATE_CR_REQ, type = PDP_TYPE_NONE, address = 0, 
  apn_subscribed = 0x0, nsapi = 6, sapi = 3, ti = 0 '\000', vplmn_allowed = 0, 
  qos_profile_subscr = 0, radio_prio = 0 '\000', timer = {node = {
      rb_parent_color = 0, rb_right = 0x0, rb_left = 0x0}, list = {next = 0x0, 
      prev = 0x0}, timeout = {tv_sec = 0, tv_usec = 0}, active = 0, cb = 0x0, 
    data = 0x0}, T = 0, num_T_exp = 0, cdr_timer = {node = {
      rb_parent_color = 93824998219265, rb_right = 0x0, rb_left = 0x0}, list = {
      next = 0x555555cfed98, prev = 0x555555cfed98}, timeout = {
      tv_sec = 1556101766, tv_usec = 498923}, active = 0, 
    cb = 0x555555577650 <cdr_pdp_timeout>, data = 0x555555cfeca0}, cdr_start = {
    tv_sec = 55042, tv_nsec = 956618094}, cdr_bytes_in = 59, cdr_bytes_out = 318, 
  cdr_charging_id = 448}

pdp->ctrg:

desc = 0x555555790240 <pdpctx_ctrg_desc>, idx = 109, ctr = 0x555555ce9af0}

(gdb) print &pdp->ctrg->list
$51 = (struct llist_head *) 0x555555ce9ad0
(gdb) print *&pdp->ctrg->list
$52 = {next = 0x100100, prev = 0x200200}
(gdb) 

I'm a bit lost in the llist things. 

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)