Page MenuHome GnuPG
Feed Advanced Search

Apr 5 2017

gniibe added a comment to T2886: nPth often needs -lpthread but does not detect this.

I found that FreeBSD also requires -lpthread thing. I also commit the change to the repo.
Tested with FreeBSD 11.0.
I think that TrueOS can be considered as FreeBSD variant.

Apr 5 2017, 8:34 AM · In Progress, Bug Report, npth
gniibe added a project to T2886: nPth often needs -lpthread but does not detect this: In Progress.

Fixed in the repo for DragonFlyBSD 4.8 too.

Apr 5 2017, 7:44 AM · In Progress, Bug Report, npth
gniibe added a comment to T2886: nPth often needs -lpthread but does not detect this.

In T2998, NetBSD was fixed.
I'll check for DragonFlyBSD.
IIUC, FreeBSD and OpenBSD has no issue.

Apr 5 2017, 5:21 AM · In Progress, Bug Report, npth
gniibe added a project to T2998: link error in tests on NetBSD: In Progress.

It works for me on NetBSD 7.1. Please test.

Apr 5 2017, 5:02 AM · In Progress, Bug Report, npth
gniibe lowered the priority of T2998: link error in tests on NetBSD from High to Normal.
Apr 5 2017, 4:52 AM · In Progress, Bug Report, npth
gniibe added a comment to T2998: link error in tests on NetBSD.

I tested with NetBSD 7.1 and -lrt is not required.
Nevertheless, it would be required for older NetBSD, so I leave -lrt check for NetBSD.
I'm going to push the change of D415 now.

Apr 5 2017, 4:51 AM · In Progress, Bug Report, npth

Apr 4 2017

gniibe claimed T2886: nPth often needs -lpthread but does not detect this.

Could you please look at https://dev.gnupg.org/T2998 ?

Apr 4 2017, 3:15 AM · In Progress, Bug Report, npth

Mar 30 2017

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

Mar 28 2017

gniibe added a comment to T2998: link error in tests on NetBSD.

I think that NetBSD also defines single thread version of pthread_* functions in
libc.
How about attached patch in configure.ac?
(You need to generate configure)

Mar 28 2017, 7:31 AM · In Progress, Bug Report, npth
gniibe added a comment to T2998: link error in tests on NetBSD.

D415: 990_npth-netbsd-20170328.diff

Mar 28 2017, 7:31 AM · In Progress, Bug Report, npth
gniibe added a comment to T2998: link error in tests on NetBSD.

It seems that -lrt is required on NetBSD.

Mar 28 2017, 6:28 AM · In Progress, Bug Report, npth

Mar 22 2017

werner added a comment to T2998: link error in tests on NetBSD.

Oh yes, then we should include NetBSD at least into the nPth and libgpg-error
builds.

Mar 22 2017, 1:05 PM · In Progress, Bug Report, npth
wiz added a comment to T2998: link error in tests on NetBSD.

NetBSD has its own pthread library (different from OpenBSD and FreeBSD), so I
think this would be a good idea.

Mar 22 2017, 12:49 PM · In Progress, Bug Report, npth
werner added a comment to T2998: link error in tests on NetBSD.

Our jenkins has no problems building nPth for OpenBSD 6.0.
wiz: Do you think that NetBSD (x86 I assume) is much different than OpenBSD so
that we would benefit from adding NetBSD to our Jenkins builds?

Mar 22 2017, 12:41 PM · In Progress, Bug Report, npth
werner updated subscribers of T2998: link error in tests on NetBSD.
Mar 22 2017, 12:37 PM · In Progress, Bug Report, npth
werner assigned T2998: link error in tests on NetBSD to gniibe.
Mar 22 2017, 12:37 PM · In Progress, Bug Report, npth
werner added a comment to T2998: link error in tests on NetBSD.

gniibe: Do you have time to look into this?

Mar 22 2017, 12:37 PM · In Progress, Bug Report, npth

Mar 16 2017

wiz added projects to T2998: link error in tests on NetBSD: npth, Bug Report.
Mar 16 2017, 4:07 PM · In Progress, Bug Report, npth

Dec 22 2016

werner added projects to T2886: nPth often needs -lpthread but does not detect this: npth, Bug Report.
Dec 22 2016, 11:51 AM · In Progress, Bug Report, npth

Nov 30 2016

gniibe closed T2260: npth resource locking not working on AIX as Resolved.
Nov 30 2016, 2:36 AM · Bug Report, npth
gniibe added a comment to T2260: npth resource locking not working on AIX.

Fixed in 1.3.

Nov 30 2016, 2:36 AM · Bug Report, npth

Nov 28 2016

werner closed T2842: npth_init called too late in gpg-agent? as Resolved.
Nov 28 2016, 10:19 AM · gnupg, Bug Report, npth

Nov 24 2016

mazhe reopened T2842: npth_init called too late in gpg-agent? as "Open".
Nov 24 2016, 4:21 PM · gnupg, Bug Report, npth
mazhe added a comment to T2842: npth_init called too late in gpg-agent?.

Indeed, I confirm that the newly updated version 2.1.16 fix this issue, thanks a
lot for doing this portability work!

Nov 24 2016, 4:21 PM · gnupg, Bug Report, npth

Nov 20 2016

werner added a comment to T2842: npth_init called too late in gpg-agent?.

It has been confirmed that 2.1.16 solves the problem.

The reason for the crash is that 2.1.15 is calling gpgrt_set_syscall_clamp
before nPth is initialized. The nPth initialization was changed in 2.1.15 so to
solve problems on some other platforms.

Nov 20 2016, 5:17 PM · gnupg, Bug Report, npth
werner closed T2842: npth_init called too late in gpg-agent? as Resolved.
Nov 20 2016, 5:17 PM · gnupg, Bug Report, npth

Nov 17 2016

werner added projects to T2842: npth_init called too late in gpg-agent?: npth, gnupg.
Nov 17 2016, 8:28 PM · gnupg, Bug Report, npth

Jun 21 2016

gniibe added a comment to T2260: npth resource locking not working on AIX.

uldis: Thanks for your comment. Let me show my opinion.
There are three ways (at least) to create a semaphore.
Each has different semantics, how it can be shared among different processes.

(1) sem_init with pshared=0: Not shared among processes
(2) sem_init with pshared=1: Shared among children processes of particular parent
(3) sem_open: Shared among any processes (with relevant permission)

For AIX, npth doesn't work well with (1). You suggested (3), while I proposed (2).
It is true that (2) and (3) would open up some attack vector(s),
but I believe that (2) is smaller, if any.

Jun 21 2016, 3:07 AM · Bug Report, npth

May 3 2016

uldis added a comment to T2260: npth resource locking not working on AIX.

Sorry, I might be wrong about in previous comment. I am not sure if pshareds=1
opens up some vulnerability hole.

May 3 2016, 11:57 AM · Bug Report, npth
uldis added a comment to T2260: npth resource locking not working on AIX.

pshared=1 will not work on AIX for FORKED processes. It works only for threads.

May 3 2016, 11:44 AM · Bug Report, npth
gniibe claimed T2260: npth resource locking not working on AIX.
May 3 2016, 11:05 AM · Bug Report, npth
gniibe added a comment to T2260: npth resource locking not working on AIX.

Thank you.
I think that it's better to use sem_init with pshared=1.
I'm sending my proposal patch to gnupg-devel.

May 3 2016, 11:05 AM · Bug Report, npth

Feb 17 2016

uldis added a comment to T2260: npth resource locking not working on AIX.

D361: 779_npth_broken_sem_init.patch

Feb 17 2016, 12:11 PM · Bug Report, npth
uldis set Version to 1.2 on T2260: npth resource locking not working on AIX.
Feb 17 2016, 12:11 PM · Bug Report, npth
uldis added projects to T2260: npth resource locking not working on AIX: npth, Bug Report.
Feb 17 2016, 12:11 PM · Bug Report, npth

Dec 22 2015

Mario set Version to 1.2 on T2202: struct timespec is already defined in MINGW32.
Dec 22 2015, 5:03 PM · In Progress, Bug Report, Windows, npth
Mario added projects to T2202: struct timespec is already defined in MINGW32: npth, Windows 32, Windows, Windows 64, Bug Report.
Dec 22 2015, 5:03 PM · In Progress, Bug Report, Windows, npth

Nov 18 2015

neal removed a project from T1865: Cannot test nPth library: Info Needed.
Nov 18 2015, 2:19 PM · Bug Report, npth
neal added a comment to T1865: Cannot test nPth library.

Given how long it has been since this bug was reported, the request for more
information and the lack of response, I'm going to mark this issue as resolved.

Nov 18 2015, 2:19 PM · Bug Report, npth
neal closed T1865: Cannot test nPth library as Resolved.
Nov 18 2015, 2:19 PM · Bug Report, npth

Mar 10 2015

werner added a project to T1865: Cannot test nPth library: Info Needed.
Mar 10 2015, 9:10 AM · Bug Report, npth
werner added a comment to T1865: Cannot test nPth library.

We need more information to triage this bug.

Mar 10 2015, 9:10 AM · Bug Report, npth

Mar 5 2015

JW added projects to T1865: Cannot test nPth library: npth, Bug Report.
Mar 5 2015, 2:09 AM · Bug Report, npth

Feb 19 2014

werner closed T1576: pthread_atfork() does not work in Android as Resolved.
Feb 19 2014, 1:36 PM · Bug Report, npth
werner removed a project from T1576: pthread_atfork() does not work in Android: In Progress.
Feb 19 2014, 1:36 PM · Bug Report, npth

Dec 10 2013

werner closed T1197: Cannot be made thread-safe when used by a library as Resolved.
Dec 10 2013, 3:07 PM · Too Old, Won't Fix, npth, libgcrypt, Feature Request
werner added a comment to T1197: Cannot be made thread-safe when used by a library.

Libgcrypt 1.6 will be released this year.

Dec 10 2013, 3:07 PM · Too Old, Won't Fix, npth, libgcrypt, Feature Request
werner added projects to T1197: Cannot be made thread-safe when used by a library: Won't Fix, Too Old.
Dec 10 2013, 3:07 PM · Too Old, Won't Fix, npth, libgcrypt, Feature Request
werner removed a project from T1197: Cannot be made thread-safe when used by a library: Stalled.
Dec 10 2013, 3:07 PM · Too Old, Won't Fix, npth, libgcrypt, Feature Request
gniibe added a project to T1576: pthread_atfork() does not work in Android: In Progress.
Dec 10 2013, 1:07 AM · Bug Report, npth
gniibe claimed T1576: pthread_atfork() does not work in Android.
Dec 10 2013, 1:07 AM · Bug Report, npth
gniibe added a comment to T1576: pthread_atfork() does not work in Android.

Fixed in the git master branch.

Dec 10 2013, 1:07 AM · Bug Report, npth

Dec 7 2013

HansChristophSteiner added a comment to T1576: pthread_atfork() does not work in Android.

Even if that function is never called on Android, it will need to be #ifdefed out
in order for that code to build for Android. Right now, linking fails because it
can't find the symbol pthread_atfork.

Dec 7 2013, 9:37 PM · Bug Report, npth
gniibe added a comment to T1576: pthread_atfork() does not work in Android.

Thanks for information (Note: I don't have experiences for Android).
I realized that fork/exec is basically not supported for applications on
Android.
If this were true, it makes sense to ifdef-out the calls to pthread_atfork for
Android.

The reason why we need to call pthread_atfork is to reset signal mask for
executable fork/exec-ed by the program. We had a bug which stoped killing
pinentry (which was fork/exec-ed by gpg-agent).

Dec 7 2013, 6:06 AM · Bug Report, npth

Dec 6 2013

HansChristophSteiner added a comment to T1576: pthread_atfork() does not work in Android.

Its also not in any headers in the NDK:

$ grep atfork /opt/android-ndk/platforms/android-*/arch-arm/usr/include/*.h
$ grep atfork /opt/android-ndk/platforms/android-*/arch-arm/usr/include/*/*.h
$

Dec 6 2013, 2:23 AM · Bug Report, npth
HansChristophSteiner removed projects from T1576: pthread_atfork() does not work in Android: Stalled, Feature Request.
Dec 6 2013, 2:21 AM · Bug Report, npth
HansChristophSteiner added a project to T1576: pthread_atfork() does not work in Android: Bug Report.
Dec 6 2013, 2:21 AM · Bug Report, npth
HansChristophSteiner added a comment to T1576: pthread_atfork() does not work in Android.

Bad news, though that .c/.cpp file exists, it does not seem to get built into
Android. I have tried building against android-14, which is after that file was
introduces, and no luck. I also tried looking for it in the libs, and its not
in the .so or .a libs. Running this gives me nothing:

$ strings /opt/android-ndk/platforms/android-*/arch-arm/usr/lib/* | grep atfork

Dec 6 2013, 2:21 AM · Bug Report, npth

Dec 5 2013

HansChristophSteiner removed a project from T1576: pthread_atfork() does not work in Android: Bug Report.
Dec 5 2013, 6:03 PM · Bug Report, npth
HansChristophSteiner added a comment to T1576: pthread_atfork() does not work in Android.

we've decided to suspend support for older versions on Android, so we can leave
this as is for now, any maybe forever. We want to support older versions, but
its more work than we can handle. Patches are welcome though, if anyone wants
to add back support for Android versions old than android-14/4.0/Ice Cream Sandwich.

Dec 5 2013, 6:03 PM · Bug Report, npth
HansChristophSteiner added projects to T1576: pthread_atfork() does not work in Android: Feature Request, Stalled.
Dec 5 2013, 6:03 PM · Bug Report, npth
HansChristophSteiner added a comment to T1576: pthread_atfork() does not work in Android.

It looks like pthread_atfork() was not added to bionic libc[1] until after
android-10/v2.3.6/Gingerbread. That excludes 1/4 of current Google Android
users, and probably more of unoffical Android users.[4] To target older
versions of Android, you either have to include pthread-atfork.c[2] or the newer
[pthread_atfork.cpp][3] in your project, or not use pthread_atfork() at all.
We might be able to manage including pthread-atfork.c, but it could be ugly.

[1]:

https://android.googlesource.com/platform/bionic.git/+/4f086aeb4aa06e13079b7fec71a8178ceeacf318

[2]:

https://android.googlesource.com/platform/bionic.git/+/android-4.0.1_r1/libc/bionic/pthread-atfork.c

[3]:

https://android.googlesource.com/platform/bionic.git/+/master/libc/bionic/pthread_atfork.cpp

[3]: https://developer.android.com/about/dashboards/index.html
Dec 5 2013, 5:41 PM · Bug Report, npth
gniibe added a comment to T1576: pthread_atfork() does not work in Android.

I checked the source code of Bionic libc. There is the function defined:
https://github.com/android/platform_bionic/blob/master/libc/bionic/pthread_atfork.
cpp

Is it compile time option not including this function?

Dec 5 2013, 7:48 AM · Bug Report, npth

Dec 4 2013

HansChristophSteiner set Version to 9a3377bb534654ec398300c1900350b02321f86c on T1576: pthread_atfork() does not work in Android.
Dec 4 2013, 6:15 AM · Bug Report, npth
HansChristophSteiner added projects to T1576: pthread_atfork() does not work in Android: npth, Bug Report.
Dec 4 2013, 6:15 AM · Bug Report, npth

Jun 29 2011

werner added a project to T1197: Cannot be made thread-safe when used by a library: Stalled.
Jun 29 2011, 10:04 AM · Too Old, Won't Fix, npth, libgcrypt, Feature Request
werner added a comment to T1197: Cannot be made thread-safe when used by a library.

We will address this in 1.6. At least for ELF systems supporting the weak
pragma and for W32.

Jun 29 2011, 10:04 AM · Too Old, Won't Fix, npth, libgcrypt, Feature Request

Feb 21 2011

werner added a project to T1197: Cannot be made thread-safe when used by a library: npth.
Feb 21 2011, 3:02 PM · Too Old, Won't Fix, npth, libgcrypt, Feature Request

Jan 20 2011

werner added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

Fixed in commit 62842cc for gnupg master (2.1)

Jan 20 2011, 3:27 PM · Bug Report, dirmngr

Jan 19 2011

werner added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

Hmmm, I'll do a test tomorrow.

Jan 19 2011, 7:38 PM · Bug Report, dirmngr
marcus added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

FWIW, pth_connect is part of the regular interface.

Jan 19 2011, 6:48 PM · Bug Report, dirmngr
bernhard added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

It is okay for one request to take a long time or possibly even to block.
But it is not okay, if other, simultaniously made requests are blocked to wait
for this slow request. Especially if those parallel requests could be answered
easily and quickly, like ping.

Jan 19 2011, 5:42 PM · Bug Report, dirmngr
werner added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

If you ask to download a large CRL and the server is slow it takes time. If you
download a webpage with a lager image and the server is slow it takes time. The
solution is to cancel the request.

Jan 19 2011, 4:51 PM · Bug Report, dirmngr
bernhard added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

To me this, issue makes dirmngr unsuitable as a system service
and it currently allows denail of service attacks on gpgsm based email
applications.

Jan 19 2011, 9:37 AM · Bug Report, dirmngr
werner added a comment to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail.

Fwiw, the name of the new thread implementation will be npth.

Jan 19 2011, 9:08 AM · Bug Report, dirmngr
werner added a project to T1313: dirmngr unresponsive when waiting for some http CRL connect() -> ping and other requests fail: npth.
Jan 19 2011, 9:08 AM · Bug Report, dirmngr