Project

General

Profile

Bug #1716

crash: stackoverflow: lrintf

Added by Dmitry Shatilov over 2 years ago. Updated over 2 years ago.

Status:
Duplicated
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
Start date:
02/20/2017
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm
Host OS:
Toolchain:
gcc-5
Android version:
CrystaX Version:

Description

It looks like call itself in lrintf (libm: msun)
I use crystax-ndk-10.3.2 release with arm-linux-androideabi-5

History

#1

Updated by Dmitry Shatilov over 2 years ago

I/com.sample.hello_android(13272): Pre-load native libraries has complited
F/com.sample.hello_android(13272): [13292]: !!!!!!!11111111111
F/libc (13272): Fatal signal 11 (SIGSEGV), code 2, fault addr 0x4a3a3ffc in tid 13292 (e.hello_android)
I/DEBUG ( 116): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 116): Build fingerprint: 'samsung/espresso10wifixx/espresso10wifi:4.2.2/JDQ39/P5110XXDML1:user/release-keys'
I/DEBUG ( 116): Revision: '9'
I/DEBUG ( 116): ABI: 'arm'
I/DEBUG ( 116): pid: 13272, tid: 13292, name: e.hello_android >>> com.sample.hello_android <<<
I/DEBUG ( 116): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x4a3a3ffc
I/DEBUG ( 116): Abort message: '[13292]: !!!!!!!11111111111'
I/DEBUG ( 116): r0 00000000 r1 00000007 r2 60000000 r3 4a3a3ffc
I/DEBUG ( 116): r4 4a3a3ffc r5 4a3a4014 r6 4a0e6bec r7 4a28cd8c
I/DEBUG ( 116): r8 4a4a0948 r9 4a4a0900 sl 4a4a0938 fp 4a4a0930
I/DEBUG ( 116): ip 4744c51c sp 4a3a3ff8 lr 473e2324 pc 473e21c4 cpsr 600f0010
I/DEBUG ( 116):
I/DEBUG ( 116): backtrace:
I/DEBUG ( 116): #00 pc 0001e1c4 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (fegetenv+12)
I/DEBUG ( 116): #01 pc 0001e320 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (feholdexcept+20)
I/DEBUG ( 116): #02 pc 00072934 /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+20)
I/DEBUG ( 116): #03 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #04 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #05 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #06 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #07 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #08 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #09 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #10 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #11 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #12 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #13 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #14 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #15 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #16 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #17 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #18 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #19 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #20 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #21 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #22 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #23 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #24 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #25 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #26 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #27 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #28 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #29 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #30 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #31 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #32 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #33 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #34 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #35 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #36 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #37 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #38 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #39 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #40 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #41 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #42 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #43 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #44 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #45 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #46 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #47 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #48 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #49 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #50 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #51 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #52 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #53 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #54 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #55 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #56 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #57 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #58 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #59 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #60 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #61 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #62 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
I/DEBUG ( 116): #63 pc 0007293c /data/app/com.sample.hello_android-1/lib/arm/libcrystax.so (lrintf+28)
W/ActivityManager( 445): Force finishing activity 1 com.sample.hello_android/.MyNativeActivity
I/DEBUG ( 116):
I/DEBUG ( 116): Tombstone written to: /data/tombstones/tombstone_08
I/BootReceiver( 445): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
I/Zygote ( 126): Process 13272 exited due to signal (11)

#2

Updated by Dmitry Shatilov over 2 years ago

+lrint

#3

Updated by Eric Biagiotti over 2 years ago

I have also run into this problem. It breaks some opencv functionality, whatever calls "cvRound", which uses lrintf.

#4

Updated by Dmitry Shatilov over 2 years ago

I've found work-around for openal:
I passed HAVE_LRINTF=FALSE to cmake.

#5

Updated by Dmitry Moskalchuk over 2 years ago

  • Status changed from Open to Duplicated
  • % Done changed from 0 to 100

This is already fixed bug (see #1369). Shortly speaking, it was a bug in GCC optimizer, which makes functions rint/lrint/lrintf calling themselves recursively until stack is getting overflowed. This bug was fixed by this fix, but it was done after release of 10.3.2. You can take build #854 or any next one to get fixed libcrystax.

#6

Updated by Eric Biagiotti over 2 years ago

Thanks for the info. Works great!

Also available in: Atom PDF