Updated Debugging segfaults and hard to decipher pybind11 bugs (markdown)

Eric Cousineau 2021-03-04 17:09:45 -05:00
parent 20cf48052d
commit e30e847a3d

@ -113,4 +113,10 @@ Program received signal SIGSEGV, Segmentation fault.
0x<crazyaddress> in pybind11::detail::get_type_info (type=0xdeed90) at ../include/pybind11/detail/type_caster_base.h:160 0x<crazyaddress> in pybind11::detail::get_type_info (type=0xdeed90) at ../include/pybind11/detail/type_caster_base.h:160
160 *value = 0xbadf00d; 160 *value = 0xbadf00d;
(gdb) (gdb)
``` ```
## GDB on C++ Programs with an Embedded Interpreter
Sometimes, it may be easier to test a program with an embedded interpreter.
TODO(eric): Add an exampel.