discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] memory leak problem with GNURadio/Python


From: Sanketh Kumar P
Subject: Re: [Discuss-gnuradio] memory leak problem with GNURadio/Python
Date: Fri, 23 Sep 2011 15:30:57 +0530

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 <address@hidden> wrote:
On Thu, Sep 22, 2011 at 2:55 AM, Sanketh Kumar P <address@hidden> 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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





Thanks,
Sanketh

Attachment: output_of_gdb.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]