-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
duo: atoi crash #8943
Comments
好像很神奇呢,或许是对齐的缘故?atoi是libc的函数,目前用的libc是哪个 |
v5.1.0正常,master有问题 |
网上看到一篇文章,可能和这个问题有关系,just FYI:https://zhuanlan.zhihu.com/p/619893693 |
当前 小核和 大核的 gcc 用的都是 Xuantie-900-gcc-elf-newlib-x86_64-V2.8.1,但是大核需要使用 musl 的gcc,对大核换成 musleabi 的之后就不会 crash 了。 有个问题,我用的 musleabi 的 gcc 是 https://download.rt-thread.org/rt-smart/riscv64/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_180881.tar.bz2,换成其他的 musl gcc 都不行,是不是 rtt 有特殊的需求?这个问题已经提 issue,参考#9049 的讨论。 后面具体怎么解,还要看看能否将大核和小核的工程尽量统一起来。参考 #9028 的讨论。 |
bsp/cvitek/cv18xx_risc-v/ master 或者 5.1.0
简单的调用 atoi 函数会导致异常:
log 如下:
The text was updated successfully, but these errors were encountered: