2200
- 收藏
- 点赞
- 分享
- 举报
无法在3535板卡上定位core文件错误代码行
arm-hisiv100nptl-linux-g++编译生成的程序,在3535板卡上,
通过gdb-arm-hisiv100nptl-linux无法定位core文件错误代码行。
(1)编译测试代码。并拷贝到3535板卡上
arm-hisiv100nptl-linux-g++ -g -g3 -O2 -Wall -DDEBUG aaa.cpp -o testnew
#include
#include
int main()
{
char *ptest = NULL;
strcpy(ptest, "hello");
return 0;
}
(2)3535板卡上打开写core文件功能,并运行test程序生成core文件
ulimit -c unlimited
ulimit -a
./testnew 生成 core文件
(3)在3535板卡上,通过gdb-arm-hisiv100nptl-linux查看core文件。
# ./gdb-arm-hisiv100nptl-linux testnew core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-hisiv100nptl-linux"...
Reading symbols from /lib/libstdc++.so.6...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 0, should be 2) [in module /lib/libstdc++.so.6]
Reading symbols from /lib/libm.so.0...done.
Loaded symbols for /lib/libm.so.0
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.0...done.
Loaded symbols for /lib/libc.so.0
Reading symbols from /lib/ld-uClibc.so.0...done.
Loaded symbols for /lib/ld-uClibc.so.0
Reading symbols from /lib/libstdc++.so.6...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 0, should be 2) [in module /lib/libstdc++.so.6]
Core was generated by `./testnew'.
Program terminated with signal 11, Segmentation fault.
[New process 1188]
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
(gdb) bt full
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
No symbol table info available.
Cannot access memory at address 0x0
(gdb) bt
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
通过gdb-arm-hisiv100nptl-linux无法定位core文件错误代码行。
(1)编译测试代码。并拷贝到3535板卡上
arm-hisiv100nptl-linux-g++ -g -g3 -O2 -Wall -DDEBUG aaa.cpp -o testnew
#include
#include
int main()
{
char *ptest = NULL;
strcpy(ptest, "hello");
return 0;
}
(2)3535板卡上打开写core文件功能,并运行test程序生成core文件
ulimit -c unlimited
ulimit -a
./testnew 生成 core文件
(3)在3535板卡上,通过gdb-arm-hisiv100nptl-linux查看core文件。
# ./gdb-arm-hisiv100nptl-linux testnew core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-hisiv100nptl-linux"...
Reading symbols from /lib/libstdc++.so.6...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 0, should be 2) [in module /lib/libstdc++.so.6]
Reading symbols from /lib/libm.so.0...done.
Loaded symbols for /lib/libm.so.0
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.0...done.
Loaded symbols for /lib/libc.so.0
Reading symbols from /lib/ld-uClibc.so.0...done.
Loaded symbols for /lib/ld-uClibc.so.0
Reading symbols from /lib/libstdc++.so.6...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 0, should be 2) [in module /lib/libstdc++.so.6]
Core was generated by `./testnew'.
Program terminated with signal 11, Segmentation fault.
[New process 1188]
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
(gdb) bt full
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
No symbol table info available.
Cannot access memory at address 0x0
(gdb) bt
#0 0xb6df1b2c in ?? () from /lib/libc.so.0
我来回答
回答14个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2014-10-23 10:51:45
-
2019-07-14 19:22:47
-
2022-01-15 15:12:06
-
2018-11-09 17:20:39
-
2018-11-30 14:49:58
-
2020-09-29 14:16:21
-
2023-08-24 10:21:32
-
2023-12-26 14:56:34
-
2017-03-22 09:39:06
-
2017-04-25 15:51:22
-
2015-12-25 14:33:43
-
2020-08-17 10:54:19
-
142015-06-24 15:32:17
-
2015-08-18 16:11:38
-
2019-12-16 10:25:09
-
2019-01-18 15:19:26
-
2013-11-05 18:59:08
-
2015-03-21 19:43:39
-
2016-09-19 11:47:23
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10T32crop和fcrop怎么从中间裁剪?
-
53516卡死问题
-
10hi3516cv610 去除风扇声音,人说话声音正常输出不变声
-
5hi3516cv610适配imx662的wdr模式出图图像不正常怎么去解决
-
5ss928 [sample_comm_venc_get_venc_stream_proc]-2627: get venc stream time out, exit thread
-
10要一份RK3576最新硬件资料包
-
5海思DPU的查找表怎么获取
-
10海思Hi3519DV500 自动对焦算法求助
-
10鸿欧派 Hi3519Dv500
-
10【求助】RK3576实现推流和GC2053摄像头颜色偏绿
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友