[requestsync] Doesn't wait for gpg command to exit

Bug #255099 reported by Jelmer Vernooij
4
Affects Status Importance Assigned to Milestone
Ubuntu Developer Tools
Incomplete
Undecided
Unassigned
ubuntu-dev-tools (Ubuntu)
Expired
Medium
Unassigned

Bug Description

  affects ubuntu-dev-tools

requestsync doesn't wait for the gpg command to finish - it has exited
before I even had the ability to enter the PIN for my GPG smartcard.

ganieda:/data/jelmer/ubuntu-dev-tools/trunk% LC_ALL=C ./requestsync -s
-n bzr-cvsps-import intrepid
can't connect to `/tmp/gpg-GZP2tf/S.gpg-agent': No such file or
directory
gpg: can't connect to the agent - trying fall back
can't connect to `/home/jelmer/.gnupg/S.gpg-agent': No such file or
directory
scdaemon[16713]: signatures created so far: 6888
scdaemon[16713]: DBG: asking for PIN '||Please enter the PIN%0A[sigs
done: 6888]'
scdaemon[16713]: updating status of slot 0 to 0x0007
scdaemon[16713]: client pid is 16712, sending signal 12
gpg: signing failed: End of file
gpg: [stdin]: clearsign failed: End of file
scdaemon[16713]: PIN callback returned error: End of file
scdaemon[16713]: card_sign failed: End of file
Traceback (most recent call last):
  File "./requestsync", line 446, in <module>
    if mail_bug(srcpkg, subscribe, status, title, report, keyid):
  File "./requestsync", line 170, in mail_bug
    assert gpg.returncode == 0
AssertionError

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Michael Bienia (geser) wrote :

Does this still happen?

Benjamin Drung (bdrung)
summary: - requestsync: Doesn't wait for gpg command to exit
+ [requestsync] Doesn't wait for gpg command to exit
Benjamin Drung (bdrung)
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Stefano Rivera (stefanor) wrote :

The code doesn't have any kind of timeout, I'm guessing your gpg command exited.

gpg = subprocess.Popen(gpg_command, stdin = subprocess.PIPE, stdout = subprocess.PIPE)
signed_report = gpg.communicate(mailbody.encode('utf-8'))[0].decode('utf-8')
assert gpg.returncode == 0

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Incomplete
Changed in ubuntu-dev-tools:
status: New → Won't Fix
status: Won't Fix → New
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-dev-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-dev-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.