robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
863 stars 192 forks source link

5.0-max crash with decodeTPS: true #894

Closed ZeroChaos- closed 3 weeks ago

ZeroChaos- commented 9 months ago
thread 1 "trunk-recorder" received signal SIGABRT, Aborted.
0x00007ffff5eafaec in ?? () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff5eafaec in ?? () from /lib64/libc.so.6
#1  0x00007ffff5e61246 in raise () from /lib64/libc.so.6
#2  0x00007ffff5e4a877 in abort () from /lib64/libc.so.6
#3  0x00007ffff60f89bf in std::__glibcxx_assert_fail (file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>)
    at /var/tmp/portage/sys-devel/gcc-13.2.1_p20230826/work/gcc-13-20230826/libstdc++-v3/src/c++11/debug.cc:61
#4  0x000055555566be0a in gr::blocks::tps_decoder_sink_impl::process_message(std::shared_ptr<gr::message>) ()
#5  0x000055555568032c in monitor_messages(Config&, std::shared_ptr<gr::top_block>&, std::vector<Source*, std::allocator<Source*> >&, std::vector<System*, std::allocator<System*> >&, std::vector<Call*, std::allocator<Call*> >&) [clone .constprop.0] ()
#6  0x000055555559d9c9 in main ()
robotastic commented 9 months ago

hmm... I enabled tpsDecode on an Analog system and I am not able to get it to SEGFAULT, which is weird. It probably means that the decoded messages are triggering it since I am not near any channels that have this. I haven't touched any relevant code recently though.

ZeroChaos- commented 9 months ago

:smirk: I'm not near anything that uses tps either afaict. I just enable all the decoders on analog channels that are multiagency use in case someone does :-)

any idea how I might get you a more useful backtrace?

JoeGilkey commented 9 months ago

I can look into it a little deeper tomorrow night. Can you record some audio from the system you were monitoring when this happened?

FDNY uses TPS if you're anywhere near NYC.

ZeroChaos- commented 9 months ago
removed unrelated crash
ZeroChaos- commented 9 months ago

Going by assert_fail in the output, this seems likely related to https://github.com/robotastic/trunk-recorder/issues/780 and can be reproduced and found more quickly in testing with https://github.com/robotastic/trunk-recorder/pull/793

ZeroChaos- commented 3 weeks ago

most assert fixes are complete at this point so I'm going to close this until I reproduce