https://tracker.crystax.net/
https://tracker.crystax.net/favicon.ico?1535920027
2017-02-20T15:30:59Z
Issue tracker
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=3923
2017-02-20T15:30:59Z
Dmitry S.
shatilov.diman@gmail.com
<ul></ul><p>I/com.sample.hello_android(13272): Pre-load native libraries has complited<br>
F/com.sample.hello_android(13272): [13292]: !!!!!!!11111111111<br>
F/libc (13272): Fatal signal 11 (SIGSEGV), code 2, fault addr 0x4a3a3ffc in tid 13292 (e.hello_android)<br>
I/DEBUG ( 116): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***<br>
I/DEBUG ( 116): Build fingerprint: 'samsung/espresso10wifixx/espresso10wifi:4.2.2/JDQ39/P5110XXDML1:user/release-keys'<br>
I/DEBUG ( 116): Revision: '9'<br>
I/DEBUG ( 116): ABI: 'arm'<br>
I/DEBUG ( 116): pid: 13272, tid: 13292, name: e.hello_android >>> com.sample.hello_android <<<<br>
I/DEBUG ( 116): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x4a3a3ffc<br>
I/DEBUG ( 116): Abort message: '[13292]: !!!!!!!11111111111'<br>
I/DEBUG ( 116): r0 00000000 r1 00000007 r2 60000000 r3 4a3a3ffc<br>
I/DEBUG ( 116): r4 4a3a3ffc r5 4a3a4014 r6 4a0e6bec r7 4a28cd8c<br>
I/DEBUG ( 116): r8 4a4a0948 r9 4a4a0900 sl 4a4a0938 fp 4a4a0930<br>
I/DEBUG ( 116): ip 4744c51c sp 4a3a3ff8 lr 473e2324 pc 473e21c4 cpsr 600f0010<br>
I/DEBUG ( 116):<br>
I/DEBUG ( 116): backtrace:<br>
I/DEBUG ( 116): #00 pc 0001e1c4 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (fegetenv+12)<br>
I/DEBUG ( 116): #01 pc 0001e320 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (feholdexcept+20)<br>
I/DEBUG ( 116): #02 pc 00072934 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+20)<br>
I/DEBUG ( 116): #03 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #04 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #05 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #06 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #07 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #08 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #09 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #10 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #11 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #12 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #13 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #14 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #15 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #16 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #17 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #18 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #19 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #20 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #21 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #22 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #23 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #24 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #25 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #26 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #27 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #28 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #29 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #30 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #31 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #32 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #33 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #34 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #35 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #36 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #37 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #38 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #39 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #40 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #41 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #42 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #43 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #44 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #45 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #46 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-5 priority-3 priority-high3 closed" title="Bug: std::thread doesn't work because of absense of pthread_mutex_timedlock in bionic (Closed)" href="https://tracker.crystax.net/issues/47">#47</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-5 priority-5 priority-highest closed" title="Bug: dynamic_cast problem (Closed)" href="https://tracker.crystax.net/issues/48">#48</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-5 priority-highest closed" title="Task: Figure out what's wrong with stackoverflow example (Closed)" href="https://tracker.crystax.net/issues/49">#49</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-5 priority-2 priority-default closed behind-schedule" title="Bug: Fix ndk-build system (Closed)" href="https://tracker.crystax.net/issues/50">#50</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-6 priority-1 priority-lowest closed" title="Bug: test-c++0x freezes on emulator when built with 4.7 toolchain (Rejected)" href="https://tracker.crystax.net/issues/51">#51</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): #52 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-5 priority-highest closed" title="Task: Backport windows parallel build fix (Closed)" href="https://tracker.crystax.net/issues/53">#53</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-1 priority-lowest closed" title="Task: Add tests for C99 support (Closed)" href="https://tracker.crystax.net/issues/54">#54</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-5 priority-5 priority-highest closed" title="Bug: No ISO C99 support in <stdlib.h> (Closed)" href="https://tracker.crystax.net/issues/55">#55</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-6 priority-1 priority-lowest closed" title="Bug: No atomics detected when building GNU libstdc++ (Rejected)" href="https://tracker.crystax.net/issues/56">#56</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-3 priority-high3 closed" title="Task: Wrong atomic behavior (Closed)" href="https://tracker.crystax.net/issues/57">#57</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-5 priority-highest closed" title="Task: Fix ndk-build rebuild problem (Closed)" href="https://tracker.crystax.net/issues/58">#58</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-4 priority-high2 closed" title="Task: mb printf implementation (Closed)" href="https://tracker.crystax.net/issues/59">#59</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-6 priority-2 priority-default closed" title="Bug: Static constructor code from libcrystax doesn't called when exe linked with libcrystax statically (Rejected)" href="https://tracker.crystax.net/issues/60">#60</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-5 priority-4 priority-high2 closed" title="Bug: GDB line debugging problem (Closed)" href="https://tracker.crystax.net/issues/61">#61</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-1 status-6 priority-4 priority-high2 closed" title="Bug: Debug info problems (Rejected)" href="https://tracker.crystax.net/issues/62">#62</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
I/DEBUG ( 116): <a class="issue tracker-4 status-5 priority-4 priority-high2 closed" title="Task: Check ICE presence in upcoming r8-crystax-1 (Closed)" href="https://tracker.crystax.net/issues/63">#63</a> pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)<br>
W/ActivityManager( 445): Force finishing activity 1 com.sample.hello_android/.MyNativeActivity<br>
I/DEBUG ( 116):<br>
I/DEBUG ( 116): Tombstone written to: /data/tombstones/tombstone_08<br>
I/BootReceiver( 445): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)<br>
I/Zygote ( 126): Process 13272 exited due to signal (11)</p>
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=3924
2017-02-20T22:21:54Z
Dmitry S.
shatilov.diman@gmail.com
<ul></ul><p>+lrint</p>
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=4006
2017-03-07T16:20:46Z
Eric B.
<ul></ul><p>I have also run into this problem. It breaks some opencv functionality, whatever calls "cvRound", which uses lrintf. </p>
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=4008
2017-03-07T20:27:08Z
Dmitry S.
shatilov.diman@gmail.com
<ul></ul><p>I've found work-around for openal:<br>
I passed HAVE_LRINTF=FALSE to cmake.</p>
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=4052
2017-03-25T12:09:11Z
Dmitry M.
dm@crystax.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Duplicated</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This is already fixed bug (see <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>). Shortly speaking, it was a bug in GCC optimizer, which makes functions <code>rint</code>/<code>lrint</code>/<code>lrintf</code> calling themselves recursively until stack is getting overflowed. This bug was fixed by <a href="https://github.com/crystax/android-platform-ndk/commit/8f82c4430c520455366c2da33d327848d6138666" class="external">this fix</a>, but it was done after release of 10.3.2. You can take build <a href="https://dl.crystax.net/builds/854/" class="external">#854</a> or any next one to get fixed libcrystax.</p>
CrystaX NDK - Bug #1716: crash: stackoverflow: lrintf
https://tracker.crystax.net/issues/1716?journal_id=4053
2017-03-27T14:02:12Z
Eric B.
<ul></ul><p>Thanks for the info. Works great!</p>