I've written a protocol decoder to help with a project I'm working on, and it seems to fairly consistently cause Pulseview to crash with a
free(): invalid pointer error. This is running on Linux. I've tried both AppImage nighties, and home-built latest stable releases with the same problem. Error looks like *** Error in `../../install/bin/pulseview': free(): invalid pointer: 0x00007f301be92140 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f301cc317e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f301cc3a37a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f301cc3e53c] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(+0x92a85)[0x7f301b92fa85] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(+0x223927)[0x7f301bac0927] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(+0xd2d67)[0x7f301b96fd67] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(PyDict_Clear+0x1b7)[0x7f301b94f7c7] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(+0x93876)[0x7f301b930876] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(+0x2308ba)[0x7f301bacd8ba] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(_PyGC_CollectNoFail+0x31)[0x7f301ba71c91] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(PyImport_Cleanup+0x360)[0x7f301ba8db20] /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0(Py_Finalize+0x64)[0x7f301ba8ddd4] /home/srk/sigrok/install/lib/libsigrokdecode.so.4(srd_exit+0x54)[0x7f301ebe54c4] ../../install/bin/pulseview(main+0x60e)[0x47f3be] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f301cbda830] ../../install/bin/pulseview(_start+0x29)[0x480db9] The decoder source is available at http://www.thekelleys.org.uk/sigrok/pd.py Please excuse the quality of the code: I'm new to Python and sigrok. Small sample files or captures run OK, but crash when exiting Pulseview, larger data causes an immediate crash, I guess, looking at the backtrace, because they trigger garbage collection. Any clues on how to get this working would be really useful. I'm happy to donate this decoder to the sigrok collection if you want it, but it's specific to a 2-ton replica of a 1949 historic comuputer, so I doubt anyone else will ever have a use for it :) http://www.tnmoc.org/special-projects/edsac Cheers, Simon. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel