Wind River Support Network

HomeDefectsLIN6-9720
Fixed

LIN6-9720 : "Failed to read a valid object file image from memory", core dump i686

Created: Apr 13, 2015    Updated: Dec 3, 2018
Resolved Date: Apr 19, 2015
Found In Version: 6.0.0.16
Fix Version: 6.0.0.20
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel
Architecture: IA32

Description

On qemux86 board, COMPAT_VDSO leads to empty vDSO page in core dump, which breaks post-mortem debugging.

Workaround

set CONFIG_COMPAT_VDSO=n in kernel config with `make -C build linux-windriver.menuconfig'

Steps to Reproduce

1. configure --enable-board=qemux86 --enable-kernel=standard --enable-rootfs=glibc_small --enable-build=debug --with-package=gdb --with-rcpl-version=0012
2. make
3. make start-target
4. on the target
# ulimit -c unlimited
#./hello_Linux.out &
#kill -3 {PID}
#gdb /root/hello_Linux.out core.{PID}
root@qemu0:~# gdb /root/hello_Linux.out core.(PID}
GNU gdb (Wind River Linux Sourcery CodeBench 4.6a-127) 7.4.50.20120716-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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 "i686-wrs-linux-gnu".
For bug reporting instructions, please see:
<support@windriver.com>...
Reading symbols from /root/hello_Linux.out...done.
[New LWP 591]
Failed to read a valid object file image from memory.
Core was generated by `./hello_Linux.out'.
Program terminated with signal 3, Quit.
#0  0xffffe424 in ?? ()
(gdb) bt
#0  0xffffe424 in ?? ()
#1  0x00002710 in ?? ()
#2  0x4e958000 in ?? () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Other Downloads


Live chat
Online