Page MenuHome GnuPG
Feed Advanced Search

Oct 18 2018

dkg added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

If the swig interface isn't robust, can we replace it with something that will be more robust? Or do we need to wrap it with hand-crafted error checks that describe the API's constraints? It's pretty bad form to segfault python.

Oct 18 2018, 5:01 PM · Python, gpgme
dkg added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

When parms is malformed but not NULL, then the error appears to be a bug in the python bindings in _wrap_gpgme_release. maybe something is going wrong because of the "cannot allocate memory" error? in particular:

Oct 18 2018, 4:52 PM · Python, gpgme
werner added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

That swig based interface is not really robust and it can't be because it does not known about API requirements. I bet there are other places where mandatory parameters are not checked.

Oct 18 2018, 4:13 PM · Python, gpgme
dkg added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

To deal with passing None correctly, it looks to me like the problem is inside get_parameter() in src/genkey.c -- there ought to be a check for parms being NULL, and then returning either GPG_ERR_INV_VALUE or something else. otherwise, the segfault happens inside strstr.

Oct 18 2018, 4:06 PM · Python, gpgme
dkg added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

It the first error (first param = None) is a segfault in versions 1.11.1-2 (debian unstable i386) and 1.8.0-3+b2 (debian stretch amd64).

Oct 18 2018, 1:15 PM · Python, gpgme
werner changed the status of T3354: gpgme only builds against two versions of python at once from Open to Testing.
Oct 18 2018, 11:48 AM · Python, gpgme, Bug Report
werner triaged T4191: gpgme python bindings test t-callbacks.py fails on 32-bit platforms as High priority.
Oct 18 2018, 11:46 AM · Python, gpgme, Bug Report
werner assigned T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed to BenM.
Oct 18 2018, 11:39 AM · Python, gpgme
werner added a comment to T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.

Is this new in gpgme 1.12 or might it also be in older versions?

Oct 18 2018, 11:38 AM · Python, gpgme
dkg renamed T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed from python gpg segfaults when first parameter to gpg.Context().op_genkey() is None to python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.
Oct 18 2018, 8:14 AM · Python, gpgme
dkg created T4192: python gpg segfaults when first parameter to gpg.Context().op_genkey() is None or otherwise malformed.
Oct 18 2018, 8:05 AM · Python, gpgme

Oct 17 2018

justus added a comment to T3354: gpgme only builds against two versions of python at once.

"dkg (Daniel Kahn Gillmor)" <noreply@dev.gnupg.org> writes:

what's the status on this? i'd love to be able to build binaries for
both python3.6 and 3.7 for debian. as it stands right now, the
python3.7 continuous integration test for debian is failing
https://ci.debian.net/data/autopkgtest/unstable/amd64/g/gpgme1.0/1158040/log.gz.

Oct 17 2018, 11:46 AM · Python, gpgme, Bug Report
dkg added a comment to T3354: gpgme only builds against two versions of python at once.

what's the status on this? i'd love to be able to build binaries for both python3.6 and 3.7 for debian. as it stands right now, the python3.7 continuous integration test for debian is failing.

Oct 17 2018, 12:53 AM · Python, gpgme, Bug Report

Aug 9 2018

lovetox closed T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as Invalid.

Ok i saw they apply custom patches to _gpgme_mkstemp which are outdated and should be revisited, sorry for the noise

Aug 9 2018, 12:11 AM · Python, gpgme, Bug Report

Aug 8 2018

lovetox reopened T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as "Open".

Actually i have now more debug output and i think i found the issue

Aug 8 2018, 11:55 PM · Python, gpgme, Bug Report
lovetox closed T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as Invalid.

I close this for now, this seems a problem of the mingw packages in msys2

Aug 8 2018, 11:07 PM · Python, gpgme, Bug Report

Aug 7 2018

lovetox added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

Or with both packages installed, could i maybe debug somehow where it searches?

Aug 7 2018, 9:11 PM · Python, gpgme, Bug Report
lovetox added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

BenM, msys2 uses pacman as packagemanager, all packages are build from source

Aug 7 2018, 8:48 PM · Python, gpgme, Bug Report
BenM added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

Alternatively, if they wish to keep using the Python installer from python.org then they would need to drop MSys2 in favour of the same version of Microsoft Visual Studio used to compile the that specific version of Python with and use it to compile every part of the GnuPG stack, up to and including GPGME.

Aug 7 2018, 7:31 AM · Python, gpgme, Bug Report
BenM added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

If that is indeed the case and the theory regarding runtime conflicts, currently under investigation in T3505 and T4086, also proves to be true; then MSys2 users and developers will need to cease using the precompiled versions of Python available from python.org and compile their own version of Python copy with MSys2.

Aug 7 2018, 7:17 AM · Python, gpgme, Bug Report
BenM added a comment to T3505: Port GPGME's Python bindings to Windows.

Windows 10 was obtained last week and the process of preparing a Windows build env began earlier today.

Aug 7 2018, 5:59 AM · Feature Request, gpgme, Python

Jul 25 2018

BenM added a comment to T3354: gpgme only builds against two versions of python at once.

This question and some of the answers to it on StackOverflow indicate some of the difficulties in getting SWIG generated Python modules to install at all. Essentially, though the easiest method currently available without extensive customisation of the setup.py file which would need to be done for both Python 2.7 and Python 3.x is to run /path/to/specific/pythonX.Y setup.py build and then follow that with /path/to/specific/pythonX.Y setup.py install and then follow that with renaming lang/python/build to a relevant directory and/or path name which indicates which version of python was used and the location or path it is in.

Jul 25 2018, 3:46 PM · Python, gpgme, Bug Report

Jul 23 2018

BenM added a comment to T3354: gpgme only builds against two versions of python at once.

While performing some initial investigation regarding observed discrepancies between compiling GPGME directly and the subsequent SWIG static object for T4086, confirmed the relative ease by which multiple installations would be achievable if performed as a post-build process. This would have the added advantage of being more readily customisable by package maintainers downstream and not just for Debian, it could be made to work more easily with other distributions or other posix systems too.

Jul 23 2018, 10:31 AM · Python, gpgme, Bug Report

Jul 22 2018

BenM closed T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting as Resolved.

Since first observing this … annoyance … the following updates have been made: Emacs has been upgraded to version 26.1, Org-Mode has been updated multiple times, including significant changes to Babel and the XHTML export, python-mode has been updated, multiple variations on the source blocks have been attempted, the document has had any and all tabs stripped out and replaced, plus each code block has been refactored and re-entered multiple times.

Jul 22 2018, 7:18 PM · Python, gpgme

Jul 14 2018

werner added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

if that is the case config.{guess,sub} needs to support this and we should be able to handle this the same way as other Unix platforms.

Jul 14 2018, 10:08 AM · Python, gpgme, Bug Report

Jul 13 2018

lovetox reopened T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as "Open".

You seem to have reached the wrong page when searching for msys2

Jul 13 2018, 11:59 PM · Python, gpgme, Bug Report

Jul 9 2018

BenM added a comment to T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.

Even after running additional tests like converting the file to reStructuredText, fixing any remaining possible errors and then converting back, the result is that org-mode still appears to save the source correctly, but cannot export it in a correct format with babel. Certainly not to XHTML and likely not to any other format either. So that's definitely a bug.

Jul 9 2018, 3:20 PM · Python, gpgme
BenM added a comment to T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.

Massive overhaul of the entire document performed in this commit.

Jul 9 2018, 2:28 PM · Python, gpgme

Jul 6 2018

BenM added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

Slight addendum: MSYS2 isn't even part of MinGW at all, see the commentary in this bug report. Nor is it a part of Cygwin, but apparently it is a part of a fork of Cygwin.

Jul 6 2018, 4:23 AM · Python, gpgme, Bug Report
BenM closed T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as Wontfix.

Not only is this not supported, but I've now confirmed that MSYS2 isn't even supported by its own project and they direct all downloaders to their MinGW-get installer.

Jul 6 2018, 3:47 AM · Python, gpgme, Bug Report

Jul 5 2018

BenM added a comment to T3505: Port GPGME's Python bindings to Windows.

Though a CFFI/ABI solution may be the only option, it would still be preferable to get SWIG working under Windows. The reasons for this are many, but not least of which would include not needing to duplicate effort to accommodate Windows, no functionality mismatch due to using the Windows version and not needing to implement every function manually since CFFI can't generate low level bindings the same way that SWIG does.

Jul 5 2018, 8:15 AM · Feature Request, gpgme, Python

Jul 4 2018

BenM added a member for Python: BenM.
Jul 4 2018, 10:55 AM

Jun 19 2018

tookmund closed T4033: Python GPGME interact bindings as Invalid.

My bad this already exists.

Jun 19 2018, 2:45 AM · Feature Request, gpgme, Python

Jun 18 2018

tookmund created T4033: Python GPGME interact bindings in the S1 Public space.
Jun 18 2018, 8:15 PM · Feature Request, gpgme, Python
tookmund added a comment to T4001: Import and Export for python bindings.

On 06/17/2018 02:10 AM, BenM (Ben McGinnes) wrote:

The two subsequent commits are the one I mentioned above (nested try/except
statements) and followed by a major PEP8 compliance overhaul of core.py.

Thanks for the patch and welcome to the weird and wonderful world of FOSS. :)

Jun 18 2018, 7:42 PM · gpgme, patch, Python, Feature Request

Jun 17 2018

BenM closed T4001: Import and Export for python bindings as Resolved.

Patch committed to master in commit 5a80e755008bbb3f4c7f91ffccd38f26cd8b3960

Jun 17 2018, 8:10 AM · gpgme, patch, Python, Feature Request
BenM added a comment to T4001: Import and Export for python bindings.

Not to worry, we've all been pretty busy of late.

Jun 17 2018, 6:43 AM · gpgme, patch, Python, Feature Request

Jun 8 2018

tookmund added a comment to T4001: Import and Export for python bindings.

Apologies for the delay, been working on GSoC stuff.
Here's what I've got as of right now:

Jun 8 2018, 6:36 PM · gpgme, patch, Python, Feature Request

Jun 6 2018

werner triaged T4001: Import and Export for python bindings as Normal priority.
Jun 6 2018, 5:57 PM · gpgme, patch, Python, Feature Request

Jun 4 2018

BenM added a comment to T4001: Import and Export for python bindings.

Not for export, there's a few traps in there, but if you want to take a second swing at import, I'd probably accept that instead.

Jun 4 2018, 8:45 PM · gpgme, patch, Python, Feature Request

Jun 3 2018

tookmund added a comment to T4001: Import and Export for python bindings.

That makes sense. If you don't have any other patches floating around for this, would you mind if I took a crack at rewriting export?

Jun 3 2018, 12:01 AM · gpgme, patch, Python, Feature Request

Jun 2 2018

BenM added a comment to T4001: Import and Export for python bindings.

Okay, the import is pretty much a match for what I have tucked away elsewhere, to that will probably get merged as is, more or less.

Jun 2 2018, 4:00 AM · gpgme, patch, Python, Feature Request
BenM claimed T4001: Import and Export for python bindings.

Actually op_import and op_export do work, but they're the underlying SWIG bindings, not the more pythonic layer Justus added a couple of years ago. I'd been planning on fixing that this month (part of the work is in one of the ben/howto-update branches), but not merged with master until it could be documented since there's something potentially hazardous in there (exporting secret keys).

Jun 2 2018, 3:26 AM · gpgme, patch, Python, Feature Request

May 29 2018

tookmund updated the task description for T4001: Import and Export for python bindings.
May 29 2018, 9:37 PM · gpgme, patch, Python, Feature Request
tookmund updated the task description for T4001: Import and Export for python bindings.
May 29 2018, 9:36 PM · gpgme, patch, Python, Feature Request
tookmund added a project to T4001: Import and Export for python bindings: gpgme.
May 29 2018, 5:27 PM · gpgme, patch, Python, Feature Request
tookmund created T4001: Import and Export for python bindings.
May 29 2018, 5:08 PM · gpgme, patch, Python, Feature Request

May 15 2018

BenM added a comment to T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.

Webhelp version of the Python bindings HOWTO is currently available here:

May 15 2018, 7:33 AM · Python, gpgme
BenM added a comment to T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.

As a work-around for this bug I've ported the HOWTO from org-mode to DITA XML and will generate a webhelp-responsive (i.e. searchable) version to put on another website (an Amazon S3 bucket since it will be reliable and cheap) in the interim.

May 15 2018, 5:25 AM · Python, gpgme

May 14 2018

BenM changed the visibility for T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.
May 14 2018, 5:33 AM · Python, gpgme
BenM added a comment to T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.

Org-Mode was updated to today's release and further testing was conducted.

May 14 2018, 5:31 AM · Python, gpgme

May 13 2018

BenM changed the visibility for T3977: GPGME Python Bindings HOWTO org-babel examples losing indenting.
May 13 2018, 8:37 PM · Python, gpgme

May 5 2018

BenM added a comment to T3815: tests fail in 2021.

The Python portion of this is done, the tests will now create a key with an expiration a few years shy of the 2106 end date (NYE 2099).

May 5 2018, 5:10 AM · qt, Python, gpgme, Bug Report

Apr 30 2018

BenM claimed T3505: Port GPGME's Python bindings to Windows.

Clearly getting SWIG and Windows to play together nicely is a bit of a big ask, but it may be possible to leverage GPGME's compiled libraries with something like CFFI's ABI calling method (yeah, I know, ABI is never ideal, but it's better than what Windows has now).

Apr 30 2018, 12:43 AM · Feature Request, gpgme, Python
BenM claimed T3354: gpgme only builds against two versions of python at once.

The last change to the python installer was, IIRC, one I discussed with Justus off-list around the middle of, um, last year? Maybe the year before?

Apr 30 2018, 12:02 AM · Python, gpgme, Bug Report

Apr 26 2018

BenM added a comment to T3815: tests fail in 2021.

Not to mention making sure we test for a time after the end of the old 32-bit clock.

Apr 26 2018, 6:44 AM · qt, Python, gpgme, Bug Report

Apr 19 2018

werner moved T3354: gpgme only builds against two versions of python at once from Backlog to Python stuff on the gpgme board.
Apr 19 2018, 6:08 PM · Python, gpgme, Bug Report
werner moved T3505: Port GPGME's Python bindings to Windows from Backlog to Python stuff on the gpgme board.
Apr 19 2018, 6:08 PM · Feature Request, gpgme, Python

Apr 17 2018

werner triaged T3815: tests fail in 2021 as Normal priority.
Apr 17 2018, 8:30 PM · qt, Python, gpgme, Bug Report
werner assigned T3815: tests fail in 2021 to BenM.

Ben: We need to use a faked system time thing to make those tests more stable.

Apr 17 2018, 8:29 PM · qt, Python, gpgme, Bug Report
werner placed T3354: gpgme only builds against two versions of python at once up for grabs.
Apr 17 2018, 12:48 PM · Python, gpgme, Bug Report
werner triaged T3813: GPGME error: "invalid crypto engine" in the MSYS2 version as Low priority.

We never tried to build gpgme with MSYS2 and I would also say this is not supported. A wild guess is that this mixes platform specific code.

Apr 17 2018, 10:37 AM · Python, gpgme, Bug Report
werner renamed T3813: GPGME error: "invalid crypto engine" in the MSYS2 version from GPGME error: invalid crypto engine to GPGME error: "invalid crypto engine" in the MSYS2 version.
Apr 17 2018, 10:34 AM · Python, gpgme, Bug Report

Apr 11 2018

BenM added a watcher for Python: BenM.
Apr 11 2018, 3:38 AM
BenM claimed T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.
Apr 11 2018, 3:37 AM · Python, gpgme, Bug Report
BenM added a comment to T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.

This may be related to T3515: Gpg4win: Gpgconf used to open "windows" and slows down kleo startup since it depends on data from gpgconf.

Apr 11 2018, 3:35 AM · Python, gpgme, Bug Report

Feb 28 2018

werner added a project to T3815: tests fail in 2021: qt.
Feb 28 2018, 8:34 AM · qt, Python, gpgme, Bug Report

Feb 27 2018

bmwiedemann added a comment to T3815: tests fail in 2021.

Here is the build log from unpatched gpgme https://www.zq1.de/~bernhard/temp/gpgme-build-log-2033.txt
it has some tracebacks from t-callbacks.py

Feb 27 2018, 9:53 PM · qt, Python, gpgme, Bug Report
werner added projects to T3815: tests fail in 2021: gpgme, Python.

Can you please show the output of these failing tests? I assume you are running on a 64 bit platform.

Feb 27 2018, 9:23 PM · qt, Python, gpgme, Bug Report
lovetox created T3813: GPGME error: "invalid crypto engine" in the MSYS2 version.
Feb 27 2018, 12:23 AM · Python, gpgme, Bug Report

Jan 13 2018

werner reopened T3354: gpgme only builds against two versions of python at once as "Open".
Jan 13 2018, 5:01 PM · Python, gpgme, Bug Report
werner raised the priority of T3354: gpgme only builds against two versions of python at once from Wishlist to Normal.

The actual problem is that justus quit his job to work for pEp. Thus we have no maintainer for the python port. There is one candidate for this job but don't expect any fast fixes because one of the near term goals will be to replace swig so that we can provide the bindings also for WIndows. Maybe that will also solve the problem with different Python versions.

Jan 13 2018, 5:01 PM · Python, gpgme, Bug Report

Jan 12 2018

dkg added a comment to T3354: gpgme only builds against two versions of python at once.

it's too bad that this is not considered something worth fixing upstream -- at the moment, debian's python3-gpg will only work with one specific version of python3 because of this, which makes package transitions more complex than they should be.

Jan 12 2018, 8:14 PM · Python, gpgme, Bug Report

Nov 15 2017

werner created T3505: Port GPGME's Python bindings to Windows.
Nov 15 2017, 9:11 AM · Feature Request, gpgme, Python

Aug 21 2017

justus closed T3354: gpgme only builds against two versions of python at once as Wontfix.

Unfortunately, even building for two Python versions is a bit of a hassle with the existing autoconf framework for Python. I did that when porting the Python bindings back to Python2 after we decided to also support 2 so that people could start to use our bindings even if they still need Python2. I don't see us extending it for more versions.

Aug 21 2017, 11:24 AM · Python, gpgme, Bug Report

Aug 18 2017

dkg added a comment to T3354: gpgme only builds against two versions of python at once.

this is also https://bugs.debian.org/866555

Aug 18 2017, 6:31 AM · Python, gpgme, Bug Report
dkg created T3354: gpgme only builds against two versions of python at once.
Aug 18 2017, 4:42 AM · Python, gpgme, Bug Report

Jul 11 2017

justus closed T3271: Expose recipients on decryption failure as Resolved.

Fixed in 1e68f93dc547ae75b921e43db35e3599de92e2cb.

Jul 11 2017, 12:30 PM · gpgme, Python, Bug Report
justus claimed T3271: Expose recipients on decryption failure.
Jul 11 2017, 10:37 AM · gpgme, Python, Bug Report
aheinlein added a watcher for Python: aheinlein.
Jul 11 2017, 10:29 AM
aheinlein created T3271: Expose recipients on decryption failure.
Jul 11 2017, 10:27 AM · gpgme, Python, Bug Report
aheinlein created T3270: No reasonable error codes on decryption failure.
Jul 11 2017, 10:24 AM · gpgme, Bug Report

Jul 10 2017

lovetox added a comment to T3263: GPGME: Python bindings dont work after build.

Thanks, LD_LIBRARY_PATH solved the problem

Jul 10 2017, 5:28 PM · Python, gpgme, Bug Report
justus closed T3263: GPGME: Python bindings dont work after build as Invalid.

This is a bug tracker, not a support forum.

Jul 10 2017, 4:47 PM · Python, gpgme, Bug Report
werner triaged T3263: GPGME: Python bindings dont work after build as Normal priority.
Jul 10 2017, 4:21 PM · Python, gpgme, Bug Report
werner assigned T3263: GPGME: Python bindings dont work after build to justus.
Jul 10 2017, 4:20 PM · Python, gpgme, Bug Report

May 23 2017

marcus changed the status of T2426: gpgme - Inappropriate ioctl for device from Invalid to Resolved.
May 23 2017, 9:38 AM · Python, Fedora, Bug Report, gpgme
marcus renamed T2426: gpgme - Inappropriate ioctl for device from NATIONAL SECURITY. FEDERAL OFFENSE 12-20yrs FEDERAL PRISON to gpgme - Inappropriate ioctl for device.
May 23 2017, 9:38 AM · Python, Fedora, Bug Report, gpgme

May 17 2017

srgblnchtrn added a watcher for Python: srgblnchtrn.
May 17 2017, 9:20 AM

Mar 30 2017

admin created Python.
Mar 30 2017, 6:42 PM

Oct 13 2016

justus added a comment to T2751: pyme.Context().get_key(fpr, secret) should have secret default to False.

Fixed in 1e6073ff.

Oct 13 2016, 1:23 PM · gpgme, Python, Feature Request
justus closed T2751: pyme.Context().get_key(fpr, secret) should have secret default to False as Resolved.
Oct 13 2016, 1:23 PM · gpgme, Python, Feature Request
justus added a project to T2751: pyme.Context().get_key(fpr, secret) should have secret default to False: Python.
Oct 13 2016, 1:23 PM · gpgme, Python, Feature Request

Aug 16 2016

werner added a comment to T2426: gpgme - Inappropriate ioctl for device.

Thanks for testing.

Aug 16 2016, 7:36 PM · Python, Fedora, Bug Report, gpgme
werner closed T2426: gpgme - Inappropriate ioctl for device as Resolved.
Aug 16 2016, 7:36 PM · Python, Fedora, Bug Report, gpgme

Aug 14 2016

techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

I've made new container and can't repeat the bug. gpgme
components got updated in Fedora.

Aug 14 2016, 5:59 PM · Python, Fedora, Bug Report, gpgme

Aug 2 2016

justus added a comment to T2426: gpgme - Inappropriate ioctl for device.

Ok, there are no significant patches on top of pygpgme. Note that pygpgme is not really
maintained, and that we neither develop nor support pygpgme. But seeing that dnf is important to
Fedora, let's figure this out.

It would be nice if you could try to reproduce the problem without pygpgme though, just to make a
more minimal test case. I see the exception is thrown during some import. This is how I strace
gnupg to see what ioctls it is issuing:

% strace -eioctl g10/gpg --import ../tests/openpgp/samplekeys/ecc-sample-1-pub.asc
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: key 0BA52DF0BAA59D9C: public key "ec_dsa_dh_256 <openpgp@brainhub.org>" imported

  • SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26716, si_uid=1000, si_status=0,

si_utime=0, si_stime=0} ---
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon
echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon
echo ...}) = 0
gpg: Total number processed: 1
gpg: imported: 1
+++ exited with 0 +++

Note that if you try to strace your gpgme-based application, you need to pass '-f' to strace to
follow forks.

I have grepped through gpgme and gnupg, and it looks like gnupg is only doing ioctls to terminals,
so maybe your container setup is doing something funny to terminals. But let's see what the strace
shows.

Aug 2 2016, 2:06 PM · Python, Fedora, Bug Report, gpgme

Jul 29 2016

techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

Here is the info about Fedora patches
https://www.rpmfind.net/linux/RPM/fedora/secondary/devel/rawhide/src/p/pygpgme-0.3-15.fc24.src.html

Jul 29 2016, 3:26 PM · Python, Fedora, Bug Report, gpgme
techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

On Wed, Jul 27, 2016 at 1:24 PM, Justus Winter via BTS
<gnupg@bugs.g10code.com> wrote:

I see that you are using pygpgme, is that correct?If so, which version, and are
there significant patches applied in the Fedora package? And can you please tell
me what version of libgpgme you are using?

Jul 29 2016, 3:11 PM · Python, Fedora, Bug Report, gpgme

Jul 27 2016

justus added a comment to T2426: gpgme - Inappropriate ioctl for device.

Thanks for the report.

I see that you are using pygpgme, is that correct? If so, which version, and are
there significant patches applied in the Fedora package? And can you please tell
me what version of libgpgme you are using?

Let's try to figure out which ioctl fails. Could you try to strace this process?

Jul 27 2016, 12:24 PM · Python, Fedora, Bug Report, gpgme