This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

libc-2.15.so debug库使用问题



目前使用平台是TDA2EX,在进行Valgrind移植使用时遇到问题,最终确认是glibc的库没有调试信息。

后查到解决方案,把交叉编译工具gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux   中libc下debug目录的libc-2.15.so拷入文件系统lib目录。

至此开始出现问题,系统启动时报如下错误:

U-Boot 2014.07 (Nov 28 2018 - 11:21:01)

CPU : DRA752-GP ES1.0
Board: DRA7xx
I2C: ready
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

serial# not set, setting...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
4853992 bytes read in 247 ms (18.7 MiB/s)
92681 bytes read in 11 ms (8 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x4a10e8 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
reserving fdt memory region: addr=85800000 size=10000000
reserving fdt memory region: addr=a0000000 size=6000000
reserving fdt memory region: addr=a6000000 size=fd2000
reserving fdt memory region: addr=b0000000 size=5000000
Loading Device Tree to 857e6000, end 857ffa08 ... OK
Check Max9286 him 0x80

Starting kernel ...

[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.000000] GIC CPU mask not found - kernel will fail to boot.
[ 0.929366] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 0.929366]
[ 0.938542] drm_kms_helper: panic occurred, switching back to text console
[ 0.945462] ------------[ cut here ]------------
[ 0.950108] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/omapdrm/omap_crtc.c:617 omap_crtc_apply+0x90/0x9c()
[ 0.959714] Modules linked in:
[ 0.962791] CPU: 0 PID: 1 Comm: init Not tainted 3.14.63 #30
[ 0.968472] Backtrace:
[ 0.970946] [<c0012128>] (dump_backtrace) from [<c00122c4>] (show_stack+0x18/0x1c)
[ 0.978546] r6:20000193 r5:ffffffff r4:00000000 r3:00000000
[ 0.984267] [<c00122ac>] (show_stack) from [<c06449a0>] (dump_stack+0x80/0xa0)
[ 0.991524] [<c0644920>] (dump_stack) from [<c0046d20>] (warn_slowpath_common+0x70/0x94)
[ 0.999646] r7:00000269 r6:c0395020 r5:00000009 r4:00000000
[ 1.005367] [<c0046cb0>] (warn_slowpath_common) from [<c0046d68>] (warn_slowpath_null+0x24/0x2c)
[ 1.014187] r8:000002d0 r7:00000500 r6:00000000 r5:ecdadd8c r4:ecdae800
[ 1.020960] [<c0046d44>] (warn_slowpath_null) from [<c0395020>] (omap_crtc_apply+0x90/0x9c)
[ 1.029349] [<c0394f90>] (omap_crtc_apply) from [<c03958f4>] (apply+0x24/0x28)
[ 1.036599] r5:00000000 r4:00000000
[ 1.040207] [<c03958d0>] (apply) from [<c0395be8>] (omap_plane_mode_set+0x100/0x148)
[ 1.047986] [<c0395ae8>] (omap_plane_mode_set) from [<c039470c>] (omap_crtc_mode_set+0x11c/0x130)
[ 1.056893] r10:1500000a r9:00000048 r8:eca12594 r7:00000000 r6:00000000 r5:ecdae800
[ 1.064793] r4:05000000
[ 1.067347] [<c03945f0>] (omap_crtc_mode_set) from [<c03731cc>] (drm_crtc_helper_set_mode+0x2a4/0x4bc)
[ 1.076690] r10:ecd88800 r9:ecd889b4 r8:00000001 r7:eca12580 r6:eca12980 r5:ecd889b8
[ 1.084593] r4:ecdae800
[ 1.087147] [<c0372f28>] (drm_crtc_helper_set_mode) from [<c0373c70>] (drm_crtc_helper_set_config+0x764/0x8c0)
[ 1.097187] r10:ecd88994 r9:00000004 r8:ecc68400 r7:ecd889b8 r6:ecd889a0 r5:ecdac5c0
[ 1.105089] r4:ecdae800
[ 1.107643] [<c037350c>] (drm_crtc_helper_set_config) from [<c038550c>] (drm_mode_set_config_internal+0x5c/0xdc)
[ 1.117858] r10:ec8e7b40 r9:ec8e2dc0 r8:00000000 r7:eca16840 r6:ecdac5c0 r5:ecdae800
[ 1.125760] r4:eca166c0
[ 1.128316] [<c03854b0>] (drm_mode_set_config_internal) from [<c03768fc>] (drm_fb_helper_restore_fbdev_mode+0xac/0xcc)
[ 1.139053] r6:ecdac5c0 r5:00000000 r4:00000001 r3:00000000
[ 1.144770] [<c0376850>] (drm_fb_helper_restore_fbdev_mode) from [<c0376958>] (drm_fb_helper_force_kernel_mode+0x3c/0x60)
[ 1.155769] r8:00000000 r7:c09a5794 r6:00000000 r5:c09799c0 r4:eca16840
[ 1.162542] [<c037691c>] (drm_fb_helper_force_kernel_mode) from [<c0376c08>] (drm_fb_helper_panic+0x30/0x3c)
[ 1.172408] r6:00000000 r5:00000000 r4:fffffffe r3:ec8e8000
[ 1.178126] [<c0376bd8>] (drm_fb_helper_panic) from [<c064c45c>] (notifier_call_chain+0x4c/0x8c)
[ 1.186950] [<c064c410>] (notifier_call_chain) from [<c064c4dc>] (__atomic_notifier_call_chain+0x40/0x54)
[ 1.196554] r8:c09a5b94 r7:00000000 r6:c09a5794 r5:ffffffff r4:00000000 r3:ffffffff
[ 1.204372] [<c064c49c>] (__atomic_notifier_call_chain) from [<c064c510>] (atomic_notifier_call_chain+0x20/0x28)
[ 1.214588] r8:ec8e8000 r7:eccc9e40 r6:ec8e7b40 r5:c07d0bc8 r4:c09a5770
[ 1.221358] [<c064c4f0>] (atomic_notifier_call_chain) from [<c064239c>] (panic+0x94/0x1c8)
[ 1.229659] [<c064230c>] (panic) from [<c00490bc>] (do_exit+0x804/0x8cc)
[ 1.236385] r3:ec8e2dc0 r2:00000000 r1:0000000b r0:c07d0bc8
[ 1.242098] r7:eccc9e40
[ 1.244651] [<c00488b8>] (do_exit) from [<c0049298>] (do_group_exit+0x44/0xb8)
[ 1.251901] r7:ecc86fc4
[ 1.254453] [<c0049254>] (do_group_exit) from [<c00542f0>] (get_signal_to_deliver+0x1c8/0x54c)
[ 1.263098] r7:ecc86fc4 r6:ec8e8000 r5:ec8e9ed4 r4:ec8e8000
[ 1.268813] [<c0054128>] (get_signal_to_deliver) from [<c0011698>] (do_signal+0x108/0x408)
[ 1.277109] r10:00000000 r9:ec8e8000 r8:00000000 r7:ec8e9ec0 r6:ec8e8000 r5:ec8e8000
[ 1.285011] r4:ec8e9fb0
[ 1.287564] [<c0011590>] (do_signal) from [<c0011ce0>] (do_work_pending+0x70/0xb0)
[ 1.295163] r10:00000001 r9:ec8e8000 r8:00000000 r7:ec8e9fb0 r6:ec8e8000 r5:ec8e8000
[ 1.303065] r4:ec8e8000
[ 1.305618] [<c0011c70>] (do_work_pending) from [<c000ebc8>] (work_pending+0xc/0x20)
[ 1.313391] r10:b6f56c30 r8:00000000 r7:beb2fa20 r6:ffffffff r5:40000030 r4:b6f45964
[ 1.321292] ---[ end trace d99e58ee3e662755 ]---
[ 1.325936] ------------[ cut here ]------------
[ 1.330576] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/omapdrm/omap_crtc.c:617 omap_crtc_apply+0x90/0x9c()
[ 1.340179] Modules linked in:
[ 1.343253] CPU: 0 PID: 1 Comm: init Tainted: G W 3.14.63 #30
[ 1.349893] Backtrace:
[ 1.352361] [<c0012128>] (dump_backtrace) from [<c00122c4>] (show_stack+0x18/0x1c)
[ 1.359960] r6:20000193 r5:ffffffff r4:00000000 r3:00000000
[ 1.365678] [<c00122ac>] (show_stack) from [<c06449a0>] (dump_stack+0x80/0xa0)
[ 1.372934] [<c0644920>] (dump_stack) from [<c0046d20>] (warn_slowpath_common+0x70/0x94)
[ 1.381056] r7:00000269 r6:c0395020 r5:00000009 r4:00000000
[ 1.386774] [<c0046cb0>] (warn_slowpath_common) from [<c0046d68>] (warn_slowpath_null+0x24/0x2c)
[ 1.395593] r8:eca12c80 r7:00000000 r6:ecdae800 r5:ecdaeb84 r4:ecdae800
[ 1.402363] [<c0046d44>] (warn_slowpath_null) from [<c0395020>] (omap_crtc_apply+0x90/0x9c)
[ 1.410753] [<c0394f90>] (omap_crtc_apply) from [<c0395094>] (omap_crtc_dpms+0x68/0x100)
[ 1.418874] r5:ecd88800 r4:ecdae800
[ 1.422481] [<c039502c>] (omap_crtc_dpms) from [<c0395334>] (omap_crtc_commit+0x40/0x6c)
[ 1.430603] r8:00000001 r7:eca12580 r6:eca12980 r5:ecd88800 r4:ecdae800
[ 1.437374] [<c03952f4>] (omap_crtc_commit) from [<c037321c>] (drm_crtc_helper_set_mode+0x2f4/0x4bc)
[ 1.446543] r5:ecd889b8 r4:ecdae800
[ 1.450151] [<c0372f28>] (drm_crtc_helper_set_mode) from [<c0373c70>] (drm_crtc_helper_set_config+0x764/0x8c0)
[ 1.460191] r10:ecd88994 r9:00000004 r8:ecc68400 r7:ecd889b8 r6:ecd889a0 r5:ecdac5c0
[ 1.468092] r4:ecdae800
[ 1.470645] [<c037350c>] (drm_crtc_helper_set_config) from [<c038550c>] (drm_mode_set_config_internal+0x5c/0xdc)
[ 1.480859] r10:ec8e7b40 r9:ec8e2dc0 r8:00000000 r7:eca16840 r6:ecdac5c0 r5:ecdae800
[ 1.488761] r4:eca166c0
[ 1.491313] [<c03854b0>] (drm_mode_set_config_internal) from [<c03768fc>] (drm_fb_helper_restore_fbdev_mode+0xac/0xcc)
[ 1.502051] r6:ecdac5c0 r5:00000000 r4:00000001 r3:00000000
[ 1.507768] [<c0376850>] (drm_fb_helper_restore_fbdev_mode) from [<c0376958>] (drm_fb_helper_force_kernel_mode+0x3c/0x60)
[ 1.518767] r8:00000000 r7:c09a5794 r6:00000000 r5:c09799c0 r4:eca16840
[ 1.525539] [<c037691c>] (drm_fb_helper_force_kernel_mode) from [<c0376c08>] (drm_fb_helper_panic+0x30/0x3c)
[ 1.535405] r6:00000000 r5:00000000 r4:fffffffe r3:ec8e8000
[ 1.541123] [<c0376bd8>] (drm_fb_helper_panic) from [<c064c45c>] (notifier_call_chain+0x4c/0x8c)
[ 1.549947] [<c064c410>] (notifier_call_chain) from [<c064c4dc>] (__atomic_notifier_call_chain+0x40/0x54)
[ 1.559552] r8:c09a5b94 r7:00000000 r6:c09a5794 r5:ffffffff r4:00000000 r3:ffffffff
[ 1.567369] [<c064c49c>] (__atomic_notifier_call_chain) from [<c064c510>] (atomic_notifier_call_chain+0x20/0x28)
[ 1.577585] r8:ec8e8000 r7:eccc9e40 r6:ec8e7b40 r5:c07d0bc8 r4:c09a5770
[ 1.584356] [<c064c4f0>] (atomic_notifier_call_chain) from [<c064239c>] (panic+0x94/0x1c8)
[ 1.592657] [<c064230c>] (panic) from [<c00490bc>] (do_exit+0x804/0x8cc)
[ 1.599383] r3:ec8e2dc0 r2:00000000 r1:0000000b r0:c07d0bc8
[ 1.605093] r7:eccc9e40
[ 1.607645] [<c00488b8>] (do_exit) from [<c0049298>] (do_group_exit+0x44/0xb8)
[ 1.614895] r7:ecc86fc4
[ 1.617446] [<c0049254>] (do_group_exit) from [<c00542f0>] (get_signal_to_deliver+0x1c8/0x54c)
[ 1.626090] r7:ecc86fc4 r6:ec8e8000 r5:ec8e9ed4 r4:ec8e8000
[ 1.631809] [<c0054128>] (get_signal_to_deliver) from [<c0011698>] (do_signal+0x108/0x408)
[ 1.640105] r10:00000000 r9:ec8e8000 r8:00000000 r7:ec8e9ec0 r6:ec8e8000 r5:ec8e8000
[ 1.648005] r4:ec8e9fb0
[ 1.650558] [<c0011590>] (do_signal) from [<c0011ce0>] (do_work_pending+0x70/0xb0)
[ 1.658156] r10:00000001 r9:ec8e8000 r8:00000000 r7:ec8e9fb0 r6:ec8e8000 r5:ec8e8000
[ 1.666056] r4:ec8e8000
[ 1.668608] [<c0011c70>] (do_work_pending) from [<c000ebc8>] (work_pending+0xc/0x20)
[ 1.676381] r10:b6f56c30 r8:00000000 r7:beb2fa20 r6:ffffffff r5:40000030 r4:b6f45964
[ 1.684283] ---[ end trace d99e58ee3e662756 ]---
[ 1.688916] ------------[ cut here ]------------
[ 1.693555] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/omapdrm/omap_crtc.c:617 omap_crtc_apply+0x90/0x9c()
[ 1.703159] Modules linked in:
[ 1.706232] CPU: 0 PID: 1 Comm: init Tainted: G W 3.14.63 #30
[ 1.712870] Backtrace:
[ 1.715336] [<c0012128>] (dump_backtrace) from [<c00122c4>] (show_stack+0x18/0x1c)
[ 1.722935] r6:20000193 r5:ffffffff r4:00000000 r3:00000000
[ 1.728654] [<c00122ac>] (show_stack) from [<c06449a0>] (dump_stack+0x80/0xa0)
[ 1.735910] [<c0644920>] (dump_stack) from [<c0046d20>] (warn_slowpath_common+0x70/0x94)
[ 1.744031] r7:00000269 r6:c0395020 r5:00000009 r4:00000000
[ 1.749751] [<c0046cb0>] (warn_slowpath_common) from [<c0046d68>] (warn_slowpath_null+0x24/0x2c)
[ 1.758571] r8:eca12c80 r7:00000000 r6:ecdae800 r5:ecdadd8c r4:ecdae800
[ 1.765342] [<c0046d44>] (warn_slowpath_null) from [<c0395020>] (omap_crtc_apply+0x90/0x9c)
[ 1.773732] [<c0394f90>] (omap_crtc_apply) from [<c03958f4>] (apply+0x24/0x28)
[ 1.780981] r5:ecd88800 r4:ecdae800
[ 1.784588] [<c03958d0>] (apply) from [<c0395d18>] (omap_plane_dpms+0x28/0x34)
[ 1.791845] [<c0395cf0>] (omap_plane_dpms) from [<c03950a0>] (omap_crtc_dpms+0x74/0x100)
[ 1.799971] [<c039502c>] (omap_crtc_dpms) from [<c0395334>] (omap_crtc_commit+0x40/0x6c)
[ 1.808092] r8:00000001 r7:eca12580 r6:eca12980 r5:ecd88800 r4:ecdae800
[ 1.814864] [<c03952f4>] (omap_crtc_commit) from [<c037321c>] (drm_crtc_helper_set_mode+0x2f4/0x4bc)
[ 1.824032] r5:ecd889b8 r4:ecdae800
[ 1.827638] [<c0372f28>] (drm_crtc_helper_set_mode) from [<c0373c70>] (drm_crtc_helper_set_config+0x764/0x8c0)
[ 1.837678] r10:ecd88994 r9:00000004 r8:ecc68400 r7:ecd889b8 r6:ecd889a0 r5:ecdac5c0
[ 1.845579] r4:ecdae800
[ 1.848132] [<c037350c>] (drm_crtc_helper_set_config) from [<c038550c>] (drm_mode_set_config_internal+0x5c/0xdc)
[ 1.858347] r10:ec8e7b40 r9:ec8e2dc0 r8:00000000 r7:eca16840 r6:ecdac5c0 r5:ecdae800
[ 1.866248] r4:eca166c0
[ 1.868800] [<c03854b0>] (drm_mode_set_config_internal) from [<c03768fc>] (drm_fb_helper_restore_fbdev_mode+0xac/0xcc)
[ 1.879538] r6:ecdac5c0 r5:00000000 r4:00000001 r3:00000000
[ 1.885256] [<c0376850>] (drm_fb_helper_restore_fbdev_mode) from [<c0376958>] (drm_fb_helper_force_kernel_mode+0x3c/0x60)
[ 1.896256] r8:00000000 r7:c09a5794 r6:00000000 r5:c09799c0 r4:eca16840
[ 1.903028] [<c037691c>] (drm_fb_helper_force_kernel_mode) from [<c0376c08>] (drm_fb_helper_panic+0x30/0x3c)
[ 1.912893] r6:00000000 r5:00000000 r4:fffffffe r3:ec8e8000
[ 1.918610] [<c0376bd8>] (drm_fb_helper_panic) from [<c064c45c>] (notifier_call_chain+0x4c/0x8c)
[ 1.927433] [<c064c410>] (notifier_call_chain) from [<c064c4dc>] (__atomic_notifier_call_chain+0x40/0x54)
[ 1.937037] r8:c09a5b94 r7:00000000 r6:c09a5794 r5:ffffffff r4:00000000 r3:ffffffff
[ 1.944856] [<c064c49c>] (__atomic_notifier_call_chain) from [<c064c510>] (atomic_notifier_call_chain+0x20/0x28)
[ 1.955071] r8:ec8e8000 r7:eccc9e40 r6:ec8e7b40 r5:c07d0bc8 r4:c09a5770
[ 1.961841] [<c064c4f0>] (atomic_notifier_call_chain) from [<c064239c>] (panic+0x94/0x1c8)
[ 1.970140] [<c064230c>] (panic) from [<c00490bc>] (do_exit+0x804/0x8cc)
[ 1.976867] r3:ec8e2dc0 r2:00000000 r1:0000000b r0:c07d0bc8
[ 1.982579] r7:eccc9e40
[ 1.985130] [<c00488b8>] (do_exit) from [<c0049298>] (do_group_exit+0x44/0xb8)
[ 1.992380] r7:ecc86fc4
[ 1.994931] [<c0049254>] (do_group_exit) from [<c00542f0>] (get_signal_to_deliver+0x1c8/0x54c)
[ 2.003576] r7:ecc86fc4 r6:ec8e8000 r5:ec8e9ed4 r4:ec8e8000
[ 2.009292] [<c0054128>] (get_signal_to_deliver) from [<c0011698>] (do_signal+0x108/0x408)
[ 2.017588] r10:00000000 r9:ec8e8000 r8:00000000 r7:ec8e9ec0 r6:ec8e8000 r5:ec8e8000
[ 2.025489] r4:ec8e9fb0
[ 2.028042] [<c0011590>] (do_signal) from [<c0011ce0>] (do_work_pending+0x70/0xb0)
[ 2.035640] r10:00000001 r9:ec8e8000 r8:00000000 r7:ec8e9fb0 r6:ec8e8000 r5:ec8e8000
[ 2.043541] r4:ec8e8000
[ 2.046095] [<c0011c70>] (do_work_pending) from [<c000ebc8>] (work_pending+0xc/0x20)
[ 2.053868] r10:b6f56c30 r8:00000000 r7:beb2fa20 r6:ffffffff r5:40000030 r4:b6f45964
[ 2.061769] ---[ end trace d99e58ee3e662757 ]---
[ 2.084790] mmc1: BKOPS_EN bit is not set
[ 2.092784] mmc1: new high speed DDR MMC card at address 0001
[ 2.099179] mmcblk1: mmc1:0001 MMC04G 3.57 GiB
[ 2.103951] mmcblk1boot0: mmc1:0001 MMC04G partition 1 8.00 MiB
[ 2.110128] mmcblk1boot1: mmc1:0001 MMC04G partition 2 8.00 MiB

 

以上,还请指导,谢谢。