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

关于 QuickJS 编译到 PS 平台 #1944

Open
NiceTry12138 opened this issue Dec 13, 2024 · 4 comments
Open

关于 QuickJS 编译到 PS 平台 #1944

NiceTry12138 opened this issue Dec 13, 2024 · 4 comments

Comments

@NiceTry12138
Copy link

事实上 PS 平台的链接库已经打出来,并且能够正常打包通过,但是运行时会崩溃,每次 new Isolate() 的时候都会崩溃

打包链接: https://github.com/NiceTry12138/backend-quickjs/tree/ps-package
得到的链接库文件: (重命名后缀 .txt 为 .a 即可)
libquickjs.txt

因为有特定环境需求,想寻求一下解决这种问题的经验,或者可能的方向

已经自己处理一周左右,也在 PS 论坛问过

@NiceTry12138
Copy link
Author

ubuntu 平台下
使用 ar -x libquickjs.a 能够得到 v8-impl.cc.obj 文件
使用 nm v8-impl.cc.obj > v8-impl.m 得到具体内容
v8-impl.log

@chexiongsheng
Copy link
Collaborator

崩溃不是应该发崩溃栈吗?你发符号干嘛?

@NiceTry12138
Copy link
Author

崩溃不是应该发崩溃栈吗?你发符号干嘛?

image
刚学会附加进程到远端PS开发机
闪退发生在 js_def_malloc_usable_size 的 malloc_usable_size 调用里面,直接用 return 0 了

@NiceTry12138
Copy link
Author

根据 Sample 示例项目中的代码,修改使用 sceLibcMspaceMallocUsableSize 也发生崩溃
image
image

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

No branches or pull requests

2 participants