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 #721

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

penneryu
Copy link
Contributor

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:13574

@saghul saghul merged commit 61dae5d into quickjs-ng:master Nov 25, 2024
51 checks passed
@saghul
Copy link
Contributor

saghul commented Nov 25, 2024

Thank you!

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.

2 participants