<p>Hello Everyone for Spain<br />I have some problems in the startup or running Dectmon. I use the lasted drivers  (today 20101008)   packets on http://dect.osmocom.org. This is my runbook:<br /><br />1) I compile dectmon with this:<br /><br />#sh autogen.sh<br />#sh configure<br />#make<br />#make install <br /><br />2)I getup the interface:<br /><br />#dect-cluster-add --name cluster0 --emc 0x12f5 --fpn 0x0be9f --mode PP<br />#dect-cell-add --name cell0 --cluster cluster0 --flags monitor<br />#dect-transceiver-bind --transceiver trx0 --cell cell0<br /><br />Added: 0: DECT Cluster cluster0:<br />    Mode: PP<br />    PARI: class A (residential) EMC: 12f5 FPN: 0be9f<br />Added: 0: DECT Cell cell0@cluster0: <monitor><br />Bound: DECT Transceiver trx0@cell0:<br />    RF-band: 00000<br />    Events: busy: 0 late: 0<br /><br /><br />3)I can see in the log that the device is correct getup (some fragment):</p>
<p>[ 3709.832225] extended fixed part capabilities: fpc: 00022 hlc: 000000<br />[ 3710.099164] extended fixed part capabilities: fpc: 00020 hlc: 000000<br />[ 3710.914148] identities information: e: 0 class: 0 emc: 1106 fpn: 08f71 rpn: 0<br />[ 3711.382176] identities information: e: 0 class: 0 emc: 065f fpn: 1d9d8 rpn: 0<br />[ 3712.039334] identities information: e: 0 class: 0 emc: 0f73 fpn: 1066a rpn: 0<br />[ 3712.120434] identities information: e: 0 class: 0 emc: 0d24 fpn: 04834 rpn: 0<br />[ 3713.079207] identities information: e: 0 class: 0 emc: 1056 fpn: 158ee rpn: 0<br />[ 3713.345455] identities information: e: 0 class: 0 emc: 1133 fpn: 1e399 rpn: 0<br />[ 3713.467939] identities information: e: 0 class: 0 emc: 0de9 fpn: 1bc8c rpn: 0<br />[ 3713.550437] page: RFPI: 241a0 bearer description: bt: 5000000000 sn: 2 sp: 0 cn: 4<br />[ 3713.632170] identities information: e: 0 class: 0 emc: 065f fpn: 1d9d8 rpn: 0<br />[ 3713.877937] identities information: e: 0 class: 0 emc: 0de9 fpn: 1bc8c rpn: 0<br />[ 3714.736021] identities information: e: 0 class: 0 emc: 0726 fpn: 16bc9 rpn: 0<br />[ 3714.960698] page: RFPI: cf0b0 blind full slots: 2aa<br />[ 3715.329202] identities information: e: 0 class: 0 emc: 1056 fpn: 158ee rpn: 0<br />[ 3715.390439] static system information: nr: 0 sn: 2 cn: 4 pscn: 4<br />[ 3716.044455] identities information: e: 0 class: 0 emc: 12fd fpn: 1b11b rpn: 0<br />[ 3716.166016] identities information: e: 0 class: 0 emc: 0726 fpn: 16bc9 rpn: 0<br />[ 3716.576015] full/long page: extend: 0 length: 4000000000000000<br />[ 3716.986016] identities information: e: 0 class: 0 emc: 0726 fpn: 16bc9 rpn: 0<br />[ 3717.230442] page: RFPI: 241a0 bearer description: bt: 5000000000 sn: 2 sp: 0 cn: 4<br />[ 3717.392245] identities information: e: 0 class: 0 emc: 101b fpn: 13012 rpn: 0<br />[ 3717.432942] identities information: e: 0 class: 0 emc: 1133 fpn: 1e399 rpn: 0<br />[ 3717.757908] identities information: e: 0 class: 0 emc: 0de9 fpn: 1bc8c rpn: 0<br />[ 3718.023878] identities information: e: 0 class: 0 emc: 14d4 fpn: 18fc7 rpn: 0<br />[ 3718.779329] identities information: e: 0 class: 0 emc: 0f73 fpn: 1066a rpn: 0<br />[ 3719.086319] identities information: e: 0 class: 0 emc: 0747 fpn: 06960 rpn: 0<br />[ 3719.433269] identities information: e: 0 class: 0 emc: 0a6d fpn: 061c7 rpn: 0<br />[ 3719.494174] identities information: e: 0 class: 0 emc: 1106 fpn: 08f71 rpn: 0<br />[ 3719.657595] identities information: e: 0 class: 0 emc: 07ef fpn: 17322 rpn: 0</p>
<p>4) Launch  Dectmon return a segment fault<br /><br /><br />root@DECT:/usr/src/dectmon# src/dectmon<br />*** glibc detected *** ./dectmon: free(): invalid next size (normal): 0x084d15c8 ***<br />======= Backtrace: =========<br />/lib/i686/cmov/libc.so.6(+0x6b281)[0xb772d281]<br />/lib/i686/cmov/libc.so.6(+0x6cad8)[0xb772ead8]<br />/lib/i686/cmov/libc.so.6(cfree+0x6d)[0xb7731bbd]<br />/usr/local/lib/libnl.so.3(nlmsg_free+0x83)[0xb784a1d3]<br />/usr/local/lib/libnl-dect.so.3(nl_dect_cluster_query+0x50)[0xb78570b0]<br />/usr/lib/libdect.so.0(+0x1cc9d)[0xb7830c9d]<br />/usr/lib/libdect.so.0(dect_open_handle+0xbd)[0xb7818e5d]<br />./dectmon[0x804cbec]<br />/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb76d8c76]<br />./dectmon[0x8049021]<br />======= Memory map: ========<br />08048000-0804e000 r-xp 00000000 03:01 794829     /usr/src/dectmon/src/dectmon<br />0804e000-0804f000 rw-p 00006000 03:01 794829     /usr/src/dectmon/src/dectmon<br />084d1000-084f2000 rw-p 00000000 00:00 0          [heap]<br />b7500000-b7521000 rw-p 00000000 00:00 0 <br />b7521000-b7600000 ---p 00000000 00:00 0 <br />b7669000-b7686000 r-xp 00000000 03:01 2154538    /lib/libgcc_s.so.1<br />b7686000-b7687000 rw-p 0001c000 03:01 2154538    /lib/libgcc_s.so.1<br />b769b000-b769c000 rw-p 00000000 00:00 0 <br />b769c000-b76c0000 r-xp 00000000 03:01 2171097    /lib/i686/cmov/libm-2.11.2.so<br />b76c0000-b76c1000 r--p 00023000 03:01 2171097    /lib/i686/cmov/libm-2.11.2.so<br />b76c1000-b76c2000 rw-p 00024000 03:01 2171097    /lib/i686/cmov/libm-2.11.2.so<br />b76c2000-b7802000 r-xp 00000000 03:01 2171331    /lib/i686/cmov/libc-2.11.2.so<br />b7802000-b7804000 r--p 0013f000 03:01 2171331    /lib/i686/cmov/libc-2.11.2.so<br />b7804000-b7805000 rw-p 00141000 03:01 2171331    /lib/i686/cmov/libc-2.11.2.so<br />b7805000-b7808000 rw-p 00000000 00:00 0 <br />b7808000-b7813000 r-xp 00000000 03:01 2048785    /usr/lib/libev.so.3.0.0<br />b7813000-b7814000 rw-p 0000b000 03:01 2048785    /usr/lib/libev.so.3.0.0<br />b7814000-b783a000 r-xp 00000000 03:01 2048792    /usr/lib/libdect.so.0.0.1<br />b783a000-b783e000 rw-p 00025000 03:01 2048792    /usr/lib/libdect.so.0.0.1<br />b783e000-b783f000 rw-p 00000000 00:00 0 <br />b783f000-b7851000 r-xp 00000000 03:01 762960     /usr/local/lib/libnl.so.3.0.0<br />b7851000-b7852000 rw-p 00012000 03:01 762960     /usr/local/lib/libnl.so.3.0.0<br />b7852000-b785b000 r-xp 00000000 03:01 762976     /usr/local/lib/libnl-dect.so.3.0.0<br />b785b000-b785c000 rw-p 00009000 03:01 762976     /usr/local/lib/libnl-dect.so.3.0.0<br />b7870000-b7872000 rw-p 00000000 00:00 0 <br />b7872000-b7873000 r-xp 00000000 00:00 0          [vdso]<br />b7873000-b788e000 r-xp 00000000 03:01 2155169    /lib/ld-2.11.2.so<br />b788e000-b788f000 r--p 0001a000 03:01 2155169    /lib/ld-2.11.2.so<br />b788f000-b7890000 rw-p 0001b000 03:01 2155169    /lib/ld-2.11.2.so<br />bfcae000-bfccf000 rw-p 00000000 00:00 0          [stack]</p>
<p>5) I use Valgrid to see a problem, but valgrid fails, i think that is a problem with the malloc when it get memory for the stack:<br /><br />root@DECT:/usr/src/dectmon# valgrind src/dectmon <br />==10731== Memcheck, a memory error detector<br />==10731== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.<br />==10731== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info<br />==10731== Command: src/dectmon<br />==10731== <br />==10731== Invalid write of size 2<br />==10731==    at 0x408E568: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d8 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E57C: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7c0 is 0 bytes after a block of size 88 alloc'd<br />==10731==    at 0x4023FE0: malloc (vg_replace_malloc.c:236)<br />==10731==    by 0x407897D: dect_malloc (utils.c:21)<br />==10731==    by 0x4078486: dect_fd_alloc (io.c:56)<br />==10731==    by 0x4077BBF: dect_netlink_init (netlink.c:352)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E582: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7cc is 12 bytes after a block of size 88 alloc'd<br />==10731==    at 0x4023FE0: malloc (vg_replace_malloc.c:236)<br />==10731==    by 0x407897D: dect_malloc (utils.c:21)<br />==10731==    by 0x4078486: dect_fd_alloc (io.c:56)<br />==10731==    by 0x4077BBF: dect_netlink_init (netlink.c:352)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E589: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d0 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E590: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7c8 is 8 bytes after a block of size 88 alloc'd<br />==10731==    at 0x4023FE0: malloc (vg_replace_malloc.c:236)<br />==10731==    by 0x407897D: dect_malloc (utils.c:21)<br />==10731==    by 0x4078486: dect_fd_alloc (io.c:56)<br />==10731==    by 0x4077BBF: dect_netlink_init (netlink.c:352)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E593: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7c4 is 4 bytes after a block of size 88 alloc'd<br />==10731==    at 0x4023FE0: malloc (vg_replace_malloc.c:236)<br />==10731==    by 0x407897D: dect_malloc (utils.c:21)<br />==10731==    by 0x4078486: dect_fd_alloc (io.c:56)<br />==10731==    by 0x4077BBF: dect_netlink_init (netlink.c:352)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408E596: event_set (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804940E: register_fd (event_ops.c:35)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d4 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid read of size 2<br />==10731==    at 0x408EC70: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d8 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid read of size 4<br />==10731==    at 0x408ECD3: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7c8 is 8 bytes after a block of size 88 alloc'd<br />==10731==    at 0x4023FE0: malloc (vg_replace_malloc.c:236)<br />==10731==    by 0x407897D: dect_malloc (utils.c:21)<br />==10731==    by 0x4078486: dect_fd_alloc (io.c:56)<br />==10731==    by 0x4077BBF: dect_netlink_init (netlink.c:352)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731== <br />==10731== Invalid read of size 4<br />==10731==    at 0x408ECF0: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d4 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid read of size 4<br />==10731==    at 0x408ED2F: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d4 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408ED35: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d4 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />==10731== Invalid write of size 4<br />==10731==    at 0x408ECB5: event_add (in /usr/lib/libev.so.3.0.0)<br />==10731==    by 0x804941E: register_fd (event_ops.c:36)<br />==10731==    by 0x4078361: dect_fd_register (io.c:103)<br />==10731==    by 0x4077C14: dect_netlink_init (netlink.c:358)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br />==10731==  Address 0x41ff7d4 is not stack'd, malloc'd or (recently) free'd<br />==10731== <br />--10731-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting<br />--10731-- si_code=1;  Faulting address: 0x74616874;  sp: 0x62bdea58<br /><br />valgrind: the 'impossible' happened:<br />   Killed by fatal signal<br />==10731==    at 0x3809F551: myvprintf_str (m_debuglog.c:530)<br />==10731==    by 0x3809FD32: vgPlain_debugLog_vprintf (m_debuglog.c:877)<br />==10731==    by 0x3802A555: vprintf_WRK (m_libcprint.c:111)<br />==10731==    by 0x3802A617: vgPlain_printf (m_libcprint.c:143)<br />==10731==    by 0x380286C6: vgPlain_assert_fail (m_libcassert.c:261)<br />==10731==    by 0x656C501F: ???<br /><br />sched status:<br />  running_tid=1<br /><br />Thread 1: status = VgTs_Runnable<br />==10731==    at 0x402331F: calloc (vg_replace_malloc.c:467)<br />==10731==    by 0x4055394: nl_object_alloc (object.c:49)<br />==10731==    by 0x404284F: nl_dect_cluster_alloc (cluster_obj.c:64)<br />==10731==    by 0x4077C34: dect_netlink_init (netlink.c:148)<br />==10731==    by 0x405FE5C: dect_open_handle (libdect.c:66)<br />==10731==    by 0x804CBEB: main (main.c:108)<br /><br />Thanks for  help me</p>
<p> </p>