Page MenuHome GnuPG
Feed Advanced Search

Mar 10 2023

saper added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

@gniibe I have submitted D565 to change the error message on curses initialization to "Required environment variable not set"

Mar 10 2023, 12:27 PM · Solaris, gnupg (gpg23)

Dec 8 2021

gniibe closed T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos) as Resolved.
Dec 8 2021, 9:06 AM · Solaris, gnupg (gpg23)

Oct 6 2021

gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Major problem here (before the change) was that clock_gettime returned an error with no valid value of the time, which confuses gpg-agent's calibration of time. This occurred on (not newest) Solaris kernel, as it offers clock_gettime function in the library and CLOCK_THREAD_CPUTIME_ID constant in the header.

Oct 6 2021, 2:23 AM · Solaris, gnupg (gpg23)

Oct 5 2021

mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

I mentioned the two POSIX getconf settings you referenced in those links, and the developer that implemented CLOCK_THREAD_CPUTIME_ID and a couple other CLOCK_THREAD types had this to say:

Oct 5 2021, 9:30 PM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

FreeBSD has _POSIX_THREAD_CPUTIME > 0.
GNU/Linux has _POSIX_THREAD_CPUTIME == 0, because older kernel doesn't support the system call.

Oct 5 2021, 4:59 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Reading pages of the following links:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_gettime.html
https://docs.oracle.com/cd/E36784_01/html/E36873/unistd.h-3head.html

Oct 5 2021, 3:26 AM · Solaris, gnupg (gpg23)

Oct 4 2021

mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Hi gniibe!

Oct 4 2021, 9:07 PM · Solaris, gnupg (gpg23)

Oct 1 2021

mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Opened https://dev.gnupg.org/T5631 for the pinentry-curses issue.

Oct 1 2021, 5:16 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

do you want me to open a separate bug report for the pinentry issue and reference this bug report?

Oct 1 2021, 4:38 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

You did all the work to locate the bug, gniibe! Nice job identifying it so quickly.

Oct 1 2021, 4:12 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Thank you for locating the bug for (1).

Oct 1 2021, 4:00 AM · Solaris, gnupg (gpg23)

Sep 30 2021

mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

You're definitely on the correct track: setting 's2k-count 29176832' in my gpg-agent.conf fixed the gpg-agent hang. Now the decrypt I was trying earlier works. Also, 'gpg-agent' is no longer accumulating CPU time, and I can kill it off with gpgconf.

Sep 30 2021, 10:21 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

s2k-count matters when you import the key.

Sep 30 2021, 10:15 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

When I run the gpg-connect-agent, it starts the agent and then hangs without responding with the time:

Sep 30 2021, 10:07 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

My current keypair is old, but it's stored on my workstation's disk and appears to have been correctly imported into the private-keys-v1.d/ store. I do still have my 'secring.gpg' too, in case I ever need it for an older GPG.

Sep 30 2021, 9:27 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

It seems that there are some problems: https://bugs.python.org/issue35455

Sep 30 2021, 8:43 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

After the passphrase has been entered and gpg hangs, gpg-agent starts to accumulate CPU time at a rapid rate, as displayed by 'ps -ef'.

Sep 30 2021, 8:10 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

gpg-agent doesn't disappear from the process list after entering the passphrase; in fact it can't be killed with anything but 'kill -9'. 'gpgconf --kill gpg-agent' cannot kill it, the gpg-conf command just hangs when trying to.

Sep 30 2021, 7:18 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Yes, xterm as a terminal type is correctly supported on OpenIndiana. I have been using it for many years, for both command-line and curses-based programs. It works well.

Sep 30 2021, 7:14 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

With the options that Werner recommended for debugging in my ~/.gnupg/gpg-agent.conf:

Sep 30 2021, 7:13 AM · Solaris, gnupg (gpg23)
gniibe claimed T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).
Sep 30 2021, 7:06 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

I think that the first problem is related to T5577: Null ptr dereference in gpg-agent (gnupg 2.3.2).
If gpg-agent has gone (after entering passphrase, it must be SEGV.

Sep 30 2021, 7:05 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Let us try to solve problems, one by one.

Sep 30 2021, 6:46 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Hi gniibe!

Sep 30 2021, 5:08 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

BTW, when pinentry interaction doesn't work well, use of --pinentry-mode loopback option for gpg may help you.

Sep 30 2021, 3:57 AM · Solaris, gnupg (gpg23)
gniibe added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

It seems for me that there are multiple problems.
For pinentry-curses, please have a look at: T4771: pinentry-tty/pinentry-curses interact a user as background process
It only works well in some situations; It doesn't work when the screen is occupied by foreground program like Emacs and Midnight Commander.

Sep 30 2021, 3:50 AM · Solaris, gnupg (gpg23)

Sep 29 2021

mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Sep 29 2021, 5:31 AM · Solaris, gnupg (gpg23)
mooney added a comment to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos).

Thanks for the guidance, Werner!

Sep 29 2021, 5:29 AM · Solaris, gnupg (gpg23)

Sep 28 2021

werner added projects to T5623: gpg2 hangs on many tasks on OpenIndiana (Illumos): gnupg (gpg23), Solaris.

Just to be sure. please provide the output of

Sep 28 2021, 12:13 PM · Solaris, gnupg (gpg23)

Aug 13 2021

werner changed the edit policy for Solaris.
Aug 13 2021, 11:15 PM

Jan 12 2021

werner added a comment to T4818: libgcrypt build failures on several platforms.

Note: The commit in master (1.9) is rCe0898d0628789414
and in 1.8 it is rC03e6d6597198ee

Jan 12 2021, 12:40 PM · Solaris, libgcrypt, Bug Report

Jan 7 2021

werner edited projects for T4822: mlock requires privilege, added: FAQ; removed Bug Report.

It is possible to disable the mlock thingy and if that is not wanted the application should be modified to be suid(root) during Libgcrypt initialization - this is actually how we handle this in GnuPG. Or maybe I don't understand the bug described here. It seems to be more of a support question.

Jan 7 2021, 11:22 AM · FAQ, Solaris, libgcrypt

Aug 17 2020

werner closed T5025: error: Cannot find a type to use in place of socklen_t as Resolved.

No, c99 was never required. Meanwhile we use a few c99 features but those are supported without any compiler option.

Aug 17 2020, 9:27 AM · Solaris, toolchain, libassuan

Aug 14 2020

JW added a comment to T5025: error: Cannot find a type to use in place of socklen_t.

-std=c99 is probably the reason that the tests fail.

Aug 14 2020, 9:42 PM · Solaris, toolchain, libassuan
werner added projects to T5025: error: Cannot find a type to use in place of socklen_t: toolchain, Solaris.

Please try with out supplied CFLAGS or change them from

Aug 14 2020, 9:40 AM · Solaris, toolchain, libassuan

Jul 6 2020

werner closed T4818: libgcrypt build failures on several platforms as Resolved.
Jul 6 2020, 4:09 PM · Solaris, libgcrypt, Bug Report

Mar 24 2020

werner closed T4887: GPG is throwing error while doing (encryption+sign) or Decryption as Invalid.

@sarman: Your question is actually a support question and not a bug report. Please read the documentation, use the public help channels (so that other can also learn from the issue), or get in touch with a commercial support provider.

Mar 24 2020, 10:48 AM · Not A Bug, Solaris, gnupg, Documentation
gniibe added a comment to T4887: GPG is throwing error while doing (encryption+sign) or Decryption.

I think that what you want is adding --batch option. In the gpg manual, we have:

--passphrase-file file
       Read  the passphrase from file file. Only the first line will be
       read from  file  file.  This  can  only  be  used  if  only  one
       passphrase is supplied. Obviously, a passphrase stored in a file
       is of questionable security if other users can read  this  file.
       Don't use this option if you can avoid it.
Mar 24 2020, 4:58 AM · Not A Bug, Solaris, gnupg, Documentation
sarman added a comment to T4887: GPG is throwing error while doing (encryption+sign) or Decryption.

Hello Team,

Mar 24 2020, 3:52 AM · Not A Bug, Solaris, gnupg, Documentation
gniibe added projects to T4887: GPG is throwing error while doing (encryption+sign) or Decryption: Documentation, gnupg, Solaris.

For operations which require private key, it is needed to unlock private key.

Mar 24 2020, 2:44 AM · Not A Bug, Solaris, gnupg, Documentation

Jan 24 2020

bhaible added a comment to T4818: libgcrypt build failures on several platforms.

Regarding Cygwin: The sources are a bit hard to find.
https://cygwin.com/packages.html
-> https://cygwin.com/packaging/repos.html
-> https://cygwin.com/git-cygwin-packages/
-> https://cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/libgcrypt.git;a=summary

Jan 24 2020, 11:33 AM · Solaris, libgcrypt, Bug Report
bhaible added a comment to T4818: libgcrypt build failures on several platforms.

Regarding GNU/kFreeBSD, my machine is using the FreeBSD 9.0 kernel, which does not yet have the security.bsd.unprivileged_mlock oid. Like what was mentioned here: https://lists.debian.org/debian-bsd/2014/08/msg00092.html

Jan 24 2020, 11:15 AM · Solaris, libgcrypt, Bug Report
gniibe added a comment to T4818: libgcrypt build failures on several platforms.

For Cygwin, I can't find how its libgcrypt package is built.
I found this for MSYS2: https://github.com/msys2/MSYS2-packages/tree/master/libgcrypt
This for Mingw-w64: https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-libgcrypt

Jan 24 2020, 2:53 AM · Solaris, libgcrypt, Bug Report
gniibe created T4822: mlock requires privilege.
Jan 24 2020, 2:21 AM · FAQ, Solaris, libgcrypt
gniibe added a comment to T4818: libgcrypt build failures on several platforms.

I tested on FreeBSD. Same errors (t-secmen and t-sexp) are reproducible when we set:

Jan 24 2020, 2:05 AM · Solaris, libgcrypt, Bug Report

Jan 23 2020

gniibe added a comment to T4818: libgcrypt build failures on several platforms.

On Solaris, the test errors are because of:

USAGE
       Because of the impact on system resources, the use of mlock() and
       munlock() is restricted to users with the {PRIV_PROC_LOCK_MEMORY}
       privilege.
Jan 23 2020, 3:45 AM · Solaris, libgcrypt, Bug Report
gniibe added a comment to T4818: libgcrypt build failures on several platforms.

OK, I identified the problem on OpenIndiana. The inclusion of <unistd.h> causes inclusion of <sys/types.h> before config.h. I'm going to fix this.

Jan 23 2020, 2:24 AM · Solaris, libgcrypt, Bug Report

Jan 21 2020

gniibe added a comment to T4818: libgcrypt build failures on several platforms.

For GNU/Linux or GNU/kFreeBSD system, libgcrypt 1.8 with libgpg-error 1.36 has no problem in Debian build:
https://buildd.debian.org/status/package.php?p=libgcrypt20

Jan 21 2020, 1:48 AM · Solaris, libgcrypt, Bug Report
gniibe added a comment to T4818: libgcrypt build failures on several platforms.

In solaris11openindiana-log2, we have two errors: one for ulong, and another for ushort.
I fixed the former. It is because of our mistake of using ulong before it is handled by libgcrypt/src/types.h. In the first place, it is implemented by "unsigned long", so, there is no need to use ulong here.

Jan 21 2020, 1:41 AM · Solaris, libgcrypt, Bug Report

Jan 20 2020

werner triaged T4818: libgcrypt build failures on several platforms as Normal priority.
Jan 20 2020, 3:37 PM · Solaris, libgcrypt, Bug Report

Mar 25 2019

grobian closed T4420: gnupg-2.2.14: Compilation failure on OpenIndiana as Resolved.

I applied https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=patch;h=8d1b5982138c104f3c50663738892fa110193059 on top of 2.2.14.

Mar 25 2019, 3:07 PM · Solaris, gnupg (gpg22), Bug Report
werner changed the status of T4420: gnupg-2.2.14: Compilation failure on OpenIndiana from Open to Testing.

We fixed that in master and 2.2. Can you please test this with the next release and report or close this bug?

Mar 25 2019, 2:51 PM · Solaris, gnupg (gpg22), Bug Report
gniibe claimed T4420: gnupg-2.2.14: Compilation failure on OpenIndiana.
Mar 25 2019, 11:16 AM · Solaris, gnupg (gpg22), Bug Report

Mar 24 2019

werner added a comment to T4420: gnupg-2.2.14: Compilation failure on OpenIndiana.

Thanks for the report. underscore followed by an uppercase letter is actually reserved for the system; thus we should not have used that.

Mar 24 2019, 10:49 AM · Solaris, gnupg (gpg22), Bug Report
werner triaged T4420: gnupg-2.2.14: Compilation failure on OpenIndiana as High priority.
Mar 24 2019, 10:48 AM · Solaris, gnupg (gpg22), Bug Report

Apr 30 2018

werner closed T3869: libgpg-error-1.28 on Solaris as Resolved.

It is in 1.30 which I released a few minutes ago. Only minor other changes.

Apr 30 2018, 8:57 AM · Solaris, gpgrt, Bug Report

Apr 12 2018

werner added a comment to T3869: libgpg-error-1.28 on Solaris.

Argh. I missed that. Probably because I searched for libgpg-error but I myself renamed the tag recently :-(.

Apr 12 2018, 8:24 AM · Solaris, gpgrt, Bug Report
gniibe changed the status of T3869: libgpg-error-1.28 on Solaris from Open to Testing.

Put the check in configure.

Apr 12 2018, 2:45 AM · Solaris, gpgrt, Bug Report

Mar 27 2018

werner added a project to T3869: libgpg-error-1.28 on Solaris: Solaris.
Mar 27 2018, 6:24 PM · Solaris, gpgrt, Bug Report
werner set the color for Solaris to Checkered.
Mar 27 2018, 6:22 PM