gpg hangs in mlock, cannot be killed

Bug #376982 reported by offby1
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnupg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've noticed (by running "htop") a number of processes whose state is "D" -- uninterruptible sleep. This is unusual. A few of them are gpg.
gnupg version 1.4.9-3ubuntu1

I've also noticed that whenever I run gpg, it hangs, and I cannot kill it: not by typing Control C, nor Control Z; nor by switching to a different terminal, becoming root, and trying "kill -9" on the process' PID.

I can no longer do any encryption or decryption. This rather sucks :-|

I ran "strace -f -o yow gpg < some-file" and captured the output; the last lines are

10076 fstat64(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0
10076 mmap2(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c9b000
10076 close(3) = 0
10076 mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c93000
10076 getuid32() = 1000
10076 mlock(0xb7c93000, 32768

So it's hanging in "mlock".

Revision history for this message
Daniel Leidert (dleidert-deactivatedaccount) wrote :

Can you run gpg with "--verbose --debug-all --status-fd 1"? Maybe also add the output using "--list-packets".

Revision history for this message
offby1 (offby1) wrote : Re: [Bug 376982] Re: gpg hangs in mlock, cannot be killed

I'm sorry, I can't reproduce the problem now.

On Fri, Jul 17, 2009 at 2:20 AM, Daniel
Leidert<email address hidden> wrote:
> Can you run gpg with "--verbose --debug-all --status-fd 1"? Maybe also
> add the output using "--list-packets".
>
> --
> gpg hangs in mlock, cannot be killed
> https://bugs.launchpad.net/bugs/376982
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Daniel Leidert (dleidert-deactivatedaccount) wrote :

Setting to "Incomplete" then for the moment. If you observe the problem again, please set this back to "New" and provide the requested information.

Changed in gnupg (Ubuntu):
status: New → Incomplete
Revision history for this message
David Austin (david-d-austin) wrote :

I've run into the same problem, also hanging in mlock.
I'm trying to upgrade to Karmic...

I ran

gpg --verbose --debug-all --status-fd 1 --list-packets --no-default-keyring --ignore-time-conflict --keyring /etc/apt/trusted.gpg --verify /tmp/tmpF3xNHa/karmic.tar.gz.gpg /tmp/tmpF3xNHa/karmic.tar.gz

which is the command that update-manager tries to run with debugging added.

No output is produced.

David

Changed in gnupg (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnupg (Ubuntu):
status: New → Confirmed
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.