Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in dyld



That'd be a bug in the linker (ld), not in dyld. Please file a bug report.

-Eric

On Sep 26, 2006, at 12:21 PM, Peter Hull wrote:

Dear All,

I've come across a bug in dyld, when a C++ program is linked with the
-s option.
The error message is:

dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
Trace/BPT trap

It must be a 'known problem' because have seen several references to
it on the internet (see below), but none seem to suggest that there is
a fix from Apple in the pipeline. Has anyone got any definitive
information on this or should I submit a bug report to Apple?

Peter

More info:

An example, minimal program:
// example.cc
struct Object
{
 virtual void func(void) {}
 virtual ~Object() {};
};

int main()
{
 Object o;
 return 0;
}
// End

Steps to reproduce:
1. compile with g++ -s example.cc -o example
2. run with ./example
3. Error message appears

It does not appear:
1. If you omit the -s option
2. If you use -Wl,-x instead of -s
3. If you omit the -s option and subsequently use strip(1)

My system:
Mac OS X 10.4.7
iMac 1.83GHz Intel Core Due
gcc version 4.0.1 (Apple Computer, Inc. build 5363)


References:
http://lists.apple.com/archives/Streaming-server-dev/2006/Feb/ msg00010.html
http://www.cocoabuilder.com/archive/message/xcode/ 2005/11/21/1344http://forum.openmsx.org/search.php?search_author=mth
http://phorum5.greennet.org.uk/read.php?22,1296,1307
http://www.andre-simon.de/dokuwiki/doku.php?id=en:installation_macos
etc etc

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Bug in dyld (From: "Peter Hull" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.