Skip to content

Conversation

@penneryu
Copy link
Contributor

refer: quickjs-ng

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
quickjs-ng/quickjs#1 pc 0x0000000000064cd0 /data/app/~~xxx/lib/arm64/libquickjs.so
quickjs-ng/quickjs#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

@andycall andycall added this pull request to the merge queue Nov 25, 2024
Merged via the queue into main with commit bb23eb3 Nov 25, 2024
32 checks passed
@andycall andycall deleted the fix/qjs_build_args branch November 25, 2024 11:55
@andycall andycall added the Crash label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants