bsc_hack dies

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Stuart Baggs stuart at bluewave.im
Sun Nov 14 20:35:33 UTC 2010


After 30 seconds my bsc_hack is dieing. Here is the error:

root at gateway:~/openbsc/openbsc# /usr/local/sbin/bsc_hack -c /home/stuart/openbsc.cfg -P
DB: Database initialized.
DB: Database prepared.
<000d> input/ipaccess.c:634 accept()ed new OML link from 192.168.1.51
<0005> bsc_init.c:745 bootstrapping OML for BTS 0
SET ATTR NACK  CAUSE=Message cannot be performed
<000d> input/ipaccess.c:696 accept()ed new RSL link from 192.168.1.51
<0004> bsc_init.c:941 bootstrapping RSL for BTS/TRX (0/0) on ARFCN 870 using MCC=234 MNC=18 LAC=1 CID=0 BSIC=63 TSC=7
<0000> chan_alloc.c:441 (bts=0,trx=0,ts=0,ss=0) Recycling Channel.
<0004> abis_rsl.c:588 (bts=0,trx=0,ts=0,ss=1) is back in operation.
*** stack smashing detected ***: /usr/local/sbin/bsc_hack terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x2eaed8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0x2eae90]
/usr/local/sbin/bsc_hack[0x8060f43]
/usr/local/sbin/bsc_hack[0x805cca0]
/usr/local/sbin/bsc_hack[0x80663d9]
/usr/local/sbin/bsc_hack[0x80752a2]
/usr/local/lib/libosmocore.so.0(bsc_select_main+0x14b)[0x88e51b]
/usr/local/sbin/bsc_hack[0x804c0a6]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x220b56]
/usr/local/sbin/bsc_hack[0x804bbb1]
======= Memory map: ========
00110000-00111000 r-xp 00000000 00:00 0          [vdso]
0020a000-00348000 r-xp 00000000 fc:00 171        /lib/tls/i686/cmov/libc-2.10.1.so
00348000-00349000 ---p 0013e000 fc:00 171        /lib/tls/i686/cmov/libc-2.10.1.so
00349000-0034b000 r--p 0013e000 fc:00 171        /lib/tls/i686/cmov/libc-2.10.1.so
0034b000-0034c000 rw-p 00140000 fc:00 171        /lib/tls/i686/cmov/libc-2.10.1.so
0034c000-0034f000 rw-p 00000000 00:00 0 
003c0000-003dc000 r-xp 00000000 fc:00 300        /lib/libgcc_s.so.1
003dc000-003dd000 r--p 0001b000 fc:00 300        /lib/libgcc_s.so.1
003dd000-003de000 rw-p 0001c000 fc:00 300        /lib/libgcc_s.so.1
00443000-0045e000 r-xp 00000000 fc:00 143        /lib/ld-2.10.1.so
0045e000-0045f000 r--p 0001a000 fc:00 143        /lib/ld-2.10.1.so
0045f000-00460000 rw-p 0001b000 fc:00 143        /lib/ld-2.10.1.so
004ba000-004c5000 r-xp 00000000 fc:00 151866     /usr/lib/libdbi.so.0.0.5
004c5000-004c6000 rw-p 0000a000 fc:00 151866     /usr/lib/libdbi.so.0.0.5
00569000-0056b000 r-xp 00000000 fc:00 177        /lib/tls/i686/cmov/libdl-2.10.1.so
0056b000-0056c000 r--p 00001000 fc:00 177        /lib/tls/i686/cmov/libdl-2.10.1.so
0056c000-0056d000 rw-p 00002000 fc:00 177        /lib/tls/i686/cmov/libdl-2.10.1.so
005cf000-005f3000 r-xp 00000000 fc:00 179        /lib/tls/i686/cmov/libm-2.10.1.so
005f3000-005f4000 r--p 00023000 fc:00 179        /lib/tls/i686/cmov/libm-2.10.1.so
005f4000-005f5000 rw-p 00024000 fc:00 179        /lib/tls/i686/cmov/libm-2.10.1.so
006c8000-006dd000 r-xp 00000000 fc:00 235        /lib/tls/i686/cmov/libpthread-2.10.1.so
006dd000-006de000 r--p 00014000 fc:00 235        /lib/tls/i686/cmov/libpthread-2.10.1.so
006de000-006df000 rw-p 00015000 fc:00 235        /lib/tls/i686/cmov/libpthread-2.10.1.so
006df000-006e1000 rw-p 00000000 00:00 0 
00764000-007ea000 r-xp 00000000 fc:00 135483     /usr/lib/libsqlite3.so.0.8.6
007ea000-007eb000 r--p 00086000 fc:00 135483     /usr/lib/libsqlite3.so.0.8.6
007eb000-007ec000 rw-p 00087000 fc:00 135483     /usr/lib/libsqlite3.so.0.8.6
00889000-008a2000 r-xp 00000000 fc:00 1806       /usr/local/lib/libosmocore.so.0.0.0
008a2000-008a3000 r--p 00018000 fc:00 1806       /usr/local/lib/libosmocore.so.0.0.0
008a3000-008a4000 rw-p 00019000 fc:00 1806       /usr/local/lib/libosmocore.so.0.0.0
008a4000-008a5000 rw-p 00000000 00:00 0 
00abe000-00ac7000 r-xp 00000000 fc:00 175        /lib/tls/i686/cmov/libcrypt-2.10.1.so
00ac7000-00ac8000 r--p 00008000 fc:00 175        /lib/tls/i686/cmov/libcrypt-2.10.1.so
00ac8000-00ac9000 rw-p 00009000 fc:00 175        /lib/tls/i686/cmov/libcrypt-2.10.1.so
00ac9000-00af0000 rw-p 00000000 00:00 0 
00bca000-00bcf000 r-xp 00000000 fc:00 151877     /usr/lib/dbd/libdbdsqlite3.so
00bcf000-00bd0000 r--p 00004000 fc:00 151877     /usr/lib/dbd/libdbdsqlite3.so
00bd0000-00bd1000 rw-p 00005000 fc:00 151877     /usr/lib/dbd/libdbdsqlite3.so
08048000-08091000 r-xp 00000000 fc:00 154760     /usr/local/sbin/bsc_hack
08091000-08092000 r--p 00048000 fc:00 154760     /usr/local/sbin/bsc_hack
08092000-08097000 rw-p 00049000 fc:00 154760     /usr/local/sbin/bsc_hack
08097000-0809b000 rw-p 00000000 00:00 0 
0919b000-09228000 rw-p 00000000 00:00 0          [heap]
b6ffe000-b6fff000 ---p 00000000 00:00 0 
b6fff000-b7802000 rw-p 00000000 00:00 0 
b7806000-b7808000 rw-p 00000000 00:00 0 
bfa5e000-bfa73000 rw-p 00000000 00:00 0          [stack]
signal 6 received
talloc report on 'vty' (total  37965 bytes in 3350 blocks)
    save_cwd                       contains     29 bytes in   1 blocks (ref 0) 0x91bb478
    vty_command                    contains  21352 bytes in 1719 blocks (ref 0) 0x91bb440
    vty_vector                     contains  16584 bytes in 1629 blocks (ref 0) 0x91bb408
full talloc report on 'openbsc' (total 137666 bytes in  63 blocks)
    struct e1inp_line              contains  45208 bytes in   1 blocks (ref 0) 0x9207170
    struct ia_e1_handle            contains     60 bytes in   1 blocks (ref 0) 0x91f1500
    telnet_connection              contains      1 bytes in   1 blocks (ref 0) 0x91a18a0
    struct gsm_network             contains  89224 bytes in   6 blocks (ref 0) 0x91a16e0
        struct gsm_bts                 contains  88804 bytes in   2 blocks (ref 0) 0x91f1620
            struct gsm_bts_trx             contains  86188 bytes in   1 blocks (ref 0) 0x91f2090
        BlueWave                       contains      9 bytes in   1 blocks (ref 0) 0x919f018
        BlueWave                       contains      9 bytes in   1 blocks (ref 0) 0x91a3490
        127.0.0.1                      contains     10 bytes in   1 blocks (ref 0) 0x91a2038
    counter                        contains    580 bytes in  30 blocks (ref 0) 0x919b568
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3448
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3400
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a33b8
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3370
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3328
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a32e0
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3298
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3250
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3208
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a31c0
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a3178
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919d958
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919d910
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919d8c8
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919d880
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919d838
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919ea18
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919e9d0
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919e988
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919e940
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919e8f8
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919efd0
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919ef88
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919ef40
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919eef8
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919f0d0
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x919f088
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a2078
        struct counter                 contains     20 bytes in   1 blocks (ref 0) 0x91a25b0
    trau_upq_entry                 contains      0 bytes in   1 blocks (ref 0) 0x919b530
    trau_map_entry                 contains      0 bytes in   1 blocks (ref 0) 0x919b4f8
    transaction                    contains      0 bytes in   1 blocks (ref 0) 0x919b4c0
    subch_txq_entry                contains      0 bytes in   1 blocks (ref 0) 0x919b488
    signal_handler                 contains    140 bytes in   8 blocks (ref 0) 0x919b450
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x91f13e8
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x91eb2b8
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x919b6c0
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x919b678
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x919b630
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x919b5e8
        struct signal_handler          contains     20 bytes in   1 blocks (ref 0) 0x919b5a0
    paging_request                 contains      0 bytes in   1 blocks (ref 0) 0x919b418
    gsm_call                       contains      0 bytes in   1 blocks (ref 0) 0x919b3e0
    subscr_request                 contains      0 bytes in   1 blocks (ref 0) 0x919b3a8
    subscriber                     contains    392 bytes in   2 blocks (ref 0) 0x919b370
        struct gsm_subscriber          contains    392 bytes in   1 blocks (ref 0) 0x9212ce0
    sms                            contains      0 bytes in   1 blocks (ref 0) 0x919b338
    loc_updating_oper              contains      0 bytes in   1 blocks (ref 0) 0x919b300
    bs11_file_list_entry           contains      0 bytes in   1 blocks (ref 0) 0x919b2c8
    msgb                           contains   2060 bytes in   3 blocks (ref 0) 0x919b290
        GSM 04.08                      contains   1092 bytes in   1 blocks (ref 0) 0x9213360
        Abis/IP                        contains    968 bytes in   1 blocks (ref 0) 0x91f0f20
Aborted


Any ideas?



More information about the OpenBSC mailing list