[op25-dev] RE: memory error turns weird

ikj1234i at yahoo.com ikj1234i at yahoo.com
Thu Oct 24 13:52:57 UTC 2013


 Matt 

 

 What program are you running when you receive this error?  Are you running a stock version of op25?  

 

---In op25-dev at yahoogroups.com, <op25-dev at 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 SIGNATURE-----
 Version: GnuPG v2.0.21 (GNU/Linux)
 Comment: MacGPG2 - http://www.gpgtools.org/macgpg2.html http://www.gpgtools.org/macgpg2.html
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ http://www.enigmail.net/
 
 iQEcBAEBAgAGBQJSZ9MgAAoJECrdp7MWSIVbPrsIAKJF/SZ5SY7F54sykWLHxFyB
 eJmCW7q9PhsSshC6UU0+ogrYrVvmp2Du/PaNgfqQlMPJmsslJMe2RRRDul2jaosW
 I9ZcAzRDXxaTfHP1g+SqIqfLGlvW7LRydq/Hpzczj6UD6GnkyMz6eaWNKuw+cis7
 ZsqmaJZYzxDDfFvD5wm1xAnV1VUPSlwENV9BRUo+40TQBWs4nmJI/rge7BPByH6f
 ttASLCERBDPX9gts9PeWtF1nnYgFR6rubDAKbc6sG7byi/TPGvbOIjrGKd/r9wEx
 QobOYPxf0uKdkH4V2FRUhDMdJX/rR8fv109KFLr2K7eyAziyqEMqXwjNC9IH3iA=
 =FWv5
 -----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/op25-dev/attachments/20131024/d5cccaf9/attachment.html>


More information about the op25-dev mailing list