Skip to content

Instantly share code, notes, and snippets.

@scpeters
Created February 2, 2021 01:50
Show Gist options
  • Save scpeters/b18b1cbb38c43e0e02d406254aaeadef to your computer and use it in GitHub Desktop.
Save scpeters/b18b1cbb38c43e0e02d406254aaeadef to your computer and use it in GitHub Desktop.
$ install/ignition-transport10/lib/ignition/transport10/ign-transport-topic -t /bar -m ign_msgs.__bad_msg_type -p 'data:"good_value"'
Segmentation fault (core dumped)
$ gdb install/ignition-transport10/lib/ignition/transport10/ign-transport-topic
...
(gdb) r -t /bar -m ign_msgs.__bad_msg_type -p 'data:"good_value"'
Starting program: /data_fast/scpeters/ws/ign-utils/install/ignition-transport10/lib/ignition/transport10/ign-transport-topic -t /bar -m ign_msgs.__bad_msg_type -p 'data:"good_value"'
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
__memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:235
235 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0 __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:235
#1 0x00005555555731b5 in std::char_traits<char>::copy (__n=17, __s2=<optimized out>, __s1=<optimized out>) at /usr/include/c++/8/bits/char_traits.h:352
#2 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_copy (__n=17, __s=<optimized out>, __d=<optimized out>) at /usr/include/c++/8/bits/basic_string.h:340
#3 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign (this=0x7fffffffd458, __str="data:\"good_value\"") at /usr/include/c++/8/bits/basic_string.tcc:272
#4 0x000055555557326d in std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const (__args#0="data:\"good_value\"", this=0x555555854540) at /usr/include/c++/8/bits/std_function.h:682
#5 CLI::Option* CLI::App::add_option_function<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)#1}::operator()(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const (res=..., this=0x555555854540) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:629
#6 std::_Function_handler<bool (std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&), CLI::Option* CLI::App::add_option_function<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)#1}>::_M_invoke(std::_Any_data const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (__functor=..., __args#0=...) at /usr/include/c++/8/bits/std_function.h:282
#7 0x00005555555891e8 in std::function<bool (std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)>::operator()(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) const (__args#0=..., this=0x55555586fd58) at /usr/include/c++/8/bits/std_function.h:682
#8 CLI::Option::run_callback (this=0x55555586fb80) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/Option.hpp:807
#9 0x00005555555893a1 in CLI::App::_process_callbacks (this=0x55555586bb40) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:2043
#10 0x00005555555893e5 in CLI::App::_process_callbacks (this=this@entry=0x7fffffffd410) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:2048
#11 0x000055555558da8d in CLI::App::_process (this=0x7fffffffd410) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:2208
#12 CLI::App::_parse (args=..., this=0x7fffffffd410) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:2293
#13 CLI::App::parse (args=..., this=0x7fffffffd410) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:1304
#14 CLI::App::parse (this=this@entry=0x7fffffffd410, argc=argc@entry=7, argv=argv@entry=0x7fffffffd848) at /data_fast/scpeters/ws/ign-utils/install/ignition-utils1/include/ignition/utils1/ignition/utils/cli/App.hpp:1233
#15 0x0000555555567b7a in main () at /data_fast/scpeters/ws/ign-utils/src/ign-transport/src/cmd/topic_main.cc:127
#16 0x00007ffff677cbf7 in __libc_start_main (main=0x555555567a50 <main>, argc=7, argv=0x7fffffffd848, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd838) at ../csu/libc-start.c:310
#17 0x0000555555567e7a in _start () at /data_fast/scpeters/ws/ign-utils/src/ign-transport/src/cmd/topic_main.cc:128
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment