Skip to content

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

Merged
saghul merged 1 commit intoquickjs-ng:masterfrom
penneryu:master
Nov 25, 2024
Merged

fix crash when add property maybe failed on build arguments#721
saghul merged 1 commit intoquickjs-ng:masterfrom
penneryu:master

Conversation

@penneryu
Copy link
Copy Markdown
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
@saghul
Copy link
Copy Markdown
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