Wind River Support Network

HomeDefectsLIN7-2792
Fixed

LIN7-2792 : Error: ld.so: heapscope cannot be preloaded when trying to run Workbench under heapscope on intel-x86-64_glibc_sato

Created: Dec 16, 2014    Updated: Mar 4, 2016
Resolved Date: Mar 9, 2015
Previous ID: LIN7-2462, WB4-5046
Found In Version: 7.0.0.2
Fix Version: 7.0.0.3
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Analysis

Description

Trying to run Wind River Workbench 4 on an Emerson MATXM target under heapscope control displays an error in Workbench:

ERROR: ld.so: object '/usr/lib64/libheapscope.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored
Workbench still seems to run OK; it still runs in 64-bit mode so the error seems to be non-fatal.

But I noticed that trying to run Workbench in 32-bit mode fails (and heapscope also complains about missing multilib versions). This is a problem because some processes launched by Workbench are 32-bit processes and I would like to get these instrumented by heapscope too. How can I make heapscope multilib aware ?

Steps to Reproduce

1. Configure:
/installations/wrlinux/7.0/LB21_7.0/wrlinux-7/wrlinux/configure --enable-reconfig --enable-board=intel-x86-64 --enable-rootfs=glibc-std-sato+debug-wb+gdbserver+analysis+lttng2+usttrace_demo+valgrind+kernel-debug+self-hosted --enable-kernel=standard --enable-build=profiling --enable-debuginfo-split=yes --with-layer=examples/lemon_layer --with-package=heapscope,cmake,qt4-embedded --enable-prserver=128.224.198.50:31721 --with-ro-sstate-mirror=http://szg-bld-wb.wrs.com/wrlinux-reference-builds/7.0/LB21_7.0/sstate

2. Boot it on Emerson MATXM
    export DISPLAY=:0
    x11vnc -forever -shared > x11vnc.log 2>&1 &
    matchbox-terminal &
  
3. Connect VNC, and in the terminal:
    zip up an already installed Workbench 4, copy to target
    cd /root/wb4/workbench4/eclipse/x86_64-linux2

4. heapscope -- $PWD/wrwb
Live chat
Online