Issue tracker: Issues
https://tracker.crystax.net/
https://tracker.crystax.net/favicon.ico?1535920027
2016-04-29T01:27:20Z
Issue tracker
Redmine
CrystaX NDK - Bug #1380 (Duplicated): SIGSEGV in libcrystax.so - lrint
https://tracker.crystax.net/issues/1380
2016-04-29T01:27:20Z
Chengyuan L.
<p>I know this is similar with one previous report Bug <a class="issue tracker-1 status-5 priority-4 priority-high2 closed" title="Bug: SIGSEGV in libcrystax.so - lrintf (Closed)" href="https://tracker.crystax.net/issues/1369">#1369</a>, however it is a different function lrint vs. lrintf.</p>
<p>I met this problem when I was trying to compile OpenCV, it compiles well but when library is loaded (from Java), in the initialization of some static variables, function lrint is called and program crashes. The tricky thing here is for OpenCV, this happens when the library is getting loaded rather than normal function call, leaving it hard to locate the actual problem.</p>
<p>Hope you can fix this bug soon, also hope this post will help whoever want to build OpenCV using Crystax (if any).</p>
CrystaX NDK - Task #1146 (Duplicated): Implement pthread_atfork()
https://tracker.crystax.net/issues/1146
2015-11-13T07:38:37Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #1113 (Duplicated): pthread_atfork() not defined for API levels < 21
https://tracker.crystax.net/issues/1113
2015-11-08T10:49:39Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #1107 (Duplicated): Standalone executables built with CrystaX 10.2.1 crash on M...
https://tracker.crystax.net/issues/1107
2015-11-06T13:43:22Z
Anonymous
<p>When building standalone executables with Crystax 10.2.1 and running these on an Android Marshmallow (API 23) emulator, they crash after the main() method returns. There's always one of two messages (non-deterministic):</p>
<p>Invalid address 0xb6eead84 passed to free: value not allocated<br>
Aborted</p>
<p>or</p>
<p>Segmentation fault<br>
</p>
<p>Here's my test program:</p>
<p>int main(int argc, char **argv) {}</p>
<p>I tested all combinations of the following:</p>
<ul>
<li>NDKs: Google, CrystaX</li>
<li>Compilers: gcc 4.8, gcc 4.9, clang 3.5, clang3.6</li>
<li>Archs: armv7-a, x86</li>
<li>STLs: gnustl, libcxx</li>
<li>Android emulator APIs: 22, 23</li>
</ul>
<p>All tests with Google's NDK or with Android 22 were fine, but all tests combining CrystaX and Android 23 showed the error.</p>
<p>I added my test scripts as an attachment. You use them as follows:</p>
<ul>
<li>extract CrystaX NDK and the official Android NDK to /opt/crystax-ndk and /opt/android-ndk</li>
<li>change to the testproject dir from my tarball</li>
<li>./make-toolchains.sh # this takes around 12 GB of space!</li>
<li>./buildall.sh</li>
<li>start an emulator (armv7-a or x86)</li>
<li>adb push PATH_TO_LIB/libcrystax.so /data/local/tmp</li>
<li>./runall.sh x86 # or ./runall.sh armeabi-v7a</li>
</ul>
<p>You will get the following output for API 23 x86:</p>
<p>minimal-android-x86-4.8-gnustl<br>
141 KB/s (6060 bytes in 0.041s)<br>
Success</p>
<p>minimal-android-x86-4.8-libcxx<br>
140 KB/s (6060 bytes in 0.042s)<br>
Success</p>
<p>minimal-android-x86-4.9-gnustl<br>
143 KB/s (6100 bytes in 0.041s)<br>
Success</p>
<p>minimal-android-x86-4.9-libcxx<br>
142 KB/s (6100 bytes in 0.041s)<br>
Success</p>
<p>minimal-android-x86-clang3.5-gnustl<br>
141 KB/s (6060 bytes in 0.041s)<br>
Success</p>
<p>minimal-android-x86-clang3.5-libcxx<br>
141 KB/s (6060 bytes in 0.041s)<br>
Success</p>
<p>minimal-android-x86-clang3.6-gnustl<br>
140 KB/s (6060 bytes in 0.042s)<br>
Success</p>
<p>minimal-android-x86-clang3.6-libcxx<br>
138 KB/s (6060 bytes in 0.042s)<br>
Success</p>
<p>minimal-crystax-x86-4.8-gnustl<br>
140 KB/s (6024 bytes in 0.042s)<br>
Invalid address 0xb7647480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-4.8-libcxx<br>
139 KB/s (6024 bytes in 0.042s)<br>
Invalid address 0xb768d480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-4.9-gnustl<br>
142 KB/s (6008 bytes in 0.041s)<br>
Invalid address 0xb75d0480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-4.9-libcxx<br>
140 KB/s (6008 bytes in 0.041s)<br>
Invalid address 0xb75d5480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-clang3.5-gnustl<br>
140 KB/s (6024 bytes in 0.041s)<br>
Invalid address 0xb75d9480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-clang3.5-libcxx<br>
140 KB/s (6024 bytes in 0.041s)<br>
Segmentation fault <br>
Failed</p>
<p>minimal-crystax-x86-clang3.6-gnustl<br>
3 KB/s (6024 bytes in 1.500s)<br>
Invalid address 0xb7648480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
<p>minimal-crystax-x86-clang3.6-libcxx<br>
138 KB/s (6024 bytes in 0.042s)<br>
Invalid address 0xb75fa480 passed to free: value not allocated<br>
Aborted <br>
Failed</p>
CrystaX NDK - Bug #1030 (Duplicated): Sporadic fail of crystax-test-pthread
https://tracker.crystax.net/issues/1030
2015-08-25T09:22:43Z
Dmitry M.
dm@crystax.net
<p>2015-08-25 05:39:09.523 UTC: RUN device test [crystax-test-pthread] clang3.6 +PIE: armeabi-v7a [25/27] android-19 'emulator-5558'<br>
2015-08-25 05:39:09.523 UTC: > ## ADBRUNNER.21963 [emulator-5558] LOCK (attempt #1): /tmp/ndk-tests-ubuntu14.04-x86/clang3.6/device/crystax-test-pthread/target+PIE/libs/armeabi-v7a/test-conformance-interfaces-pthread_attr_setdetachstate-2-1<br>
2015-08-25 05:39:09.524 UTC: > ## ADBRUNNER.21963 [emulator-5558] START (attempt #1): /tmp/ndk-tests-ubuntu14.04-x86/clang3.6/device/crystax-test-pthread/target+PIE/libs/armeabi-v7a/test-conformance-interfaces-pthread_attr_setdetachstate-2-1<br>
2015-08-25 05:39:09.524 UTC: > ## ADBRUNNER.21963 [emulator-5558] RUN: mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/tmp && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23 && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin && mkdir -p /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/data<br>
2015-08-25 05:39:09.684 UTC: > ## ADBRUNNER.21963 [emulator-5558] PUSH: /tmp/ndk-tests-ubuntu14.04-x86/clang3.6/device/crystax-test-pthread/target+PIE/libs/armeabi-v7a/test-conformance-interfaces-pthread_attr_setdetachstate-2-1 -> /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin/exec8090d0143bc432daa603b5ccdbb505a<br>
2015-08-25 05:39:09.828 UTC: > ## ADBRUNNER.21963 [emulator-5558] 235 KB/s (13612 bytes in 0.056s)<br>
2015-08-25 05:39:09.829 UTC: > ## ADBRUNNER.21963 [emulator-5558] RUN: chmod 0755 /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin/exec8090d0143bc432daa603b5ccdbb505a<br>
2015-08-25 05:39:09.971 UTC: > ## ADBRUNNER.21963 [emulator-5558] PUSH: /tmp/ndk-tests-ubuntu14.04-x86/clang3.6/device/crystax-test-pthread/target+PIE/libs/armeabi-v7a/libcrystax.so -> /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin/libcrystax.so<br>
2015-08-25 05:39:10.319 UTC: > ## ADBRUNNER.21963 [emulator-5558] 2257 KB/s (582356 bytes in 0.251s)<br>
2015-08-25 05:39:10.319 UTC: > ## ADBRUNNER.21963 [emulator-5558] RUN: chmod 0755 /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin/libcrystax.so<br>
2015-08-25 05:39:10.576 UTC: > ## ADBRUNNER.21963 [emulator-5558] RUN: log LOGCAT-TAG-0d8e2787fbea4c9ab015866c58ac859a && cd /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin TMPDIR=/data/local/tmp/ndk-tests/armeabi-v7a/tmp ./exec8090d0143bc432daa603b5ccdbb505a<br>
2015-08-25 05:39:10.874 UTC: > ## ADBRUNNER.21963 [emulator-5558] > Test FAILED<br>
2015-08-25 05:39:10.897 UTC: > ## ADBRUNNER.21963 [emulator-5558] RUN [$?=1]: log LOGCAT-TAG-0d8e2787fbea4c9ab015866c58ac859a && cd /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin && LD_LIBRARY_PATH=/data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin TMPDIR=/data/local/tmp/ndk-tests/armeabi-v7a/tmp ./exec8090d0143bc432daa603b5ccdbb505a<br>
2015-08-25 05:39:10.915 UTC: > ## ADBRUNNER.21963 [emulator-5558] *<br>
2015-08-25 05:39:10.915 UTC: > ## ADBRUNNER.21963 [emulator-5558] *<br>
2015-08-25 05:39:10.915 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === BEGIN OF LAUNCHER PARAMETERS ===<br>
2015-08-25 05:39:10.915 UTC: > ## ADBRUNNER.21963 [emulator-5558] * ARGV: /tmp/ndk-tests-ubuntu14.04-x86/clang3.6/device/crystax-test-pthread/target+PIE/libs/armeabi-v7a/test-conformance-interfaces-pthread_attr_setdetachstate-2-1<br>
2015-08-25 05:39:10.915 UTC: > ## ADBRUNNER.21963 [emulator-5558] * PWD: /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23/bin<br>
2015-08-25 05:39:10.916 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === END OF LAUNCHER PARAMETERS ===<br>
2015-08-25 05:39:14.220 UTC: > ## ADBRUNNER.21963 [emulator-5558] *<br>
2015-08-25 05:39:14.220 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === BEGIN OF LOGCAT ===<br>
2015-08-25 05:39:14.220 UTC: > ## ADBRUNNER.21963 [emulator-5558] * 08-25 01:39:12.219 381 456 D MobileDataStateTracker: default: setPolicyDataEnable(enabled=true)<br>
2015-08-25 05:39:14.220 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === END OF LOGCAT ===<br>
2015-08-25 05:39:14.259 UTC: > ## ADBRUNNER.21963 [emulator-5558] *<br>
2015-08-25 05:39:14.259 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === BEGIN OF NDK-STACK ===<br>
2015-08-25 05:39:14.279 UTC: > ## ADBRUNNER.21963 [emulator-5558] * === END OF NDK-STACK ===<br>
2015-08-25 05:39:14.286 UTC: > ## ADBRUNNER.21963 [emulator-5558] ## COMMAND: /tmp/adb/adb -s emulator-5558 shell rm -r /data/local/tmp/ndk-tests/armeabi-v7a/3118b9ab-53db-4282-bfd5-4789d0e9fc23<br>
2015-08-25 05:39:14.486 UTC: > ## ADBRUNNER.21963 [emulator-5558] EXIT: 1 (took 0:00:40)<br>
2015-08-25 05:39:14.487 UTC: ---> FAILURE: TARGET TEST [test-conformance-interfaces-pthread_attr_setdetachstate-2-1: $?=1]</p>
CrystaX NDK - Bug #921 (Duplicated): swap16, swap32 not in gnu-libstdc++
https://tracker.crystax.net/issues/921
2015-04-08T15:20:28Z
Adrien B.
adrien.beraud@savoirfairelinux.com
<p>I tried to use crystax as a drop-in replacement to build our project.</p>
<p>A dependency of our project is GnuTLS 3.3, Using the vanilla NDK, GnuTLS compiles and links fine.<br>
With CrystaX, GnuTLS compiles successfully, however when linking with it the following error happens:</p>
<p>libtool: link: arm-linux-androideabi-g++ --sysroot=/home/adrien/crystax-ndk-10.1.0/platforms/android-15/arch-arm -g -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -O2 -DHAVE_PTHREADS -I/home/adrien/crystax-ndk-10.1.0/sources/cxx-stl/gnu-libstdc++/4.9/include -I/home/adrien/crystax-ndk-10.1.0/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -DNDEBUG -I/home/adrien/sfl/ring-client-android/ring/contrib/arm-linux-androideabi/include -g -g -fPIC -O3 -std=c++11 -march=armv7-a -Wl,--fix-cortex-a8 -o dhtnode dhtnode.o /home/adrien/sfl/ring-client-android/ring/contrib/native/opendht/src/.libs/libopendht.a -L/home/adrien/crystax-ndk-10.1.0/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/home/adrien/sfl/ring-client-android/ring/contrib/arm-linux-androideabi/lib -L../src/.libs /home/adrien/sfl/ring-client-android/ring/contrib/arm-linux-androideabi/lib/libgnutls.a -lnettle -lhogweed -lz /home/adrien/sfl/ring-client-android/ring/contrib/arm-linux-androideabi/lib/libgmp.a -lgnustl_static<br>
./gnutls_num.h:87: error: undefined reference to 'swap32'<br>
./gnutls_num.h:111: error: undefined reference to 'swap32'<br>
./gnutls_num.h:130: error: undefined reference to 'swap16'<br>
./gnutls_num.h:102: error: undefined reference to 'swap32'<br>
./../gnutls_num.h:102: error: undefined reference to 'swap32'<br>
./../gnutls_num.h:121: error: undefined reference to 'swap16'<br>
./../gnutls_num.h:121: error: undefined reference to 'swap16'<br>
./../gnutls_num.h:130: error: undefined reference to 'swap16'<br>
collect2: error: ld returned 1 exit status</p>
CrystaX NDK - Bug #704 (Duplicated): Build of samples/hello-neon failed for clang 3.4
https://tracker.crystax.net/issues/704
2014-10-03T00:33:16Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #698 (Duplicated): Build of tests/device/crystax-issue-350-copy-with-zone faile...
https://tracker.crystax.net/issues/698
2014-10-02T23:23:50Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #695 (Duplicated): Build of tests/device/b8708181-Vector4 failed
https://tracker.crystax.net/issues/695
2014-10-02T22:27:42Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #693 (Duplicated): Build of test tests/device/test-stlport-rtti failed
https://tracker.crystax.net/issues/693
2014-10-02T18:30:44Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #690 (Duplicated): Build of test tests/device/test-googletest-stlport failed
https://tracker.crystax.net/issues/690
2014-10-02T18:25:05Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #689 (Duplicated): Build of test tests/device/test-gnustl_shared-exception failed
https://tracker.crystax.net/issues/689
2014-10-02T18:22:51Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #688 (Duplicated): Build of test tests/device/issue35933-lambda failed
https://tracker.crystax.net/issues/688
2014-10-02T18:22:23Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #687 (Duplicated): Build of test tests/device/issue22165-typeinfo failed
https://tracker.crystax.net/issues/687
2014-10-02T18:22:03Z
Dmitry M.
dm@crystax.net
CrystaX NDK - Bug #686 (Duplicated): Build of test tests/device/issue20176-__gnu_Unwind_Find_exid...
https://tracker.crystax.net/issues/686
2014-10-02T18:21:35Z
Dmitry M.
dm@crystax.net