Indefinite build hangs during python tests of gpgme1.0 v1.8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpad-buildd |
New
|
Undecided
|
Unassigned |
Bug Description
See also Bug #1647204 for full report on gpgme1.0 issues
In the case of LP builds, after setting export DEB_BUILD_
Example here: https:/
eventually killed by LP due to inactivity.
This hang does not occur when the same sources are built on:
- debian build system/builders
- pbuilder
- standard sbuild
- sbuild created with sbuild-
- compiled from source conventionally on a local system
So this appears to be some quirk of the launchpad builder setup/environment itself.
Adding some debug statements on other the builds showed that that hang is occurring in
lang / python / tests / t-callbacks.py
specifically, when the c.op_genkey call is made in the section shown below.
# Test the progress callback.
parms = """<GnupgKeyParms format="internal">
Key-Type: RSA
Key-Length: 1024
Name-Real: Joe Tester
Name-Comment: with stupid passphrase
Name-Email: <email address hidden>
Passphrase: Crypt0R0cks
Expire-Date: 2020-12-31
</GnupgKeyParms>
"""
messages = []
def progress_cb(what, typ, current, total, hook=None):
assert hook == messages
messages.
"PROGRESS UPDATE: what = {}, type = {}, current = {}, total = {}"
c = gpg.Context()
c.set_progress_
c.op_genkey(parms, None, None) <---- HANGS HERE
assert len(messages) > 0
# Test exception handling.
def progress_cb(what, typ, current, total, hook=None):
raise myException
c = gpg.Context()
c.set_progress_
try:
c.op_
except Exception as e:
assert e == myException
else:
assert False, "Expected an error, got none"
As commented in Bug #1647204 I believe that this should be fixed with https:/ /git.gnupg. org/cgi- bin/gitweb. cgi?p=gpgme. git;a=commitdif f;h=a98951a30a6 ae603ffac4ec8c5 168aa6d1019933