Skip to content

Instantly share code, notes, and snippets.

@rfht
Created March 25, 2018 23:47
Show Gist options
  • Save rfht/05a1dfc0feda7fe6a6df0a014486d6f3 to your computer and use it in GitHub Desktop.
Save rfht/05a1dfc0feda7fe6a6df0a014486d6f3 to your computer and use it in GitHub Desktop.
backtrace hidapi-testgui coredump after clicking 'Send Feature Report'
$ doas egdb hidapi-testgui hidapi-testgui.core
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-openbsd6.3".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from hidapi-testgui...(no debugging symbols found)...done.
[New process 551058]
[New process 226179]
Core was generated by `hidapi-testgui'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000015cc9965547f in memcpy (dst0=0x15cc9f8be008, src0=0x7f7fffff2281, length=65535) at /usr/src/lib/libc/string/memcpy.c:97
97 TLOOP1(*dst++ = *src++);
[Current thread is 1 (process 551058)]
(gdb) thread apply all bt
Thread 2 (process 226179):
#0 _thread_sys_poll () at -:3
#1 0x000015cc996285d4 in _libc_poll_cancel (fds=0x15cc5b80e2e0, nfds=1, timeout=60000) at /usr/src/lib/libc/sys/w_poll.c:27
#2 0x000015ccaad4a797 in handle_events () from /usr/local/lib/libusb-1.0.so.1.1
#3 0x000015ccaad4a334 in libusb_handle_events_timeout_completed () from /usr/local/lib/libusb-1.0.so.1.1
#4 0x000015ccaad4ab8d in libusb_handle_events () from /usr/local/lib/libusb-1.0.so.1.1
#5 0x000015cc18afa533 in read_thread () from /usr/local/lib/libhidapi.so.0.0
#6 0x000015cc2ba5c22e in _rthread_start (v=0xfc) at /usr/src/lib/librthread/rthread.c:96
#7 0x000015cc995e250b in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:75
#8 0x0000000000000000 in ?? ()
Thread 1 (process 551058):
#0 0x000015cc9965547f in memcpy (dst0=0x15cc9f8be008, src0=0x7f7fffff2281, length=65535) at /usr/src/lib/libc/string/memcpy.c:97
#1 0x000015ccaad4b323 in libusb_control_transfer () from /usr/local/lib/libusb-1.0.so.1.1
#2 0x000015cc18afa92a in hid_send_feature_report () from /usr/local/lib/libhidapi.so.0.0
#3 0x000015ca11c0265a in ?? ()
#4 0x000015cca25b6457 in FX::FXObject::tryHandle(FX::FXObject*, unsigned int, void*) () from /usr/local/lib/libFOX-1.6.so.2.1
#5 0x000015cca247aead in FX::FXButton::onLeftBtnRelease(FX::FXObject*, unsigned int, void*) () from /usr/local/lib/libFOX-1.6.so.2.1
#6 0x000015cca247a345 in FX::FXButton::handle(FX::FXObject*, unsigned int, void*) () from /usr/local/lib/libFOX-1.6.so.2.1
#7 0x000015cca24699b8 in FX::FXApp::dispatchEvent(_XEvent&) () from /usr/local/lib/libFOX-1.6.so.2.1
#8 0x000015cca246c697 in FX::FXApp::runOneEvent(bool) () from /usr/local/lib/libFOX-1.6.so.2.1
#9 0x000015cca246c56c in FX::FXApp::run() () from /usr/local/lib/libFOX-1.6.so.2.1
#10 0x000015ca11c02ce1 in ?? ()
#11 0x000015ca11c00846 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment