Project

General

Profile

Actions

Bug #1760

closed

LAPD: segfault in T200 call-back

Added by laforge over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
07/03/2016
Due date:
% Done:

100%

Spec Reference:

Description

<001c> input/lapd.c:628 LAPD DL-RELEASE indication TEI=62 SAPI=62
<001c> lapd_core.c:378 sending MDL-ERROR-IND cause 1
Program received signal SIGSEGV, Segmentation fault.
0xb7f87783 in lapd_dl_flush_hist (dl=<optimized out>, dl=<optimized out>) at lapd_core.c:162
162                     if (dl->tx_hist[i].msg) {
(gdb) p dl
$1 = <optimized out>
(gdb) bt
#0  0xb7f87783 in lapd_dl_flush_hist (dl=<optimized out>, dl=<optimized out>) at lapd_core.c:162
#1  0xb7f892cd in lapd_t200_cb (data=0x8194230) at lapd_core.c:581
#2  0xb7f5a99b in osmo_timers_update () at timer.c:244
#3  0xb7f5b0e3 in osmo_select_main (polling=0) at select.c:188
#4  0x0804d575 in main (argc=3, argv=0xbffffd44) at bsc_hack.c:375

further inspection discovers:

  • dl->tx_hist == NULL
  • dl->range_hist = 2

Files

flush.diff flush.diff 378 Bytes laforge, 07/03/2016 04:52 PM

Related issues

Related to OsmoBSC - Bug #1761: LAPD: segfault when bootstrapping Nokia InSiteResolvedlaforge07/03/2016

Actions
Related to libosmocore - Bug #1762: Review LAPD code for race conditions regarding state, particularly in RELEASENewlaforge07/03/2016

Actions
Related to libosmocore - Bug #4646: SEGV when bringing up Nokia InSiteResolvedlaforge07/04/2020

Actions
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)