Project

General

Profile

Bug #1020

getauxval fails to open /proc/pid/auxv file

Added by Alexander Zhukov over 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
-
Start date:
08/07/2015
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
Host OS:
Toolchain:
Android version:
CrystaX Version:

Description

Commit 189394b885e4b11e9f009fd2e434e6dc6696277b in platform/bionic add call to getauxval in sysconf function (see case with _SC_PAGE_SIZE).
With that call every device test fails with the message "CRYSTAX_PANI: can't open /proc/17695/auxv: Too many open files".
Sample log output is given below.

2015-08-06 10:30:34.449 UTC: RUN device test [crystax-test-getauxval] gcc4.9 +PIE: armeabi-v7a [1/1] android-22 'Nexus 4'
2015-08-06 10:30:34.449 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] LOCK (attempt #1): /tmp/ndk-zuav/tests/device/crystax-test-getauxval/target+PIE/libs/armeabi-v7a/test-getauxval
2015-08-06 10:30:34.449 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] START (attempt #1): /tmp/ndk-zuav/tests/device/crystax-test-getauxval/target+PIE/libs/armeabi-v7a/test-getauxval
2015-08-06 10:30:34.449 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] RUN: mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/tmp && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740 && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/data
2015-08-06 10:30:34.507 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] PUSH: /tmp/ndk-zuav/tests/device/crystax-test-getauxval/target+PIE/libs/armeabi-v7a/test-getauxval -> /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin/exe3499fbc4dd42455bbbdf89335769812e
2015-08-06 10:30:34.535 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] 2488 KB/s (9432 bytes in 0.003s)
2015-08-06 10:30:34.535 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] RUN: chmod 0755 /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin/exe3499fbc4dd42455bbbdf89335769812e
2015-08-06 10:30:34.567 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] PUSH: /tmp/ndk-zuav/tests/device/crystax-test-getauxval/target+PIE/libs/armeabi-v7a/libcrystax.so -> /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin/libcrystax.so
2015-08-06 10:30:34.717 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] 4057 KB/s (541244 bytes in 0.130s)
2015-08-06 10:30:34.717 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] RUN: chmod 0755 /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin/libcrystax.so
2015-08-06 10:30:34.769 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] RUN: log LOGCAT-TAG-07b3a0cb7a414d41926efb284587baa0 && cd /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin TMPDIR=/data/local/tmp/ndk-tests/armeabi-v7a/tmp ./exe3499fbc4dd42455bbbdf89335769812e
2015-08-06 10:30:34.897 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] > CRYSTAX_PANI: can't open /proc/17695/auxv: Too many open files
2015-08-06 10:30:34.901 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] > Aborted
2015-08-06 10:30:34.902 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] RUN [$?=134]: log LOGCAT-TAG-07b3a0cb7a414d41926efb284587baa0 && cd /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin TMPDIR=/data/local/tmp/ndk-tests/armeabi-v7a/tmp ./exe3499fbc4dd42455bbbdf89335769812e
2015-08-06 10:30:34.902 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] *
2015-08-06 10:30:34.902 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] *
2015-08-06 10:30:34.902 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === BEGIN OF LAUNCHER PARAMETERS ===
2015-08-06 10:30:34.902 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * ARGV: /tmp/ndk-zuav/tests/device/crystax-test-getauxval/target+PIE/libs/armeabi-v7a/test-getauxval
2015-08-06 10:30:34.903 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * PWD: /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740/bin
2015-08-06 10:30:34.972 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === END OF LAUNCHER PARAMETERS ===
2015-08-06 10:30:35.544 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] *
2015-08-06 10:30:35.544 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === BEGIN OF LOGCAT ===
2015-08-06 10:30:35.550 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === END OF LOGCAT ===
2015-08-06 10:30:35.569 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] *
2015-08-06 10:30:35.569 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === BEGIN OF NDK-STACK ===
2015-08-06 10:30:35.573 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] * === END OF NDK-STACK ===
2015-08-06 10:30:35.573 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] ## COMMAND: /opt/android/android-sdk-macosx/platform-tools/adb -s 04e294289bcc81f7 shell rm -r /data/local/tmp/ndk-tests/armeabi-v7a/fb1c8b49-a075-4ca8-82f3-057af1e9e740
2015-08-06 10:30:35.627 UTC: > ## ADBRUNNER.82585 [04e294289bcc81f7] EXIT: 134 (took 0:00:01)

Also available in: Atom PDF