Project

General

Profile

Actions

Bug #5171

open

ccch_scan failed

Added by thor123 6 months ago. Updated 6 months 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

Actions #1

Updated by laforge 6 months ago

  • Assignee set to fixeria
Actions #2

Updated by fixeria 6 months ago

  • Status changed from New to In Progress

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

Actions #3

Updated by fixeria 6 months 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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)