Closed jtgans closed 3 years ago
Forgot the backtrace:
(gdb) bt
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
#1 0x00007ffff7d30009 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(char const*) () from /lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00005555555768a3 in G13::advance_ws (source=@0x7fffffefcf00: 0x0, dest="")
at /home/jtgans/Projects/g13/g13d/device.cc:371
#3 0x00005555555715e3 in G13::Device::<lambda(char const*)>::operator()(const char *) const (
__closure=0x7fffffefd090, remainder=0x0) at /home/jtgans/Projects/g13/g13d/device.cc:526
#4 0x0000555555574750 in std::_Function_handler<void(char const*), G13::Device::_init_commands()::<lambda(char const*)> >::_M_invoke(const std::_Any_data &, const char *&&) (__functor=..., __args#0=@0x7fffffefcfd0: 0x0)
at /usr/include/c++/9/bits/std_function.h:300
#5 0x0000555555577d0d in std::function<void (char const*)>::operator()(char const*) const (this=0x7fffffefd090,
__args#0=0x0) at /usr/include/c++/9/bits/std_function.h:688
#6 0x00005555555723ca in G13::Device::command (this=0x555555623760, str=0x5555555ea720 "dump")
at /home/jtgans/Projects/g13/g13d/device.cc:567
#7 0x000055555556ed59 in G13::Device::read_commands (this=0x555555623760)
at /home/jtgans/Projects/g13/g13d/device.cc:278
#8 0x0000555555591ef0 in G13::Manager::run (this=0x7fffffffd690) at /home/jtgans/Projects/g13/g13d/manager.cc:194
#9 0x0000555555586612 in main (argc=5, argv=0x7fffffffd8d8) at /home/jtgans/Projects/g13/g13d/main.cc:62
g13d isn't even in the codebase anymore. :D
g13d segfaults with a hard crash when it encounters a bare "dump" command in its input fifo. Seems to be some kind of bad string manipulation error: