1988
- 收藏
- 点赞
- 分享
- 举报
无法在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
-
2017-03-22 09:39:06
-
2023-12-26 14:56:34
-
2023-08-24 10:21:32
-
2017-04-25 15:51:22
-
2015-12-25 14:33:43
-
142015-06-24 15:32:17
-
2020-08-17 10:54:19
-
2019-01-18 15:19:26
-
2016-09-19 11:47:23
-
2015-08-18 16:11:38
-
2016-03-18 17:14:31
-
2013-11-05 18:59:08
-
2019-12-16 10:25:09
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10海思3559的VGS模块在VI上画线问题
-
53519dv500接lvds的sensor mn34120,图像出现很多竖线,sensor板接以前的3519v101没问题
-
103403外接hdmi口1024*600显示屏报错
-
5SS928点DC camera的6946,全屏紫色
-
5hi3519 的 网络传输的MTU值可以修改到比1500大嘛?
-
10WS73V100星闪扫描不到设备sle
-
5SS928/SD3403 录像失败 venc stream time out, exit thread; venc 2 stream buffer is full
-
10Hi3516DV500无法运行PQTool软件
-
10君正T23+1084带TF卡插卡(给该主板适配TF卡驱动,电机驱动,适配GPIO)
-
5Hi3536A从vpss获取1080分辨率的yuv数据异常
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认