Android gpg-agent crashes in libgcrypt when signing, decrypting, importing secret keys

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Jan 30 16:43:25 CET 2014


On 30.01.2014 00:59, Hans-Christoph Steiner wrote:
> 
> 
> On 01/28/2014 05:48 PM, Werner Koch wrote:
>> On Tue, 28 Jan 2014 20:41, hans at guardianproject.info said:
>>
>>> I don't know if you saw this, but the current builds have these ./configure
>>> flags in them:
>>> --disable-padlock-support --disable-drng-support --disable-neon-support.  The
>>
>> FWIW: --disable-neon-support was not working until I fixed that in
>> master this afternoon.
> 
> That was very helpful!  Now all the tests so far pass on the emulator.

Good news.

> The
> problem is that is has gotten stuck on libgcrypt/tests/random for over an
> hour.  Its stuck here:
> 
> random: now running with options '--early-rng-check --prefer-system-rng'
> random: checking whether RNG type switching works in the early stage
> random: checking whether RNG type switching works
> random: now running with options '--prefer-standard-rng'
> random: checking whether RNG type switching works
> random: now running with options '--prefer-fips-rng'
> random: checking whether RNG type switching works
> 
> The full test log is attached, the build log is here:
> https://dev.guardianproject.info/attachments/download/1138/gpga-build_with-working---disable-neon-support.txt.bz2
> 
> It would be great to also continue to debug the NEON support, since it'll make
> a huge difference on Android devices.  I think this change above confirms that
> the process is working properly, sounds like the next step is getting Jussi
> setup with an Android SDK/NDK and emulator.  I'm happy to help with that
> process, it shouldn't take longer than an hour.  In my experience, it
> generally much easier to do on Debian/Ubuntu.

I setup SDK&NDK yesterday and managed to build 'make -C external/' and ndk-build stages.

ant clean debug fails with:
<snip>
 debug:

 -code-gen:
 [mergemanifest] Merging AndroidManifest files into one.
 [mergemanifest] Manifest merger disabled. Using project manifest only.
      [echo] Handling aidl files...
      [aidl] No AIDL files to compile.
      [echo] ----------
      [echo] Handling RenderScript files...
      [echo] ----------
      [echo] Handling Resources...
      [aapt] Generating resource IDs...
      [aapt] /home/jussi/kernel/gnupg-for-android/res/layout/first_run_setup_activity.xml:21: error: No resource identifier found for attribute 'textAlignment' in package 'android'
      [aapt] /home/jussi/kernel/gnupg-for-android/res/layout/first_run_welcome_activity.xml:22: error: No resource identifier found for attribute 'textAlignment' in package 'android'
      [aapt] /home/jussi/kernel/gnupg-for-android/res/layout/first_run_welcome_activity.xml:37: error: No resource identifier found for attribute 'textAlignment' in package 'android'
      [aapt] aapt: warning: string 'dialog_share_file_using' has no default translation in /home/jussi/kernel/gnupg-for-android/libs/appcompat/res; found: cs de es pl

 BUILD FAILED
 /home/jussi/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
 /home/jussi/android-sdk-linux/tools/ant/build.xml:698: null returned: 1

 Total time: 3 seconds

I'll look more closely at this on weekend.

-Jussi

> 
> .hc
> 




More information about the Gnupg-devel mailing list