hey tom, PFA the output of gdb with back trace after the crash. i have used scipy/numpy arrays quite extensively. is that causing the crash?? please help me in debugging further.
On Thu, Sep 22, 2011 at 9:20 PM, Tom Rondeau <trondeau1...@gmail.com> wrote: > On Thu, Sep 22, 2011 at 2:55 AM, Sanketh Kumar P > <sankethku...@gmail.com>wrote: > >> after executing a GNURadio flowgraph for sometime (typically for abt >> 2-3mins) the code crashes and >> the following message is displayed. >> > > We're going to need way more information than this to help you. This error > tells us almost nothing about where the problem might be. > > Here's a helpful process. In the Python program, right at the top before > any functions are declared, put this in: > > import os > print os.getpid() > raw_input() > > That will print out the program's PID and pause it, waiting for you to hit > enter. In another terminal, run "gdb." Inside gdb, type: > > attach <pid> > c > > Where the <pid> is what was printed by the progra. The "c" tells the > debugger to continue. Now, go back to the program's window and hit enter. > When the crash occurs, gdb will pick it up. You can then type "bt" in gdb to > get a back trace of the program. This will help identify while line of what > file caused the error. > > Tom > > > > > >> ''' >> *** glibc detected *** python: malloc(): memory corruption: >> 0x00007f7b94002b00 *** >> ======= Backtrace: ========= >> /lib/x86_64-linux-gnu/libc.so.6(+0x79d7a)[0x7f7bae94bd7a] >> /lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x6e)[0x7f7bae94e31e] >> /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_Znwm+0x1d)[0x7f7bad760e0d] >> >> /usr/local/lib/libgnuradio-core-3.4.1git.so.0(_ZNSt6vectorIfSaIfEEaSERKS1_+0x7b)[0x7f7badc71b9b] >> >> /usr/local/lib/python2.7/dist-packages/gnuradio/gr/_gnuradio_core_gengen.so(+0x11c65d)[0x7f7bab42f65d] >> python(PyEval_EvalFrameEx+0x361)[0x4965f1] >> python(PyEval_EvalFrameEx+0xb2f)[0x496dbf] >> ======= Memory map: ======== >> 00400000-0062f000 r-xp 00000000 08:03 5899249 >> /usr/bin/python2.7 >> 0082e000-0082f000 r--p 0022e000 08:03 5899249 >> /usr/bin/python2.7 >> 0082f000-00897000 rw-p 0022f000 08:03 5899249 >> /usr/bin/python2.7 >> 00897000-008a9000 rw-p 00000000 00:00 0 >> 014e3000-02266000 rw-p 00000000 00:00 0 >> [heap] >> 7f7b94000000-7f7b94021000 rw-p 00000000 00:00 0 >> 7f7b94021000-7f7b98000000 ---p 00000000 00:00 0 >> ... >> ... >> ... >> ''' >> >> please help me in rectifying it. thanx in advance >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> >> > Thanks, Sanketh
Program received signal SIGABRT, Aborted. 0x00007f70dd82fd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt #0 0x00007f70dd82fd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f70dd833ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007f70dd868d7b in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #3 0x00007f70dd875d7a in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x00007f70dd87831e in malloc () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00007f70dc68ae0d in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007f70dcb9bb9b in allocate (this=0x7fff56a7d540, __x=...) at /usr/include/c++/4.5/ext/new_allocator.h:89 #7 _M_allocate (this=0x7fff56a7d540, __x=...) at /usr/include/c++/4.5/bits/stl_vector.h:140 #8 _M_allocate_and_copy<__gnu_cxx::__normal_iterator<float const*, std::vector<float> > > (this=0x7fff56a7d540, __x=...) at /usr/include/c++/4.5/bits/stl_vector.h:967 #9 std::vector<float, std::allocator<float> >::operator= (this= 0x7fff56a7d540, __x=...) at /usr/include/c++/4.5/bits/vector.tcc:165 #10 0x00007f70da35965d in _wrap_gr_vector_sink_f_sptr_data ( args=<value optimized out>) at python/gnuradio_core_gengen.cc:60241 #11 0x00000000004965f1 in call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4013 #12 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #13 0x0000000000496dbf in fast_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4099 #14 call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4034 #15 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #16 0x0000000000496dbf in fast_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4099 #17 call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4034 #18 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #19 0x0000000000496dbf in fast_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4099 #20 call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4034 #21 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #22 0x0000000000496dbf in fast_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4099 #23 call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4034 #24 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #25 0x0000000000496dbf in fast_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4099 #26 call_function (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:4034 #27 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value optimized out>) at ../Python/ceval.c:2666 #28 0x000000000049d325 in PyEval_EvalCodeEx (co=0x7f70ded0aab0, globals=<value optimized out>, locals=<value optimized out>, args=<value optimized out>, argcount=<value optimized out>, kws=<value optimized out>, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253 #29 0x00000000004ecb02 in PyEval_EvalCode (co=<value optimized out>, globals=<value optimized out>, locals=<value optimized out>) at ../Python/ceval.c:667 #30 0x00000000004fdc74 in run_mod (mod=<value optimized out>, filename=<value optimized out>, globals= {'pause': 1, 'gr': <module at remote 0x7f70ded20ef8>, 'random': <module at remote 0x281a5c8>, 'modulation_utils': <module at remote 0x2cc2600>, 'subprocess': <module at remote 0x2e05d00>, 'frequency': 0, 'gru': <module at remote 0x7f70ded23210>, 'struct': <module at remote 0x27c1280>, '__package__': None, 're': <module at remote 0x7f70ded5d440>, 'detect_ed': <module at remote 0x2fd1868>, 'detect_cd': <module at remote 0x3022ef8>, 'usrp_options': <module at remote 0x2e05558>, 'main': <function at remote 0x3035f50>, 'tb': <my_top_block(_tb=<gr_top_block_sptr(this=<SwigPyObject at remote 0x309c360>) at remote 0x303cd10>, decision=<my_spectrum_sense(detector=<my_cd_decision(pfa=<float at remote 0x307b560>, meannoiserv=<numpy.float64 at remote 0x3149800>, fctr=0, samples=<numpy.ndarray at remote 0x318fb80>, totaltrials=169, varnoiserv=<numpy.float64 at remote 0x315b7f0>, cusum=0, varsigpnoiserv=<numpy.float64 at remote 0x315b7f0>, meansigpnoiserv=<numpy.float64 at remote 0x319bf90>, tctr=0, state=0, spn=0, thresho...(truncated), locals= {'pause': 1, 'gr': <module at remote 0x7f70ded20ef8>, 'random': <module at remote 0x281a5c8>, 'modulation_utils': <module at remote 0x2cc2600>, 'subprocess': <module at remote 0x2e05d00>, 'frequency': 0, 'gru': <module at remote 0x7f70ded23210>, 'struct': <module at remote 0x27c1280>, '__package__': None, 're': <module at remote 0x7f70ded5d440>, 'detect_ed': <module at remote 0x2fd1868>, 'detect_cd': <module at remote 0x3022ef8>, 'usrp_options': <module at remote 0x2e05558>, 'main': <function at remote 0x3035f50>, 'tb': <my_top_block(_tb=<gr_top_block_sptr(this=<SwigPyObject at remote 0x309c360>) at remote 0x303cd10>, decision=<my_spectrum_sense(detector=<my_cd_decision(pfa=<float at remote 0x307b560>, meannoiserv=<numpy.float64 at remote 0x3149800>, fctr=0, samples=<numpy.ndarray at remote 0x318fb80>, totaltrials=169, varnoiserv=<numpy.float64 at remote 0x315b7f0>, cusum=0, varsigpnoiserv=<numpy.float64 at remote 0x315b7f0>, meansigpnoiserv=<numpy.float64 at remote 0x319bf90>, tctr=0, state=0, spn=0, thresho...(truncated), flags=<value optimized out>, arena=<value optimized out>) at ../Python/pythonrun.c:1346 #31 0x000000000042c182 in PyRun_FileExFlags (fp=0x2505790, filename= 0x7fff56a802dd "top_demo_learn.py", start=<value optimized out>, globals= {'pause': 1, 'gr': <module at remote 0x7f70ded20ef8>, 'random': <module at remote 0x281a5c8>, 'modulation_utils': <module at remote 0x2cc2600>, 'subprocess': <module at remote 0x2e05d00>, 'frequency': 0, 'gru': <module at remote 0x7f70ded23210>, 'struct': <module at remote 0x27c1280>, '__package__': None, 're': <module at remote 0x7f70ded5d440>, 'detect_ed': <module at remote 0x2fd1868>, 'detect_cd': <module at remote 0x3022ef8>, 'usrp_options': <module at remote 0x2e05558>, 'main': <function at remote 0x3035f50>, 'tb': <my_top_block(_tb=<gr_top_block_sptr(this=<SwigPyObject at remote 0x309c360>) at remote 0x303cd10>, decision=<my_spectrum_sense(detector=<my_cd_decision(pfa=<float at remote 0x307b560>, meannoiserv=<numpy.float64 at remote 0x3149800>, fctr=0, samples=<numpy.ndarray at remote 0x318fb80>, totaltrials=169, varnoiserv=<numpy.float64 at remote 0x315b7f0>, cusum=0, varsigpnoiserv=<numpy.float64 at remote 0x315b7f0>, meansigpnoiserv=<numpy.float64 at remote 0x319bf90>, tctr=0, state=0, spn=0, thresho...(truncated), locals= {'pause': 1, 'gr': <module at remote 0x7f70ded20ef8>, 'random': <module at remote 0x281a5c8>, 'modulation_utils': <module at remote 0x2cc2600>, 'subprocess': <module at remote 0x2e05d00>, 'frequency': 0, 'gru': <module at remote 0x7f70ded23210>, 'struct': <module at remote 0x27c1280>, '__package__': None, 're': <module at remote 0x7f70ded5d440>, 'detect_ed': <module at remote 0x2fd1868>, 'detect_cd': <module at remote 0x3022ef8>, 'usrp_options': <module at remote 0x2e05558>, 'main': <function at remote 0x3035f50>, 'tb': <my_top_block(_tb=<gr_top_block_sptr(this=<SwigPyObject at remote 0x309c360>) at remote 0x303cd10>, decision=<my_spectrum_sense(detector=<my_cd_decision(pfa=<float at remote 0x307b560>, meannoiserv=<numpy.float64 at remote 0x3149800>, fctr=0, samples=<numpy.ndarray at remote 0x318fb80>, totaltrials=169, varnoiserv=<numpy.float64 at remote 0x315b7f0>, cusum=0, varsigpnoiserv=<numpy.float64 at remote 0x315b7f0>, meansigpnoiserv=<numpy.float64 at remote 0x319bf90>, tctr=0, state=0, spn=0, thresho...(truncated), closeit=1, flags=0x7fff56a7e000) at ../Python/pythonrun.c:1332 #32 0x000000000042cb4a in PyRun_SimpleFileExFlags (fp=0x2505790, filename=<value optimized out>, closeit=1, flags=0x7fff56a7e000) at ../Python/pythonrun.c:936 #33 0x0000000000418c9e in Py_Main (argc=<value optimized out>, argv= 0x7fff56a7e128) at ../Modules/main.c:599 #34 0x00007f70dd81aeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #35 0x00000000004c62b1 in _start ()
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio