Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754672 - sys-fs/simple-mtpfs / media-libs/libmtp: "LIBMTP PANIC: Trying to dump the error stack of a NULL device!"
Summary: sys-fs/simple-mtpfs / media-libs/libmtp: "LIBMTP PANIC: Trying to dump the er...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
Depends on:
Reported: 2020-11-15 08:46 UTC by Hanno Böck
Modified: 2021-10-28 14:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2020-11-15 08:46:44 UTC
When trying to mount a current android phone with simple-mtpfs I get an error:

LIBMTP PANIC: Trying to dump the error stack of a NULL device!

This has been happening for a while.

I found this related upstream bug:

It contains a patch for libmtp that is related to libusb. It fixes this issue for me. However the reporter calls it a workaround. I'm not familiar with the inner workings of these, so not sure if we should patch this in libmtp. CCing both maintainers.
Comment 1 Miroslav Šulc gentoo-dev 2021-10-26 07:17:11 UTC
does this still happen to you with 1.1.19?
Comment 2 Larry the Git Cow gentoo-dev 2021-10-28 14:09:56 UTC
The bug has been referenced in the following commit(s):

commit ac019b230326a3f5d329aa2bd2005f6f26d785d8
Author:     Miroslav Šulc <>
AuthorDate: 2021-10-28 14:09:51 +0000
Commit:     Miroslav Šulc <>
CommitDate: 2021-10-28 14:09:51 +0000

    media-libs/libmtp: removed obsolete 1.1.18
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Miroslav Šulc <>

 media-libs/libmtp/Manifest             |  1 -
 media-libs/libmtp/libmtp-1.1.18.ebuild | 72 ----------------------------------
 2 files changed, 73 deletions(-)
Comment 3 Hanno Böck gentoo-dev 2021-10-28 14:34:43 UTC
I've been using another implementation in the meantime, but just checked: it seems with libmtp 1.1.19 simple-mtpfs works again, so closing.