Comments (6)
btw, I built my own binaries, changing --release to . --debug . and --enable-debug=yes.
However, I still wasn't able to get a better backtrace out of logcat. Any tips would be appreciated.
from jsc-android-buildscripts.
Just remove this line https://github.com/SoftwareMansion/jsc-android-buildscripts/blob/master/common.sh#L139 to preserve symbols in the build. You can also replace -s
with -g
to include GDB debug information.
Note that installArchives also strips debug symbols, so if you are using it you have to run adb logcat | $ANDROID_NDK/prebuilt/darwin-x86_64/bin/ndk-stack -sym .
in a directory with libjsc.so copied directly from lib/distribution-?/jsc/lib/?/
from jsc-android-buildscripts.
Thanks. I think it was that 2nd piece that I was missing. I have encountered this trace on a few different occasions and the symptom went away when we fixed some type mismatch/coersion bug in javascript. I wonder if a later version of jsc has found and fixed this.
from jsc-android-buildscripts.
ok.. here is the latest trace with the x86 so :
Stack frame #00 pc 0001c7c2 /system/lib/libc.so (strlen+18)
Stack frame #01 pc 00084360 /system/lib/libc.so (__strlen_chk+32)
Stack frame #02 pc 000731aa /system/lib/libc.so (strdup+42)
Stack frame #03 pc 008ef58c /data/app/com.mobilemessenger-1/lib/x86/libjsc.so: Routine formatLocaleDate at /bitrise/src/target/webkit/Source/JavaScriptCore/runtime/DatePrototype.cpp:255 (discriminator 1)
Stack frame #04 pc 008ea291 /data/app/com.mobilemessenger-1/lib/x86/libjsc.so: Routine formatLocaleDate at /bitrise/src/target/webkit/Source/JavaScriptCore/runtime/DatePrototype.cpp:316
Stack frame #05 pc 008ea0e4 /data/app/com.mobilemessenger-1/lib/x86/libjsc.so: Routine dateProtoFuncToLocaleString at /bitrise/src/target/webkit/Source/JavaScriptCore/runtime/DatePrototype.cpp:582 (discriminator 1)
from jsc-android-buildscripts.
This seems to directly indicate that somewhere in our libraries we are using dateLocale operations and should therefore use the icu build. Interesting that it was able to get to this point in the code, though, I would have guessed that HAVE(LANGINFO_H) would have been false.
from jsc-android-buildscripts.
pointing android/app/build.gradle to the ICU build as prescribed in the README did remove the SEGV. It might be worth either documenting that toLocaleString() might crash in the documentation, or figure out how to actually make it work like toString in all cases. I can try to provide some help there if needed.
from jsc-android-buildscripts.
Related Issues (20)
- 245459.0.0 native crash
- [Docs] Can't locale "useIntlJsc" in RN 0.64 HOT 3
- Looking for maintainers HOT 3
- statvfs build error
- Missing libjsc.so in the arm64 build HOT 1
- does it work with Expo sdk 40? HOT 1
- jsc default create 128M MemoryPoolSize on arm64, that's to big HOT 2
- FormatDate(FormatJS) returning for some locale as M09, M08 (M + month number) only on android HOT 1
- Build failed: undeclared identifier 'u_charDirection' HOT 1
- Upgrade JSC past 260345 HOT 19
- 250230.2.1 arm64-v8a Crash signal 4 (SIGILL), code 1 (ILL_ILLOPC) HOT 2
- Add support for dateStyle and timeStyle on toLocale*String functions
- Help! Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48 HOT 1
- 294992.0.0 arm64-v8a Crash signal 11 (SIGSEGV), code 2 (SEGV_ACCERR)
- Android JSC Intl do not support signDisplay option
- I can't get a license from this project [Android] HOT 1
- React Native `v0.71.0` uses an outdated version of `jsc-android` (NDKs mismatch and causes crash) HOT 1
- 250230.2.1 armeabi_v7a Crash signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 on Samsung family phones HOT 6
- Non-standard ownProperty `length` on AsyncGenerator and AsyncFunctionPrototype
- Installed 294992.0.0 but JSC reports version 250231.0.0 on startup. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsc-android-buildscripts.