您尚未登录。

楼主 # 2024-04-07 09:55:32

tea74110
会员
注册时间: 2021-04-25
已发帖子: 10
积分: 5

在开发板中运行app时出现Segmentation fault

开发板中移植的是vsftpd 版本是 3.0.5;
在Ubuntu上编译好app,再通过ftp将app传到开发板中.
运行报Segmentation fault
# ./main
Segmentation fault

解决:
在ubuntu中将main重命名加上后缀,再传到开发板.
运行成功
# ./main.o
hello!


参考链接https://blog.csdn.net/qq_36219010/article/details/100163134

离线

#1 2024-04-07 13:29:33

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 229
积分: 207

Re: 在开发板中运行app时出现Segmentation fault

gcc问题吧

离线

楼主 #2 2024-04-07 16:30:12

tea74110
会员
注册时间: 2021-04-25
已发帖子: 10
积分: 5

Re: 在开发板中运行app时出现Segmentation fault

不是GCC的问题,是ftp传输的问题,只是不知道怎么设置.
我没法按连接中的方式改vsftpd.conf配置文件,因为没有utf8_filesystem这一项.
可能是vsftpd的版本不同.
没有去深究了,加个后缀也不是不能用

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn