All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: Saul Wold <sgw@linux.intel.com>
Cc: Martin Jansa <martin.jansa@gmail.com>,
	Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support"
Date: Thu, 22 Mar 2012 13:09:18 +0100	[thread overview]
Message-ID: <20120322130918.189674f6@eb-e6520> (raw)
In-Reply-To: <4F6A5458.9030904@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

Hi,

thanks to the help of Woglinde on IRC, here is some log which shows a
wrong rpath which explains why the sdk libraries are not used.
This doesn't solves the double free problem which seems related to
the SDK's libpython

Eric

[-- Attachment #2: sdk_gdb_log.txt --]
[-- Type: text/plain, Size: 4646 bytes --]

$ chrpath -l arm-oe-linux-gnueabi-gdb 
arm-oe-linux-gnueabi-gdb: RPATH=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/armv5te-oe-linux-gnueabi:/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib

$ ldd arm-oe-linux-gnueabi-gdb 
./arm-oe-linux-gnueabi-gdb: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libz.so.1)
	linux-vdso.so.1 =>  (0x00007fff26fff000)
	libreadline.so.6 => /lib64/libreadline.so.6 (0x0000003ba3a00000)
	libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007f670a379000)
	libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007f670a156000)
	libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007f6709f2f000)
	libz.so.1 => /lib64/libz.so.1 (0x0000003ba3200000)
	libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007f6709cac000)
	libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007f6709a8f000)
	libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007f670988b000)
	libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003ba7200000)
	libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007f6709504000)
	/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003ba1600000)

$ find /usr/local/oecore-x86_64/ -iname libz*
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libz.so.1.2.6
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libz.so.1
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libz1.control
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libz1.list
$ find /usr/local/oecore-x86_64/ -iname libreadline*
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libreadline.so.6.2
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libreadline.so.6
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libreadline6.control
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libreadline6.list
$ find /usr/local/oecore-x86_64/ -iname libexpat*
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libexpat.so.1
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libexpat.so.1.5.2
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libexpat1.control
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var/lib/opkg/info/libexpat1.list

$  sudo chrpath -r "/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib:/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib" arm-oe-linux-gnueabi-gdb 
arm-oe-linux-gnueabi-gdb: RPATH=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/armv5te-oe-linux-gnueabi:/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib
arm-oe-linux-gnueabi-gdb: new RPATH: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib:/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib
$ ldd arm-oe-linux-gnueabi-gdb 
	linux-vdso.so.1 =>  (0x00007fff215ff000)
	libreadline.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libreadline.so.6 (0x00007f1603aa2000)
	libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007f160389d000)
	libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007f160367a000)
	libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007f1603453000)
	libz.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libz.so.1 (0x00007f160323d000)
	libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007f1602fbb000)
	libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007f1602d9e000)
	libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007f1602b9a000)
	libexpat.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libexpat.so.1 (0x00007f1602971000)
	libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007f16025ea000)
	/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003ba1600000)

$ arm-oe-linux-gnueabi-gdb 
*** glibc detected *** arm-oe-linux-gnueabi-gdb: double free or corruption (out): 0x0000000002347030 ***
Abandon (core dumped)

  parent reply	other threads:[~2012-03-22 12:18 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 16:35 [PATCH 0/1] fix for the sdk gdb issue nitin.a.kamble
2012-03-21 16:35 ` [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support" nitin.a.kamble
2012-03-21 17:07   ` Eric Bénard
2012-03-21 17:47     ` Kamble, Nitin A
2012-03-21 17:52       ` Eric Bénard
2012-03-21 17:57         ` Kamble, Nitin A
2012-03-21 18:02           ` Eric Bénard
2012-03-21 18:07             ` Kamble, Nitin A
2012-03-21 19:32               ` Eric Bénard
2012-03-21 19:49                 ` Martin Jansa
2012-03-21 20:48                   ` Kamble, Nitin A
2012-03-21 21:02                     ` Eric Bénard
2012-03-21 21:12                       ` Kamble, Nitin A
2012-03-21 21:35                         ` Eric Bénard
2012-03-21 21:53                           ` Kamble, Nitin A
2012-03-21 22:05                             ` Eric Bénard
2012-03-21 22:10                               ` Kamble, Nitin A
2012-03-21 22:21                                 ` Saul Wold
2012-03-21 22:37                                   ` Eric Bénard
2012-03-21 22:55                                     ` Kamble, Nitin A
2012-03-21 23:07                                     ` Kamble, Nitin A
2012-03-22 12:09                                   ` Eric Bénard [this message]
2012-03-21 22:22                               ` Kamble, Nitin A
2012-03-22  8:47                               ` Martin Jansa
2012-03-22  8:50                                 ` Eric Bénard
2012-03-22  0:27                             ` Khem Raj
2012-03-22  1:58                               ` Kamble, Nitin A
2012-03-22  4:24                                 ` Khem Raj
2012-03-22  4:55                                   ` Kamble, Nitin A
2012-03-22  5:06                                     ` Khem Raj
2012-03-22  5:42                                       ` Khem Raj
2012-03-22 12:13                                       ` Eric Bénard
2012-03-22 12:17                                         ` Khem Raj
2012-03-22 12:43                                           ` Eric Bénard
2012-03-22 12:57                                             ` Khem Raj
2012-03-22 13:14                                               ` Eric Bénard
2012-03-22 13:34                                                 ` Eric Bénard
2012-03-22 13:54                                                   ` Khem Raj
2012-03-22 16:20                                                 ` Kamble, Nitin A
2012-03-22 16:38                                                   ` Khem Raj
2012-03-22 17:38                                                     ` Kamble, Nitin A
2012-03-22 19:16                                                       ` Khem Raj
2012-03-22 21:31                                                         ` Eric Bénard
2012-03-22 21:40                                                           ` Kamble, Nitin A
2012-03-23  8:07                                                             ` Eric Bénard
2012-03-22 21:48                                                           ` Kamble, Nitin A
2012-03-23  5:33                                                             ` Khem Raj
2012-03-23  6:29                                                           ` Khem Raj
2012-03-23  7:12                                                           ` Khem Raj
2012-03-23  8:31                                                             ` Eric Bénard
2012-03-23 12:07                                                               ` Khem Raj
2012-03-23 16:07                                                                 ` Kamble, Nitin A
2012-03-21 22:04                           ` Kamble, Nitin A
2012-03-21 22:09                             ` Eric Bénard
2012-03-21 23:25                               ` Kamble, Nitin A
2012-03-21 23:29                               ` Richard Purdie
2012-03-21 21:48                       ` Kamble, Nitin A
2012-03-21 19:04             ` Kamble, Nitin A
2012-03-21 19:36               ` Eric Bénard
2012-03-21 19:48                 ` Kamble, Nitin A
2012-03-21 17:58         ` Martin Jansa
  -- strict thread matches above, loose matches on Subject: below --
2012-03-23 16:36 Khem Raj
2012-03-23 17:01 ` Kamble, Nitin A
2012-03-23 17:44   ` Richard Purdie
2012-03-23 18:01     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120322130918.189674f6@eb-e6520 \
    --to=eric@eukrea.com \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=sgw@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.