Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350670 - app-crypt/gnupg-2.0.16-r2 : gpg-agent crach at launch
Summary: app-crypt/gnupg-2.0.16-r2 : gpg-agent crach at launch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 12:48 UTC by Maxime BRACHET
Modified: 2011-01-05 18:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,3.76 KB, text/plain)
2011-01-05 13:16 UTC, Maxime BRACHET
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime BRACHET 2011-01-05 12:48:31 UTC
gpg-agent crash at launch with the following error :
# gpg-agent --daemon
*** longjmp causes uninitialized stack frame ***: gpg-agent terminated
Aborted


Reproducible: Always

Steps to Reproduce:
1.start gpg-agent --daemon
2.
3.

Actual Results:  
*** longjmp causes uninitialized stack frame ***: gpg-agent terminated
Aborted


bug reported on ubuntu (for ubuntu only it seems)
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/599862
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-01-05 12:57:10 UTC
1) Such bugs belong to the "Gentoo Linux" component. Please be sure to read the bugzilla descriptions next time.
2) Attach emerge --info
Comment 2 Maxime BRACHET 2011-01-05 13:16:39 UTC
Created attachment 258915 [details]
emerge --info

emerge --info result
Comment 3 Maxime BRACHET 2011-01-05 18:16:38 UTC
As explained in ubuntu bug, the problem come from dev-lib/pht and FORTIFY_SOURCE.
When adding -U_FORTIFY_SOURCE to CFLAGS and CXXFLAGS for compiling pht, gpg-agent work.

 eglibc should have getcontext() on ARM as it does on x86.
The lack of getcontext() caused pth to switch back to a setjmp() based implementation on ARM, which is broken on all architectures

I check fixed, but i think it need changes in eglibc to work in a good way.