Bug 1047252

Summary: Enigmail blocks forever
Product: [openSUSE] openSUSE Distribution Reporter: Richard Weinberger <richard>
Component: FirefoxAssignee: E-mail List <bnc-team-mozilla>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: astieger, jsegitz, richard, wolfgang
Version: Leap 42.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Richard Weinberger 2017-07-04 17:28:59 UTC
On my shiny new LEAP 42.2 Enigmail sometimes blocks forever right before sending a mail.
Initial debugging shows that gpg2 waits for further input via fd 0 after encrypting a mail. Decryption always works fine.

I've already replaced gpg2 with a wrapper to capture syscalls.
The last actions before blocking on read(0, ...) are:

17912 getrusage(RUSAGE_SELF, {ru_utime={0, 110780}, ru_stime={0, 77152}, ...}) = 0
17912 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {0, 187946232}) = 0
17912 write(2, "[GNUPG:] ", 9)          = 9
17912 write(2, "BEGIN_ENCRYPTION", 16)  = 16
17912 write(2, " ", 1)                  = 1
17912 write(2, "2", 1)                  = 1
17912 write(2, " ", 1)                  = 1
17912 write(2, "9", 1)                  = 1
17912 write(2, "\n", 1)                 = 1
17912 gettimeofday({1499165570, 366015}, NULL) = 0
17912 getrusage(RUSAGE_SELF, {ru_utime={0, 110780}, ru_stime={0, 77413}, ...}) = 0
17912 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {0, 188207591}) = 0
17912 gettimeofday({1499165570, 366309}, NULL) = 0
17912 getrusage(RUSAGE_SELF, {ru_utime={0, 110780}, ru_stime={0, 77559}, ...}) = 0
17912 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {0, 188352869}) = 0
17912 brk(0x55d714963000)               = 0x55d714963000
17912 brk(0x55d714984000)               = 0x55d714984000
17912 brk(0x55d7149a6000)               = 0x55d7149a6000
17912 read(0, 0x55d71492a610, 8192)     = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
17912 --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=4336, si_uid=1000} ---

Please note that the termination by SIGTERM was initiated by me to unblock Thunderbird/Enigmail.
Does this ring a bell? On my old openSUSE 13.1 this never happened.
Comment 1 Andreas Stieger 2017-07-05 04:45:46 UTC
Yes I see this happening, never found out if it was enigmail or gpg or my configuration.
Comment 2 Andreas Stieger 2017-07-05 06:33:45 UTC
Just to clarify, this is enigmail - our package, not enigmail installed as add-on?
This is possibly https://sourceforge.net/p/enigmail/bugs/687/
So this might fixed in 1.9.8. Can you try 1.9.8 please?
https://build.opensuse.org/request/show/508242
I will also try myself.
Comment 3 Andreas Stieger 2017-07-05 07:22:33 UTC
mozilla:Factory/enigmail updated to 1.9.8
Comment 4 Bernhard Wiedemann 2017-07-05 08:00:31 UTC
This is an autogenerated message for OBS integration:
This bug (1047252) was mentioned in
https://build.opensuse.org/request/show/508250 42.3 / enigmail
Comment 5 Bernhard Wiedemann 2017-07-05 12:00:44 UTC
This is an autogenerated message for OBS integration:
This bug (1047252) was mentioned in
https://build.opensuse.org/request/show/508321 42.2 / enigmail
Comment 6 Andreas Stieger 2017-07-06 12:39:13 UTC
Have not a single instance of this problem with 1.9.8.
Wolfgang, could you approve https://build.opensuse.org/request/show/508321 then we can put out a maintenance update.
Comment 7 Richard Weinberger 2017-07-07 08:12:12 UTC
(In reply to Andreas Stieger from comment #6)
> Have not a single instance of this problem with 1.9.8.
> Wolfgang, could you approve https://build.opensuse.org/request/show/508321
> then we can put out a maintenance update.

The upgrade to 1.9.8 fixed the problem also for me. :-)

Thanks!
Comment 8 Andreas Stieger 2017-07-07 08:16:40 UTC
releasing maintenance update
Comment 9 Swamp Workflow Management 2017-07-07 13:13:59 UTC
openSUSE-RU-2017:1814-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1047252
CVE References: 
Sources used:
openSUSE Leap 42.2 (src):    enigmail-1.9.8-2.6.1
Comment 10 Andreas Stieger 2017-07-31 11:45:53 UTC
*** Bug 1051463 has been marked as a duplicate of this bug. ***