-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hello,
has anyone seen this error??? :
*** glibc detected *** /usr/bin/python: free(): invalid pointer: 0xaea02a58 *** ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb75a7ee2] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb69a6adf] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1b)[0xb6a0e7bb] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0xb0800)[0xb6a0e800] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSsD1Ev+0x2e)[0xb6a0e86e] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN19snapshot_du_handler6handleEN5boost10shared_ptrI9data_unitEE+0x2a6)[0xb2d79e56] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN17data_unit_handler6handleEN5boost10shared_ptrI9data_unitEE+0x54)[0xb2d78c74] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN16voice_du_handler6handleEN5boost10shared_ptrI9data_unitEE+0x66)[0xb2d7b116] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN15op25_decoder_bf14receive_symbolEh+0x18c)[0xb2d92bec]
my guess is the memory mix up is happening here:
void snapshot_du_handler::handle(data_unit_sptr du) { if(d_msgq) { string snapshot(du->snapshot()); if(snapshot.size() > 0) { const size_t snapshot_sz = snapshot.size() + 1; gr_message_sptr msg = gr_make_message(/*type*/0, /*arg1*/++d_data_units, /*arg2*/0, snapshot_sz); char *snapshot_data = reinterpret_cast<char*>(msg->msg()); memcpy(snapshot_data, snapshot.c_str(), snapshot_sz); d_msgq->handle(msg); } } data_unit_handler::handle(du); }
but wait the issue gets more interesting than 'du' pointing to an invalid location:
to try to see if i could stop op25 from giving this dying error, i commented out all of the snaphot()s in the hdu, ldu1, ldu2, and tdu. but i am still getting all of the pickled data in the python UI.
¿¿ WTH ??!! can someone please explain to me what i am missing here? - -- - ------ Matt D - ------------
Matt
What program are you running when you receive this error? Are you running a stock version of op25?
---In op25-dev@yahoogroups.com, op25-dev@yahoogroups.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hello,
has anyone seen this error??? :
*** glibc detected *** /usr/bin/python: free(): invalid pointer: 0xaea02a58 *** ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb75a7ee2] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb69a6adf] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1b)[0xb6a0e7bb] /usr/lib/i386-linux-gnu/libstdc++.so.6(+0xb0800)[0xb6a0e800] /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSsD1Ev+0x2e)[0xb6a0e86e] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN19snapshot_du_handler6handleEN5boost10shared_ptrI9data_unitEE+0x2a6)[0xb2d79e56] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN17data_unit_handler6handleEN5boost10shared_ptrI9data_unitEE+0x54)[0xb2d78c74] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN16voice_du_handler6handleEN5boost10shared_ptrI9data_unitEE+0x66)[0xb2d7b116] /usr/local/lib/python2.7/dist-packages/gnuradio/_op25.so(_ZN15op25_decoder_bf14receive_symbolEh+0x18c)[0xb2d92bec]
my guess is the memory mix up is happening here:
void snapshot_du_handler::handle(data_unit_sptr du) { if(d_msgq) { string snapshot(du->snapshot()); if(snapshot.size() > 0) { const size_t snapshot_sz = snapshot.size() + 1; gr_message_sptr msg = gr_make_message(/*type*/0, /*arg1*/++d_data_units, /*arg2*/0, snapshot_sz); char *snapshot_data = reinterpret_cast<char*>(msg->msg()); memcpy(snapshot_data, snapshot.c_str(), snapshot_sz); d_msgq->handle(msg); } } data_unit_handler::handle(du); }
but wait the issue gets more interesting than 'du' pointing to an invalid location:
to try to see if i could stop op25 from giving this dying error, i commented out all of the snaphot()s in the hdu, ldu1, ldu2, and tdu. but i am still getting all of the pickled data in the python UI.
¿¿ WTH ??!! can someone please explain to me what i am missing here? - -- - ------ Matt D - ------------
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10/24/2013 09:52 AM, ikj1234i@yahoo.com wrote:
Matt
What program are you running when you receive this error? Are you running a stock version of op25?
i built from the latest version of source from the svn trunk at osmo. run wit the gnu-radio companion. i installed gr-baz as well which brought back the old traffic pane. the stock version does not get the lcw out of the the data units, only some out of the HDU. so i made some code to get at those bits, do the error correction, and use the snapshot() to ut the pickled data on the queue to the UI. then that error started coming to light. sometimes it takes days, literally, and sometimes op25 gives those last words within minutes of starting. but its always during a reception. so i starting trying to find out about it, using gdb and the like. so it looks like the snapshot() is starting the error. so to try to verify that guess i commented out the snapshot function in the data unit code, still seeing the error. commented out the pickle, and still getting data in the UI. ¿¿ how can this be ??
i am changing code in home/op25/blocks/src/lib and rebiulding, i should see the changes at run time right? i dont know what is going on here; the only thing i can think is that the files i am working on are not realavent to what is running when i start the program. but how could that be? the svn script put the op25 dir in my home dir and that is it. i didnt do anything else to put the src code anywhere else.
Thanks!