Project

General

Profile

Bug #5171

ccch_scan failed

Added by thor123 18 days ago. Updated 13 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/04/2021
Due date:
% Done:

80%

Resolution:
Spec Reference:

Description

when i excute the command :sudo ./ccch_scan -i 127.0.0.1 -a 50. i got the error msg. below is error msg detail.
Assert failed l2_len == GSM_MACBLOCK_LEN app_ccch_scan.c:397
backtrace() returned 20 addresses
/usr/local/lib/libosmocore.so.17(osmo_generate_backtrace+0x1e) [0xb7eedd3a]
/usr/local/lib/libosmocore.so.17(+0x1eb62) [0xb7eedb62]
/usr/local/lib/libosmocore.so.17(osmo_panic+0x48) [0xb7eedbaf]
./ccch_scan(+0x3976) [0x4f5976]
./ccch_scan(+0x3bf2) [0x4f5bf2]
./ccch_scan(+0x3ddb) [0x4f5ddb]
/usr/local/lib/libosmogsm.so.16(+0x2dbf1) [0xb7e7bbf1]
/usr/local/lib/libosmogsm.so.16(+0x2e03e) [0xb7e7c03e]
/usr/local/lib/libosmogsm.so.16(+0x2eed1) [0xb7e7ced1]
/usr/local/lib/libosmogsm.so.16(lapdm_phsap_up+0x118) [0xb7e7d143]
./ccch_scan(+0x57d4) [0x4f77d4]
./ccch_scan(+0x68ba) [0x4f88ba]
/usr/local/lib/libosmocore.so.17(osmo_wqueue_bfd_cb+0x36) [0xb7ee2b62]
/usr/local/lib/libosmocore.so.17(+0xc4bb) [0xb7edb4bb]
/usr/local/lib/libosmocore.so.17(+0xc589) [0xb7edb589]
/usr/local/lib/libosmocore.so.17(osmo_select_main+0x1d) [0xb7edb5b0]
./ccch_scan(+0x2a22) [0x4f4a22]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0x106) [0xb7c61e46]
./ccch_scan(+0x2bc1) [0x4f4bc1]
zsh: abort sudo ./ccch_scan -i 127.0.0.1 -a 50

Associated revisions

Revision 82571685 (diff)
Added by fixeria 12 days ago

host/layer23/ccch_scan: skip CCCH frames with wrong length

It's not clear why do we get frames with unexpected length, but
we definitely should not crash. Just log and ignore them.

Change-Id: I85392becbffdb3ba7365decfd8f3769abe3c02c7
Related: OS#5171

History

#1 Updated by laforge 17 days ago

  • Assignee set to fixeria

#2 Updated by fixeria 17 days ago

  • Status changed from New to In Progress

I'll take a look, thanks for your report!

#3 Updated by fixeria 13 days ago

  • Status changed from In Progress to Feedback
  • Assignee changed from fixeria to thor123
  • % Done changed from 0 to 80

Could you please try again with this change applied?

https://gerrit.osmocom.org/c/osmocom-bb/+/24627 host/layer23/ccch_scan: skip CCCH frames with wrong length [NEW]

It should not crash anymore, but print error messages instead. This is how they look like:

Rx CCCH message with odd length=%u

Please attach the actual messages with this patch applied. I am curious what length do you get.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)