Page MenuHome GnuPG
Feed Advanced Search

Feb 16 2023

tobhe created T6376: FIPS 140-3: add explicit indicators for md and mac to unblock MD5 in apt.
Feb 16 2023, 3:41 AM · libgcrypt, Feature Request, Ubuntu, Debian, FIPS

May 27 2022

sergi added a watcher for Debian: sergi.
May 27 2022, 10:04 PM
srgblnchtrn removed a watcher for Debian: srgblnchtrn.
May 27 2022, 10:04 PM

Aug 13 2021

werner changed the edit policy for Debian.
Aug 13 2021, 3:56 PM

Jun 2 2021

werner closed T5423: libgcrypt 1.8 ECDH as Resolved.
Jun 2 2021, 12:57 PM · Debian, libgcrypt

May 6 2021

werner added a project to T5423: libgcrypt 1.8 ECDH: Debian.

FWIW, I think that it is a Bad Thing to use unreleased stuff from 1.8 for Debian packages. Only released versions sshould be used or patches we explicitly made to fix a bug. At the very least Andreas should have asked upstream whether this commit should be used for Sid.

May 6 2021, 9:00 AM · Debian, libgcrypt

Mar 1 2021

cbiedl closed T5231: Debian: Get recent GnuPG stable into bullseye as Resolved.

[2021-02-24] gnupg2 2.2.27-1 MIGRATED to testing (Debian testing watch)

Mar 1 2021, 10:16 AM · Debian, Restricted Project

Feb 10 2021

werner closed T1089: Please store requests in a cache to avoid sending out duplicate requests (mailto: interface) as Wontfix.
Feb 10 2021, 10:59 AM · gnupg (gpg23), gnupg, Debian, Feature Request

Jan 11 2021

aheinecke created T5231: Debian: Get recent GnuPG stable into bullseye.
Jan 11 2021, 3:21 PM · Debian, Restricted Project

Jul 15 2020

werner closed T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic as Wontfix.

We can't do anything about it except for corner cases which we won't do right now. In case there will be an easy solution to help Debian please re-open this bug.

Jul 15 2020, 4:45 PM · Debian, gpgme
werner edited projects for T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic, added: Debian; removed Info Needed, Bug Report.
Jul 15 2020, 12:19 PM · Debian, gpgme

Jun 3 2019

gniibe closed T4031: gpg-check-pattern.1 in Debian generates warnings from test-groff as Resolved.

I added the section in tools.texi. Closing.

Jun 3 2019, 5:00 AM · Debian, gnupg, Bug Report

May 20 2019

dkg added a comment to T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.

trigger what command? i'm pretty sure gpgconf --reload gpg-agent does not trigger updatestartuptty. And it should not do so, afaict -- if you think it should, i'd be interested in hearing the rationale for it.

May 20 2019, 5:28 AM · Debian, gpgagent, Bug Report
ageis added a comment to T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.

Does gpgconf --reload gpg-agent trigger that command? that's the ExecReload setting in the systemd service unit I'm looking at.

May 20 2019, 1:05 AM · Debian, gpgagent, Bug Report

May 19 2019

dkg added a comment to T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.

This doesn't sound systemd-specific to me, fwiw, though i don't understand how to reproduce the problem from the given description here.

May 19 2019, 9:05 PM · Debian, gpgagent, Bug Report

Sep 11 2018

werner closed T2968: gpg --search: Connection closed in DNS as Resolved.

We assume that this has meanwhile been fixed.

Sep 11 2018, 10:34 AM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr

Aug 29 2018

werner added a project to T2968: gpg --search: Connection closed in DNS: Info Needed.

@elonsatoshi: Were you able to check this with 2.2.9 which has a fix for the resolver?

Aug 29 2018, 2:53 PM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr

Aug 22 2018

gniibe updated the task description for T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.
Aug 22 2018, 10:03 AM · Debian, gpgagent, Bug Report
gniibe updated the task description for T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.
Aug 22 2018, 10:03 AM · Debian, gpgagent, Bug Report
gniibe updated the task description for T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.
Aug 22 2018, 10:00 AM · Debian, gpgagent, Bug Report
gniibe claimed T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.

This entry was created based on the conversation at #gnupg channel.
I can't reproduce keep hanging.
I confirmed that pinentry vanished (perhaps, because of timeout).

Aug 22 2018, 9:59 AM · Debian, gpgagent, Bug Report
gniibe updated the task description for T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature.
Aug 22 2018, 9:56 AM · Debian, gpgagent, Bug Report

Aug 21 2018

werner added a project to T4106: Terminal use case for gpg-agent and gpg-agent for ssh-agent feature: Debian.

gpg-agent has a pinentry caling timeout - doesn't that trigger?
In any case we agreed that Debian takes care of systemd support because that is not an upstream supported configuration.

Aug 21 2018, 5:28 PM · Debian, gpgagent, Bug Report

Jul 3 2018

werner closed T1173: gpg has no easy way to view the reason and description of revocation sigs as Resolved.

Backport done. To be released with 2.2.9.

Jul 3 2018, 12:34 PM · gnupg, Debian, Feature Request

Jun 21 2018

werner changed the status of T1173: gpg has no easy way to view the reason and description of revocation sigs from Open to Testing.

Done for master. Needs backport.

Jun 21 2018, 8:38 PM · gnupg, Debian, Feature Request
werner raised the priority of T1173: gpg has no easy way to view the reason and description of revocation sigs from Normal to High.
Jun 21 2018, 3:24 PM · gnupg, Debian, Feature Request

Jun 20 2018

werner added a comment to T4031: gpg-check-pattern.1 in Debian generates warnings from test-groff .

We should include the man page then in texi format into tools.texi

Jun 20 2018, 7:02 PM · Debian, gnupg, Bug Report
gniibe renamed T4031: gpg-check-pattern.1 in Debian generates warnings from test-groff from nroff created by yat2m generates warnings from test-groff to gpg-check-pattern.1 in Debian generates warnings from test-groff .
Jun 20 2018, 10:39 AM · Debian, gnupg, Bug Report

Jun 5 2018

werner closed T3971: gpgme-1.11.1 fails to build: cJSON.c:45:20: fatal error: gpgrt.h: Datei oder Verzeichnis nicht gefunden as Resolved.

Please dee the commit for a description of this fix.

Jun 5 2018, 9:54 AM · Debian, Bug Report, gpgme

Jun 4 2018

Eagle_Erwin added a comment to T3971: gpgme-1.11.1 fails to build: cJSON.c:45:20: fatal error: gpgrt.h: Datei oder Verzeichnis nicht gefunden.

I don't think this is an error in Debian. Debian Squeeze is packed with libgpg-error 1.26 in the latest stable release [1].
According to the list of changes, gpgrt.h is addes as an alias for gpg-error.h in 1.27 [2].
I think a quick (and correct) fix is to increase the NEED_GPG_ERROR_VERSION in configure.ac to at least 1.27 [3], so the build will fail nicely in the configure-step with a correct error.

Jun 4 2018, 8:40 PM · Debian, Bug Report, gpgme

May 11 2018

werner added a comment to T3971: gpgme-1.11.1 fails to build: cJSON.c:45:20: fatal error: gpgrt.h: Datei oder Verzeichnis nicht gefunden.

It seems that Debian does not install te required libgpg-error correctl.

May 11 2018, 11:23 AM · Debian, Bug Report, gpgme

May 10 2018

Elan added a project to T3971: gpgme-1.11.1 fails to build: cJSON.c:45:20: fatal error: gpgrt.h: Datei oder Verzeichnis nicht gefunden: Debian.
May 10 2018, 11:01 AM · Debian, Bug Report, gpgme

Nov 19 2017

elonsatoshi added a comment to T2968: gpg --search: Connection closed in DNS.

You know... I think connman and DNS have something to do with this. Connman does some weird DNS thing. And it auto-generates /etc/resolv.conf to use localhost as the DNS server.

Nov 19 2017, 4:48 AM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr

Nov 15 2017

werner closed T2902: dimrngr over tor fails obscurely on IPv6 records when NoIPv6Traffic flag is set as Resolved.

This has been fixed a while ago my having dirmngr print a hint on the possible problem. gpg will then print a warning about a problem with the Tor configuration and with --verbose print the hint on solving this as well.

Nov 15 2017, 6:56 PM · Debian, Bug Report, gnupg, dirmngr

Nov 1 2017

gniibe closed T1818: gnupg fails (buffer overflow detected) to encrypt archive when called from duplicity as Resolved.

OK, closed.

Nov 1 2017, 7:17 AM · Info Needed, gnupg, gnupg (gpg14), Bug Report, Debian

Oct 24 2017

werner placed T2968: gpg --search: Connection closed in DNS up for grabs.
Oct 24 2017, 3:00 PM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr

Oct 20 2017

werner edited projects for T2968: gpg --search: Connection closed in DNS, added: gnupg (gpg22); removed gnupg (gpg21), gnupg.
Oct 20 2017, 1:48 PM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr
werner added a comment to T1818: gnupg fails (buffer overflow detected) to encrypt archive when called from duplicity.

Given that we received no info after nearly two years, shouldn't we simply assume that this bug as been fixed?

Oct 20 2017, 12:51 PM · Info Needed, gnupg, gnupg (gpg14), Bug Report, Debian

Oct 14 2017

werner triaged T3447: delkey removes only public part of a subkey as Wishlist priority.

We need a way to delete a secret subkey.

Oct 14 2017, 12:35 PM · Debian, gnupg
werner added a comment to T3447: delkey removes only public part of a subkey.

No direct way. You can do this:

Oct 14 2017, 12:34 PM · Debian, gnupg
werner added a comment to T3447: delkey removes only public part of a subkey.

Ooops. you meant a subkey - let me check...

Oct 14 2017, 12:30 PM · Debian, gnupg
werner added a comment to T3447: delkey removes only public part of a subkey.

Sure: --delete-secret-and-public-key FINGERPRINT

Oct 14 2017, 12:29 PM · Debian, gnupg

Oct 13 2017

prudemar added a comment to T3447: delkey removes only public part of a subkey.

OK, sorry. Forgive me to ask here.. but is there a way how to remove both - the public and the private part? - and only of a specific subkey?

Oct 13 2017, 2:44 PM · Debian, gnupg
werner removed a project from T3447: delkey removes only public part of a subkey: Bug Report.

That is intended.

Oct 13 2017, 2:34 PM · Debian, gnupg
prudemar updated the task description for T3447: delkey removes only public part of a subkey.
Oct 13 2017, 12:36 PM · Debian, gnupg
prudemar updated the task description for T3447: delkey removes only public part of a subkey.
Oct 13 2017, 12:10 PM · Debian, gnupg
prudemar added projects to T3447: delkey removes only public part of a subkey: gnupg, Debian.
Oct 13 2017, 11:25 AM · Debian, gnupg

Aug 27 2017

elonsatoshi added a comment to T2968: gpg --search: Connection closed in DNS.

Well, I'm able to reproduce this issue on Parabola. I was also get a different error when I turn off my vpn: `server indicated a failure```, but now I get the dns error again.

elonsatoshi@tyger ~> gpg -vvv --debug-level guru --search elonsatoshi@riseup.net
gpg: using character set 'utf-8'
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_3 <- # Home: /home/elonsatoshi/.gnupg
gpg: DBG: chan_3 <- # Config: [none]
gpg: DBG: chan_3 <- OK Dirmngr 2.1.23 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.1.23
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KEYSERVER --clear hkps://pgp.mit.edu/
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_SEARCH -- elonsatoshi@riseup.net
gpg: DBG: chan_3 <- ERR 167772876 Connection closed in DNS <Dirmngr>
gpg: error searching keyserver: Connection closed in DNS
gpg: keyserver search failed: Connection closed in DNS
gpg: DBG: chan_3 -> BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg:        build=0 update=0 insert=0 delete=0
gpg:        reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x0000000000000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks
elonsatoshi@tyger ~> sudo rc-service openvpn stop
[sudo] password for elonsatoshi: 
 * WARNING: openvpn is already stopped
elonsatoshi@tyger ~> pidof openvpn
elonsatoshi@tyger ~> gpg -vvv --debug-level guru --search elonsatoshi@riseup.net
gpg: using character set 'utf-8'
gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog
gpg: DBG: [not enabled in the source] start
gpg: DBG: chan_3 <- # Home: /home/elonsatoshi/.gnupg
gpg: DBG: chan_3 <- # Config: [none]
gpg: DBG: chan_3 <- OK Dirmngr 2.1.23 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.1.23
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KEYSERVER --clear hkps://pgp.mit.edu/
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_SEARCH -- elonsatoshi@riseup.net
gpg: DBG: chan_3 <- ERR 167772876 Connection closed in DNS <Dirmngr>
gpg: error searching keyserver: Connection closed in DNS
gpg: keyserver search failed: Connection closed in DNS
gpg: DBG: chan_3 -> BYE
gpg: DBG: [not enabled in the source] stop
gpg: keydb: handles=0 locks=0 parse=0 get=0
gpg:        build=0 update=0 insert=0 delete=0
gpg:        reset=0 found=0 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=0 cached=0 good=0 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
              outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x0000000000000000 calls=0 bytes=0
gpg: secmem usage: 0/32768 bytes in 0 blocks
Aug 27 2017, 4:58 PM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr

Aug 14 2017

marcus placed T1128: gpg should detect ambigious keys specifications up for grabs.
Aug 14 2017, 10:38 AM · Feature Request, Debian, gnupg

Aug 4 2017

marcus placed T2946: gpg-agent should be able to terminate when all its state expires up for grabs.
Aug 4 2017, 8:52 PM · gnupg, Debian, gpgagent, Feature Request

Jul 19 2017

justus closed T2940: dirmngr fails for hkps when http-proxy is in use as Resolved.

Implemented in da91d2106a17c796ddb066a34db92d33b21c81f7.

Jul 19 2017, 12:31 PM · Feature Request, gnupg (gpg22), Debian, gnupg, dirmngr

Jul 18 2017

justus claimed T2940: dirmngr fails for hkps when http-proxy is in use.
Jul 18 2017, 4:27 PM · Feature Request, gnupg (gpg22), Debian, gnupg, dirmngr

Jul 17 2017

marcus placed T1173: gpg has no easy way to view the reason and description of revocation sigs up for grabs.
Jul 17 2017, 6:26 PM · gnupg, Debian, Feature Request

Jul 14 2017

justus added a comment to T2946: gpg-agent should be able to terminate when all its state expires.

Another reoccurring concern is lingering agents spawned in test suites. See, e.g. a discussion from this week: https://github.com/pazz/alot/pull/1081#issuecomment-315131053

Jul 14 2017, 1:52 PM · gnupg, Debian, gpgagent, Feature Request
marcus reopened T2946: gpg-agent should be able to terminate when all its state expires as "Open".

Well, we always have to weigh the costs with the benefits. From the description of the task, the benefit was to satisfy "people [who] really don't like having idle processes lying around", which is not a strong motivation to take implementation and maintenance cost of any solution.

Jul 14 2017, 1:21 PM · gnupg, Debian, gpgagent, Feature Request
dkg added a comment to T2946: gpg-agent should be able to terminate when all its state expires.

This is a disappointing resolution. There are many other reasons for having a daemon, which include keeping a sensitive piece of data in memory (and not on disk) for a limited period of time, while providing controlled access to it. This is exactly what gpg-agent does.

Jul 14 2017, 12:38 PM · gnupg, Debian, gpgagent, Feature Request

Jul 13 2017

marcus closed T2946: gpg-agent should be able to terminate when all its state expires as Wontfix.

Werner's comments indicate that this is expected behavior. Also, concerns were raised that this is difficult to implement correctly, and it is difficult to test. So, I am closing as wontfix.

Jul 13 2017, 1:27 AM · gnupg, Debian, gpgagent, Feature Request
marcus closed T2739: pinentry can't access GPG_TTY after su/sudo to another user on GNU/Linux as Invalid.

The Debian report includes multiple workarounds for the quite unusual setup. So, I am closing here.

Jul 13 2017, 1:01 AM · Bug Report, Debian, pinentry

Jun 28 2017

marcus closed T1992: pinentry in text mode is skewed when using PuTTY and GNU screen as Invalid.
Jun 28 2017, 5:19 PM · Bug Report, Debian, pinentry

Jun 26 2017

justus closed T2856: Can't ssh-add a key w/o a passphrase as Resolved.

Fixed in 273964798592cd479c111f47e8ce46d5b1999d6a.

Jun 26 2017, 2:57 PM · Debian, Bug Report, gnupg, ssh

Jun 23 2017

werner raised the priority of T2856: Can't ssh-add a key w/o a passphrase from Normal to High.

Well, can you then please fix it?

Jun 23 2017, 5:14 PM · Debian, Bug Report, gnupg, ssh
werner added a comment to T2968: gpg --search: Connection closed in DNS.

Any update on this?

Jun 23 2017, 5:11 PM · Info Needed, gnupg (gpg22), Bug Report, Debian, Keyserver, dirmngr
werner closed T2928: stop fetching PTR records entirely as Resolved.
Jun 23 2017, 4:22 PM · Debian, Bug Report, gnupg, dirmngr

Jun 22 2017

marcus added a comment to T1129: Should cope better with read-only keyrings.

@werner do you have any updates on this?

Jun 22 2017, 4:35 PM · Stalled, gnupg, Debian, Feature Request

Jun 8 2017

dkg closed T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg as Wontfix.

I don't think this is a problem for GnuPG to fix. The user is running an OS that launches a version of gnome-keyring by default which doesn't fully-implement gpg-agent's functionality, and yet presents the gpg-agent interface. The user needs to either disable gnome-keyring, or upgrade to a version of the OS (or of gnome-keyring) that doesn't present the gpg-agent interface.

Jun 8 2017, 8:56 PM · Debian

Jun 7 2017

justus assigned T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg to dkg.

this is not the place to report Debian bugs, nevertheless, I have assigned this to our resident Debian expert.

Jun 7 2017, 10:46 AM · Debian
Schnitti added a comment to T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg.

Hi there,

Jun 7 2017, 10:37 AM · Debian

May 24 2017

justus moved T1173: gpg has no easy way to view the reason and description of revocation sigs from Backlog to Wishlist on the gnupg (gpg22) board.
May 24 2017, 1:17 PM · gnupg, Debian, Feature Request
justus moved T2940: dirmngr fails for hkps when http-proxy is in use from Backlog to Wishlist on the gnupg (gpg22) board.
May 24 2017, 1:16 PM · Feature Request, gnupg (gpg22), Debian, gnupg, dirmngr

May 23 2017

marcus assigned T1996: pinentry-gtk-2 returns an empty passphrase string if typed passphrase is longer than 32 chars to neal.
May 23 2017, 9:40 AM · Bug Report, Debian, pinentry
marcus updated the task description for T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg.
May 23 2017, 9:35 AM · Debian
marcus renamed T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg from NATIONAL SECURITY. FEDERAL OFFENSE 12-20yrs FEDERAL PRISON to Debian 8 BPO with TB 45 and enigmail still hijacking gpg.
May 23 2017, 9:34 AM · Debian
Unknown Object (User) placed T1996: pinentry-gtk-2 returns an empty passphrase string if typed passphrase is longer than 32 chars up for grabs.
May 23 2017, 4:03 AM · Bug Report, Debian, pinentry
Unknown Object (User) renamed T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg from Debian 8 BPO with TB 45 and enigmail still hijacking gpg to NATIONAL SECURITY. FEDERAL OFFENSE 12-20yrs FEDERAL PRISON.
May 23 2017, 4:00 AM · Debian

May 17 2017

srgblnchtrn added a watcher for Debian: srgblnchtrn.
May 17 2017, 9:19 AM

May 4 2017

justus added a project to T3124: Debian 8 BPO with TB 45 and enigmail still hijacking gpg: Debian.
May 4 2017, 10:51 AM · Debian

Apr 10 2017

justus closed T3014: Intermittent crashes in gpgscm on s390x as Resolved.

This is fixed in bf8b5e9042b3d86d419b2ac1987a9298c9d21500.

Apr 10 2017, 4:17 PM · Debian, Bug Report, gnupg

Apr 7 2017

flokli merged task T2991: dirmngr unable to receive keys if only IPv6 DNS servers are set into T2990: dirmngr fails with IPv6 nameserver in resolv.conf.
Apr 7 2017, 5:59 PM · g10code (gnupg-2.2), Debian, Bug Report, gnupg, gnupg (gpg21), dirmngr
gniibe added a comment to T3014: Intermittent crashes in gpgscm on s390x.

I confirmed that it's 64-bit big-endian.
I wrote a patch for testing. D421: padding is needed for 64-bit big endian

Apr 7 2017, 1:08 AM · Debian, Bug Report, gnupg
gniibe added a comment to T3014: Intermittent crashes in gpgscm on s390x.

If s390x is big-endian, we need padding at the start of the cell structure. So that the _flag can be compatible to the vector element.
I'll see on the porterbox myself, too.

Apr 7 2017, 12:53 AM · Debian, Bug Report, gnupg

Apr 6 2017

dkg added a comment to T3014: Intermittent crashes in gpgscm on s390x.

I just merged the current git head over on zelenka, which includes b83903f59ec5d49ac579f263da70ebc8dc3645b5, and managed to still get the same segfaults.

Apr 6 2017, 9:32 PM · Debian, Bug Report, gnupg
justus added a comment to T3014: Intermittent crashes in gpgscm on s390x.

Fwiw b83903f59ec5d49ac579f263da70ebc8dc3645b5.

Apr 6 2017, 4:41 PM · Debian, Bug Report, gnupg
justus added a comment to T3014: Intermittent crashes in gpgscm on s390x.

@gniibe good catch! I'll fix that and we'll see if that improves things.

Apr 6 2017, 3:48 PM · Debian, Bug Report, gnupg
gniibe added a comment to T3014: Intermittent crashes in gpgscm on s390x.

IIUC, cells are used for a place for vector elements.
I'm afraid what happens for memory space not used for vector elements.

Apr 6 2017, 3:45 PM · Debian, Bug Report, gnupg
dkg changed Version from 2.1.19 to 2.1.19, 2.1.20 on T3014: Intermittent crashes in gpgscm on s390x.
Apr 6 2017, 6:14 AM · Debian, Bug Report, gnupg
dkg added a comment to T3014: Intermittent crashes in gpgscm on s390x.

fwiw, this remains a problem on 2.1.20: https://buildd.debian.org/status/fetch.php?pkg=gnupg2&arch=s390x&ver=2.1.20-1&stamp=1491409561&raw=0

Apr 6 2017, 6:13 AM · Debian, Bug Report, gnupg

Apr 3 2017

dkg added a comment to T3014: Intermittent crashes in gpgscm on s390x.

Sure:

Apr 3 2017, 11:39 PM · Debian, Bug Report, gnupg
werner closed T2966: "LC_ALL=pl_PL.UTF-8 gpg --gen-key" fails during confirmation as Resolved.
Apr 3 2017, 10:58 PM · Restricted Project, Debian, Bug Report, gnupg
werner closed T2959: with --tofu-default-policy=ask, Assertion "conflict_set" in get_trust failed (../../g10/tofu.c:2787) as Resolved.

Fix is in 2.1.20

Apr 3 2017, 10:46 PM · Restricted Project, Debian, Bug Report, gnupg
gniibe added a member for Debian: gniibe.
Apr 3 2017, 11:19 AM

Mar 31 2017

werner added a project to T2991: dirmngr unable to receive keys if only IPv6 DNS servers are set: g10code (gnupg-2.2).
Mar 31 2017, 3:12 PM · g10code (gnupg-2.2), Debian, Bug Report, gnupg, gnupg (gpg21), dirmngr

Mar 30 2017

admin created Debian.
Mar 30 2017, 6:42 PM

Mar 28 2017

justus added a comment to T3014: Intermittent crashes in gpgscm on s390x.

Yes, print *a was correct. Could you please do

  print *sc->load_stack[sc->file_i]->curr_line

there?

Mar 28 2017, 3:05 PM · Debian, Bug Report, gnupg
justus claimed T3014: Intermittent crashes in gpgscm on s390x.
Mar 28 2017, 3:05 PM · Debian, Bug Report, gnupg
dkg added a comment to T3014: Intermittent crashes in gpgscm on s390x.

I've now pulled from the current master head
(caf00915532e6e8e509738962964edcd14fb0654), rebuilt on zelenka with -O0 -g, and
triggered the error again, causing a core file to be dumped.

I copied gpgscm-gdb.py into tests/gpgscm/ , added it to add-auto-load-safe-path
in ~/.gdbinit, and then ran "gdb -c tests/gpgscm/core tests/gpgscm/gpgscm" and
tried to print a, as requested. here's what i got:

0 (sid_s390x-dchroot)dkg@zelenka:~/src/gnupg2/gnupg2/build$ echo
add-auto-load-safe-path
/home/dkg/src/gnupg2/gnupg2/build/tests/gpgscm/gpgscm-gdb.py > /home/dkg/.gdbinit
0 (sid_s390x-dchroot)dkg@zelenka:~/src/gnupg2/gnupg2/build$ gdb -c
tests/gpgscm/core ./tests/gpgscm/gpgscm

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later < GPL license >
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
< GDB Bugs >.
Find the GDB manual and other documentation resources online at:
< GDB Documentation >.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./tests/gpgscm/gpgscm...done.
[New LWP 7145]
Core was generated by `./gpgscm ../../../tests/gpgscm/t-child.scm'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000002aae4ecf748 in is_vector (p=0x4634508) at
../../../tests/gpgscm/scheme.c:220
220 INTERFACE INLINE int is_vector(pointer p) { return (type(p)==T_VECTOR); }
(gdb) bt
#0 0x000002aae4ecf748 in is_vector (p=0x4634508) at
../../../tests/gpgscm/scheme.c:220
#1 0x000002aae4ed3470 in vector_elem (vec=0x4634508, ielem=7) at
../../../tests/gpgscm/scheme.c:1349
#2 0x000002aae4ed975e in tailstack_flatten (sc=0x2ab046296f0,
tailstack=0x4634508, i=8, n=7, acc=0x2ab04629838) at
../../../tests/gpgscm/scheme.c:3117
#3 0x000002aae4ed99d4 in callstack_flatten (sc=0x2ab046296f0, i=8, n=7,
acc=0x2ab04629838) at ../../../tests/gpgscm/scheme.c:3155
#4 0x000002aae4ed9af0 in history_flatten (sc=0x2ab046296f0) at
../../../tests/gpgscm/scheme.c:3173
#5 0x000002aae4ed8488 in _Error_1 (sc=0x2ab046296f0, s=0x2aae4efe634 "eval:
unbound variable:", a=0x2ab0462bdd8) at ../../../tests/gpgscm/scheme.c:2777
#6 0x000002aae4eda162 in opexe_0 (sc=0x2ab046296f0, op=OP_EVAL) at
../../../tests/gpgscm/scheme.c:3298
#7 0x000002aae4ee3ef0 in Eval_Cycle (sc=0x2ab046296f0, op=OP_T0LVL) at
../../../tests/gpgscm/scheme.c:5358
#8 0x000002aae4ee5384 in scheme_load_named_file (sc=0x2ab046296f0,
fin=0x2ab04684f90, filename=0x2ab04684d80 "../../../tests/gpgscm/init.scm") at
../../../tests/gpgscm/scheme.c:5748
#9 0x000002aae4ec1ec6 in load (sc=0x2ab046296f0, file_name=0x2aae4efc7d4
"init.scm", lookup_in_cwd=0, lookup_in_path=1) at ../../../tests/gpgscm/main.c:180
#10 0x000002aae4ec22cc in main (argc=0, argv=0x3ffffe44e48) at
../../../tests/gpgscm/main.c:266
(gdb) up 5
#5 0x000002aae4ed8488 in _Error_1 (sc=0x2ab046296f0, s=0x2aae4efe634 "eval:
unbound variable:", a=0x2ab0462bdd8) at ../../../tests/gpgscm/scheme.c:2777
2777 history = history_flatten(sc);
(gdb) print a
$1 = (pointer) 0x2ab0462bdd8
(gdb) print *a
$2 = define-macro
(gdb)

maybe i'm doing something wrong? i'll ask and see whether i can give out an
account on the porterbox for you, justus.

Mar 28 2017, 2:34 PM · Debian, Bug Report, gnupg
dkg placed T3014: Intermittent crashes in gpgscm on s390x up for grabs.
Mar 28 2017, 2:34 PM · Debian, Bug Report, gnupg

Mar 27 2017

justus added a comment to T3014: Intermittent crashes in gpgscm on s390x.

Mar 27 2017, 12:45 PM · Debian, Bug Report, gnupg
justus added a comment to T3014: Intermittent crashes in gpgscm on s390x.

I have looked into this. I installed Debian on an s390 emulator (hercules), but
have been unable to reproduce the problem there, maybe due to the emulation (it
is quite slow on my system, and the gpgscm interpreter seems especially slow,
maybe because of the challenge of doing branch prediction on interpreters).

Your stack trace suggests a memory corruption early during the initialization
("init.scm", the standard library, is being loaded), we see an error being
generated due to an unbound variable (i.e. the environment hash table is
corrupted / does not perform as expected). Then we see a segfault while the
history buffer is flattened into a list for the error message (i.e. hints at a
corruption).

Unfortunately, memory corruption bugs are very hard to detect in gpgscm due to
its use of a custom memory allocator. The allocator allocates large segments
using malloc and hands out cells from that pool as necessary. However, memory
is never freed, so tools like valgrind can not be used to detect use-after-free,
or even most out-of-bounds accesses.

I have been working on the low-level allocator last week trying to make it more
debuggable and memory errors more detectable, e.g. by moving parts of the
interpreter into readonly sections.

As Werner said, a stack trace with less optimizations would be helpful. Also,
is the problem always the same if it happens? If so, it would be interesting to
know what kind of variable is unbound (for that, inspect the 'a' parameter of
'_Error_1' [I'm attaching a pretty-printer for gdb, with that, do 'print a']).

Access to the porter box would be helpful as well.

Mar 27 2017, 12:45 PM · Debian, Bug Report, gnupg

Mar 25 2017

werner assigned T3014: Intermittent crashes in gpgscm on s390x to justus.
Mar 25 2017, 8:47 AM · Debian, Bug Report, gnupg
werner updated subscribers of T3014: Intermittent crashes in gpgscm on s390x.
Mar 25 2017, 8:47 AM · Debian, Bug Report, gnupg