Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash when add property maybe failed on build arguments #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

penneryu
Copy link

@penneryu penneryu commented Nov 25, 2024

Hi,
We encountered a large number of online crashes, all of which were caused by insufficient memory when calling build arguments, resulting in the add_property call failing and returning null.
So I think there should be a judgment here instead of just letting it crash.

Thread
Scudo ERROR: internal map failure (NO MEMORY) requesting 4KB


pid: 0, tid: 6963 >>> com.xxx.dev <<<

backtrace:
#00 pc 0x00000000000c4bfc /data/app/~~xxx/lib/arm64/libquickjs.so
#1 pc 0x0000000000064cd0 /data/app/~~xxx/lib/arm64/libquickjs.so
#2 pc 0x0000000000065694 /data/app/~~xxx/lib/arm64/libquickjs.so
...

xxx arm64-v8a % aarch64-linux-android-addr2line -C -f -e libquickjs.so 0x00000000000c4bfc
js_build_arguments
xxx/quickjs.c:14858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant