Skip to content

onlykey-cli segfaults in libusb-1.0.so.0.2.0 at the end of execution #44

@nkichukov

Description

@nkichukov

Hello team,

I am running onlykey-cli version 1.2.4 here under python 3.8 on GNU/Gentoo Linux amd64 kernel 5.11.7.

Execution of commands work, however, instead of graceful exit I am getting segmentation faults in the end. Seems like they are related to libusb.so:

[Thu Mar 25 17:07:52 2021] onlykey-cli[14300]: segfault at 220 ip 00007fc7df35abfb sp 00007fc7db414d30 error 4 in libusb-1.0.so.0.2.0[7fc7df354000+e000]
[Thu Mar 25 17:07:52 2021] Code: 56 41 55 41 54 55 48 89 fd 53 48 89 f3 48 83 ec 20 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 85 ff 0f 84 55 01 00 00 <8b> 85 20 02 00 00 45 31 e4 85 c0 78 28 48 8b 44 24 18 64 48 2b 04
[Thu Mar 25 17:14:02 2021] onlykey-cli[14904]: segfault at 220 ip 00007ffb79e10bfb sp 00007ffb75ecad30 error 4 in libusb-1.0.so.0.2.0[7ffb79e0a000+e000]
[Thu Mar 25 17:14:02 2021] Code: 56 41 55 41 54 55 48 89 fd 53 48 89 f3 48 83 ec 20 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 85 ff 0f 84 55 01 00 00 <8b> 85 20 02 00 00 45 31 e4 85 c0 78 28 48 8b 44 24 18 64 48 2b 04

versions of additional packages that are used by onlykey-cli:
dev-libs/libusb-1.0.23-r1:1
sys-auth/solo-python-0.0.27:0
dev-libs/hidapi-0.10.1:0
dev-python/hidapi-0.10.1_p20210303:0
dev-python/aenum-2.2.4:0
dev-python/six-1.15.0-r1:0
dev-python/prompt_toolkit-3.0.16:0

I have checked a 'strace -f' execution to try to figure out what goes wrong but nothing obvious in there. Any pointers?

Here is example execution with the segfault failure in the end:

$ onlykey-cli version
OnlyKey CLI v1.2.4
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions