Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Shared objects, load order?
@ 2009-12-02  7:16 Joachim Pihl
       [not found] ` <4d28d4b50912020059t6ae52e8bx7b0f76db774e4cdd@mail.gmail.com>
  2009-12-02 12:44 ` Michael S. Zick
  0 siblings, 2 replies; 7+ messages in thread
From: Joachim Pihl @ 2009-12-02  7:16 UTC (permalink / raw)
  To: buildroot


I only have one hurdle left before the upgrade from 0.10.0 to 2009.11 is  
in place. It may be related to .so's referring other .so's.

In the beginning, I thought that _none_ of our C++ applications would run  
on the updated platform, they would all die with a segmentation fault  
before reaching main(). Then I discovered something interesting, namely  
that _one_ application actually runs. All the apps are production code,  
they run on the same hardware with the old buildroot system, so the fact  
that they do not all behave the same is intriguing. I think it may be  
caused by some .so referring something in another .so that has not been  
loaded yet. ldd shows that the working app and one of the crashing ones  
reference (in essence) the same .so's, but lists them in different order.

Works:

# ldd /multicon/gyda
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x4000e000)
	libgd.so.2 => /usr/lib/libgd.so.2 (0x4012b000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4016b000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x40191000)
	libz.so.1 => /usr/lib/libz.so.1 (0x401ab000)
	libboost_thread-mt.so => /usr/lib/libboost_thread-mt.so (0x401c4000)
	libspread.so.2 => /usr/lib/libspread.so.2 (0x401d8000)
	libcrypt.so.0 => /lib/libcrypt.so.0 (0x4023f000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x4025c000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x402c5000)
	libm.so.0 => /lib/libm.so.0 (0x40376000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40390000)
	libc.so.0 => /lib/libc.so.0 (0x403a3000)
	libdl.so.0 => /lib/libdl.so.0 (0x40401000)
	librt.so.0 => /lib/librt.so.0 (0x4040c000)
	libnsl.so.0 => /lib/libnsl.so.0 (0x40415000)
	ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)


Crashes:

# ldd /multicon/phy
	libboost_thread-mt.so => /usr/lib/libboost_thread-mt.so (0x4000e000)
	libspread.so.2 => /usr/lib/libspread.so.2 (0x40022000)
	libcrypt.so.0 => /lib/libcrypt.so.0 (0x40089000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x400a6000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4010f000)
	libm.so.0 => /lib/libm.so.0 (0x401c0000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x401da000)
	libc.so.0 => /lib/libc.so.0 (0x401ed000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x4024b000)
	librt.so.0 => /lib/librt.so.0 (0x40265000)
	libnsl.so.0 => /lib/libnsl.so.0 (0x4026e000)
	libdl.so.0 => /lib/libdl.so.0 (0x40277000)
	ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)


Any changes in uclibc regarding this over the last two years? I have seen  
that linkers are sometimes fuzzy about the ordering of static libraries, I  
have never had a problem with shared ones.


-- 
Joachim Pihl
Senior R&D Engineer
Nevion Europe

Tel: +47 33 48 94 66
Fax: +47 33 48 99 98
Mobile: +47 91 33 98 91
jpihl at nevion.com
www.nevion.com

------------------------------------------------------
The Global Video Transport Leader
------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-02 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02  7:16 [Buildroot] Shared objects, load order? Joachim Pihl
     [not found] ` <4d28d4b50912020059t6ae52e8bx7b0f76db774e4cdd@mail.gmail.com>
2009-12-02  9:04   ` Joachim Pihl
2009-12-02 12:54     ` Joachim Pihl
2009-12-02 13:04       ` Lionel Landwerlin
2009-12-02 12:44 ` Michael S. Zick
2009-12-02 13:04   ` Joachim Pihl
2009-12-02 13:03     ` Michael S. Zick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox