Menu

#545 gpg2.exe 2.0.29 is marked as being version "int)" and lower than 2.0.7

invalid
nobody
None
nightly
Blocker
nightly
2.0.29
All
---
nobody
2015-12-08
2015-12-03
No

Enigmail as from 3.12.2015 does not read given version-strings from gpg2.exe. The version number evaluates to "int)".

2015-12-03 08:22:25.966 [CONSOLE] enigmail> "C:\Program Files (x86)\GNU\GnuPG\gpgv2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
2015-12-03 08:22:26.205 [DEBUG]   enigmail> DONE
2015-12-03 08:22:26.206 [CONSOLE] TypeError: can't pass the number NaN to argument 1 of int MultiByteToWideChar(unsigned_int, uint32_t, char*, int, char16_t*, int)
2015-12-03 08:22:26.206 [DEBUG] enigmail.js: detected GnuPG version 'int)'
2015-12-03 08:22:46.981 [DEBUG] enigmailCommon.jsm: filePicker: false
2015-12-03 08:25:19.623 [DEBUG] enigmailCommon.js: EnigInitCommon: id=enigmailAlertDlg
2015-12-03 08:25:26.519 [DEBUG] enigmailCommon.jsm: dispatchEvent f=resizeDlg
2015-12-03 08:25:29.134 [DEBUG] enigmailCommon.jsm: dispatchEvent running mainEvent
2015-12-03 08:25:34.085 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 
2015-12-03 08:25:34.086 [DEBUG] funcs.jsm: collapseAdvanced:
2015-12-03 08:25:38.564 [DEBUG] enigmailAbout.js: enigAboutLoad
2015-12-03 08:25:38.566 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame
2015-12-03 08:25:38.566 [DEBUG] app.jsm: getVersion
2015-12-03 08:25:38.566 [DEBUG] app.jsm: installed version: 1.9a1pre
2015-12-03 08:25:51.065 [DEBUG] enigmailAbout.js: interpretHtmlClick: href='https://www.enigmail.net/'
2015-12-03 08:29:30.872 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 
2015-12-03 08:29:30.872 [DEBUG] funcs.jsm: collapseAdvanced:
2015-12-03 08:29:33.439 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 
2015-12-03 08:29:33.439 [DEBUG] funcs.jsm: collapseAdvanced:
2015-12-03 08:29:35.550 [DEBUG] enigmailCommon.js: EnigInitCommon: id=enigmailViewFile
2015-12-03 08:29:35.593 [DEBUG] enigmailHelp.js: enigLoadPage
2015-12-03 08:29:35.593 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame

gpg2.exe exausts for

>"C:\Program Files (x86)\GNU\GnuPG\gpg2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)
libgcrypt 1.6.4
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: C:/Users/sct-muc.BFS/AppData/Roaming/gnupg
Unterstützte Verfahren:
Öff. Schlüssel: RSA, RSA, RSA, ELG, DSA
Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
          CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2

In tune gpg2.exe is marked as being to old (before version 2.0.7) and not usable.

Discussion

  • Patrick Brunschwig

    • status: open --> invalid
     
  • Patrick Brunschwig

    gpgv2 is the wrong tool. gpgv2 can only be used to verify signatures. You would need to use gpg2.exe or gpg.exe, in which case Enigmail will not complain

     
    • Thomas Schweikle

      It will complain.

       
  • Thomas Schweikle

    Same for gpg2.exe. Doesn't matter. The version string given back isn't parsed the right way. With gpgv2.exe it is parsed to "infinite". With gpg2.exe it is parsed to "int)". Both are wrong. Both lead to dialogs stating a version below 2.0.7 installed. Installed are version 2.0.29 for gpg2.exe and gpgv2.exe.
    I've took the output from gpgv2.exe. But that doesn't matter. The output from gpg2.exe is identical:

    Enigmail version 1.9a1pre
    OS/CPU=Windows NT 6.1; Win64; x64
    Platform=Windows
    Non-default preference values:
    autoDecrypt: false
    initAlert: false
    encryptAttachments: 3
    mimePreferPgp: 2
    advancedUser: true
    configuredVersion: 1.9a1pre
    maxIdleMinutes: 360
    agentPath: C:\Program Files (x86)\GNU\GnuPG\gpg2.exe
    
    2015-12-04 09:25:22.863 Mozilla Platform: Thunderbird 45.0a1
    2015-12-04 09:25:22.862 [DEBUG] keyRing.jsm: EnigmailKeyRing.clearCache
    2015-12-04 09:25:35.731 [DEBUG] enigmailMsgHdrViewOverlay.js: this.msgHdrViewLoad
    2015-12-04 09:25:38.958 [DEBUG] enigmailMsgHdrViewOverlay.js: this.hdrViewLoad
    2015-12-04 09:25:39.159 [DEBUG] enigmailMessengerOverlay.js: Startup
    2015-12-04 09:25:39.160 [DEBUG] enigmailMessengerOverlay.js: overrideAttribute oncommand: oldValue=goDoCommand('cmd_print')
    2015-12-04 09:25:39.160 [DEBUG] enigmailMessengerOverlay.js: overrideAttribute oncommand: oldValue=goDoCommand('cmd_printpreview')
    2015-12-04 09:25:39.160 [DEBUG] enigmailMessengerOverlay.js: overrideAttribute oncommand: oldValue=goDoCommand('cmd_print')
    2015-12-04 09:25:39.160 [DEBUG] enigmailMessengerOverlay.js: *** UNABLE to override id=button-print
    2015-12-04 09:25:39.161 [DEBUG] enigmailMessengerOverlay.js: overrideAttribute oncommand: oldValue=Enigmail.msg.msgPrint('cmd_print');
    2015-12-04 09:25:39.161 [DEBUG] enigmailMessengerOverlay.js: overrideAttribute oncommand: oldValue=Enigmail.msg.msgPrint('cmd_printpreview');
    2015-12-04 09:25:39.161 [DEBUG] enigmailMessengerOverlay.js: overrideLayoutChange
    2015-12-04 09:25:40.225 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:25:40.388 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:25:40.409 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:26:28.679 [DEBUG] enigmailMessengerOverlay.js: messageFrameUnload
    2015-12-04 09:26:28.679 [DEBUG] enigmailMessengerOverlay.js: messageCleanup
    2015-12-04 09:26:28.680 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:26:28.724 [DEBUG] enigmailMsgHdrViewOverlay.js: _listener_onStartHeaders
    2015-12-04 09:26:28.724 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:26:28.724 [DEBUG] enigmailCommon.jsm: getFrame: name=messagepane
    2015-12-04 09:26:28.725 [DEBUG] enigmailMsgHdrViewOverlay.js: msgFrame=[object Window]
    2015-12-04 09:26:28.725 [DEBUG] enigmailMsgHdrViewOverlay.js: enigmailPrepSecurityInfo
    2015-12-04 09:26:28.725 [DEBUG] enigmailMsgHdrViewOverlay.js: EnigMimeHeaderSink.innerSMIMEHeaderSink=[xpconnect wrapped nsIMsgSMIMEHeaderSink]
    2015-12-04 09:26:28.824 [DEBUG] enigmailMsgHdrViewOverlay.js: _listener_onEndHeaders
    2015-12-04 09:26:28.825 [DEBUG] enigmailMessengerOverlay.js: setAttachmentReveal
    2015-12-04 09:26:28.834 [DEBUG] mimeDecrypt.js: PgpMimeHandler()
    2015-12-04 09:26:28.835 [DEBUG] enigmail.js: svc = [xpconnect wrapped nsIEnigmail]
    2015-12-04 09:26:28.835 [DEBUG] app.jsm: getVersion
    2015-12-04 09:26:28.835 [DEBUG] app.jsm: installed version: 1.9a1pre
    2015-12-04 09:26:28.835 [DEBUG] app.jsm: getVersion
    2015-12-04 09:26:28.835 [DEBUG] app.jsm: installed version: 1.9a1pre
    2015-12-04 09:26:28.836 [DEBUG] enigmail.js: Enigmail.initialize: START
    2015-12-04 09:26:28.837 [DEBUG] enigmail.js: Enigmail.initialize: Ec.envList = ALLUSERSPROFILE=C:\ProgramData,APPDATA=C:\Users\sct-muc.BFS\AppData\Roaming,COMMONPROGRAMFILES=C:\Program Files\Common Files,COMSPEC=C:\Windows\system32\cmd.exe,DISPLAY=:0.0,HOME=C:\Users\sct-muc.BFS,HOMEDRIVE=C:,HOMEPATH=\Users\sct-muc.BFS,LANG=de_DE.UTF-8,LC_ALL=de_DE.UTF-8,PATH=C:\Program Files (x86)\Mozilla Thunderbird;C:\Program Files\Tcl\bin;C:\Programme\Python34\;C:\Programme\Python34\Scripts;C:\Programme\Perl64\site\bin;C:\Programme\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\Windows System Resource Manager\bin;C:\Windows\idmu\common;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\NTP\bin;C:\Program Files\WinSCP\;C:\Program Files (x86)\SciTE;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\ImageMagick;C:\Program Files\si\bin;C:\Program Files\Nmap;C:\Program Files\Heimdal\bin\;C:\Program Files (x86)\Heimdal\bin\;C:\Program Files\OpenVPN\bin;C:\Program Files\7-Zip;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\TortoiseGit\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Users\sct-muc.BFS\AppData\Roaming\Python\Scripts;C:\cygwin\bin;C:\cygwin\usr\sbin;C:\cygwin\home\sct-muc\bin;C:\Program Files (x86)\cdrtfe;C:\Program Files (x86)\cdrtfe\tools\cdrtools;C:\Program Files (x86)\cdrtfe\tools\cygwin;C:\Program Files (x86)\cdrtfe\tools\helper;C:\Program Files (x86)\cdrtfe\tools\sound;C:\Program Files (x86)\cdrtfe\tools\vcdimager;C:\Program Files (x86)\cdrtfe\tools\xcd,PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw;.tcl,PROGRAMFILES=C:\Program Files,SYSTEMDRIVE=C:,SYSTEMROOT=C:\Windows,TEMP=C:\Users\sct-muc.BFS\AppData\Local\Temp,TMP=C:\Users\sct-muc.BFS\AppData\Local\Temp,USERPROFILE=C:\Users\sct-muc.BFS,WINDIR=C:\Windows
    2015-12-04 09:26:28.837 [DEBUG] gpgAgent.jsm: resetGpgAgent
    2015-12-04 09:26:28.838 [CONSOLE] EnigmailAgentPath=C:\Program Files (x86)\GNU\GnuPG\gpg2.exe
    
    2015-12-04 09:26:28.838 [DEBUG] enigmail.js: Enigmail.setAgentPath: calling subprocess with 'C:\Program Files (x86)\GNU\GnuPG\gpg2.exe'
    2015-12-04 09:26:28.838 [CONSOLE] enigmail> "C:\Program Files (x86)\GNU\GnuPG\gpg2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
    2015-12-04 09:26:51.720 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 
    2015-12-04 09:26:51.720 [DEBUG] funcs.jsm: collapseAdvanced:
    2015-12-04 09:27:09.864 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 
    2015-12-04 09:27:09.865 [DEBUG] funcs.jsm: collapseAdvanced:
    2015-12-04 09:27:35.613 [DEBUG]   enigmail> DONE
    2015-12-04 09:27:36.883 [DEBUG] enigmailCommon.js: EnigInitCommon: id=enigmailViewFile
    2015-12-04 09:27:37.119 [DEBUG] enigmailHelp.js: enigLoadPage
    2015-12-04 09:27:37.120 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame
    
     
  • Thomas Schweikle

    Trying to setup the whole thing using provided wizard: same. No way out. No encription. No decription. Blocker!

     
  • Thomas Schweikle

    x

     
  • Thomas Schweikle

    x

     
  • Thomas Schweikle

    x

     
  • Thomas Schweikle

    x

     
  • Thomas Schweikle

    x

     
  • Thomas Schweikle

    > "c:\Program Files (x86)\GNU\GnuPG\\gpg2.exe" --version
    gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)
    libgcrypt 1.6.4
    Copyright (C) 2015 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Home: C:/Users/sct-muc.BFS/AppData/Roaming/gnupg
    Unterstützte Verfahren:
    Öff. Schlüssel: RSA, RSA, RSA, ELG, DSA
    Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
              CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
    
     
  • Thomas Schweikle

    As I stated: no encription. No decription. Blocker. Enigmail not working any more.

     
  • Patrick Brunschwig

    Ideally, you do not enter any value into the path field, and Enigmail will find gpg on its own. In case Enigmail doesn't find gpg, (assuming that you use gpg4win) the only correct location is this:

    C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe
    

    That's due to the special setup of gpg4win.

     
  • Thomas Schweikle

    If that would be true, why do I see this?

     
  • Thomas Schweikle

    With settings:

     
  • Patrick Brunschwig

    You seem to be using a nightly build of Enigmail with Thunderbird 45.0a1. Which build of Enigmail do you use precisely? Enigmail > About should tell you.

     
  • Patrick Brunschwig

    Oh, and I forgot: do you use the x86-32 or x64 build of Thunderbird?

     
  • Thomas Schweikle

    The error message is the same:
    C:\Program Files (x86)\GNU\GnuPG\gpg2.exe
    C:\Program Files (x86)\GNU\GnuPG\gpgv2.exe
    C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe
    C:\Program Files (x86)\GNU\GnuPG\pub\gpg.exe
    * C:\Program Files (x86)\GNU\GnuPC\pub\gpgv.exe

    And while I am at it:

    echo %PATH%
    C:\Program Files\Tcl\bin;C:\Programme\Python34\;
    C:\Programme\Python34\Scripts;
    C:\Programme\Perl64\site\bin;
    C:\Programme\Perl64\bin;
    C:\Windows\system32;C:\Windows;
    C:\Windows\System32\Wbem;
    C:\Windows\System32\WindowsPowerShell\v1.0\;
    C:\Windows\System32\Windows System Resource Manager\bin;
    C:\Windows\idmu\common;
    C:\Program Files (x86)\GNU\GnuPG\pub;
    C:\Program Files (x86)\NTP\bin;
    C:\Program Files\WinSCP\;
    C:\Program Files (x86)\SciTE;
    C:\ProgramData\Oracle\Java\javapath;
    C:\Program Files\ImageMagick;
    C:\Program Files\si\bin;
    C:\Program Files\Nmap;
    C:\Program Files\Heimdal\bin\;
    C:\Program Files (x86)\Heimdal\bin\;
    C:\Program Files\OpenVPN\bin;
    C:\Program Files\7-Zip;
    C:\Program Files (x86)\Skype\Phone\;
    C:\Program Files (x86)\QuickTime\QTSystem\;
    C:\Program Files\TortoiseGit\bin;
    C:\Program Files\TortoiseSVN\bin;
    C:\Program Files\Git\cmd;
    C:\Users\sct-muc.BFS\AppData\Roaming\Python\Scripts;
    C:\cygwin\bin;
    C:\cygwin\usr\sbin;
    C:\cygwin\home\sct-muc\bin;
    C:\Program Files (x86)\cdrtfe;
    C:\Program Files (x86)\cdrtfe\tools\cdrtools;
    C:\Program Files (x86)\cdrtfe\tools\cygwin;
    C:\Program Files (x86)\cdrtfe\tools\helper;
    C:\Program Files (x86)\cdrtfe\tools\sound;
    C:\Program Files (x86)\cdrtfe\tools\vcdimager;
    C:\Program Files (x86)\cdrtfe\tools\xcd

    gpg.exe, gpg2.exe, gpgv.exe are in %PATH%. Enigmail doesn't find them anyway -- or better: it finds them, but ignores them because the version found is "int)" (gpg2.exe, gpg.exe), "infinite" (gpgv.exe, gpgv2.exe).

    I've tried gpg from an other package (https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe) too: nearly same results. Enigmail wont work together with these versions.

    One other idea came to mind: cygwins gpg.exe. It seems to load, but version reported by enigmail wheren't readable characters, drawn as little boxes to show there is something, but no character to display). Enigmail sorts it out being before 2.0.7 too (besides -- cygwin only has version 1.4.x aailable).

    And here is what these versions print if called with "--version":

    GPG4Win:

    >"C:\Program Files (x86)\GNU\GnuPG\pub\gpg.exe" --version
    gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0)
    libgcrypt 1.6.4
    Copyright (C) 2015 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Home: C:/Users/sct-muc/AppData/Roaming/gnupg
    Unterstützte Verfahren:
    Öff. Schlüssel: RSA, RSA, RSA, ELG, DSA
    Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
              CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
    

    https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe

    >"c:\Program Files (x86)\GnuPG\bin\gpg.exe" --version
    gpg: keyserver option 'honor-http-proxy' is unknown
    gpg (GnuPG) 2.1.10
    libgcrypt 1.6.4
    Copyright (C) 2015 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Home: C:/Users/sct-muc/AppData/Roaming/gnupg
    Supported algorithms:
    Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
    Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
            CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Compression: Uncompressed, ZIP, ZLIB, BZIP2
    

    I could sort out the parsing problem being because of de_DE for locale. The same happens with en_US. And: the version from https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe doesn't ship with locales.

     

    Last edit: Thomas Schweikle 2015-12-08
  • Patrick Brunschwig

    Sorry, I asked you for the specific Enigmail build date. Nothing more, nothing less. I have a specific reason to ask you for just this bit of information.

     
    • Thomas Schweikle

      Using Enigmail: Running Enigmail version 1.9a1pre (20151207-2313)
      Running Thunderbird version:

      Name    Thunderbird
      Version     45.0a1
      User Agent  Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Thunderbird/45.0a1
      Profile Folder  
      (Local drive)
      Application Build ID    20151207030219
      Enabled Plugins     about:plugins
      Build Configuration     about:buildconfig
      Memory Use  about:memory
      
       
  • Patrick Brunschwig

    What is the output of the following command (on a command prompt:)
    chcp

    On my system the result is:
    Active code page: 437

     
    • Thomas Schweikle

      chcp
      Aktive Codepage: 850.

       
  • Patrick Brunschwig

    I just created a new nightly build. Can you try this one and see if it works?

     

Log in to post a comment.