[LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range

Nick Kledzik kledzik at apple.com
Tue Oct 23 14:03:15 PDT 2012


On Oct 23, 2012, at 1:57 PM, Jack Howarth wrote:
> Nick,
>   Can I do this without access to a debug version of dyld? Using the copy of LLVMPolly.so with isl/cloog-isl/gmp statically linked,
> I find that if I set the breakpoint to the address of the initializer...
> 
> dyld: calling initializer function 0x100ebb3a0 in /sw/opt/llvm-3.2/lib/LLVMPolly.so
> dyld: lazy symbol binding failed: fast lazy bind offset out of range (114808, max=2928) in image /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin12.2.0/4.7.2/cc1
> dyld: fast lazy bind offset out of range (114808, max=2928) in image /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin12.2.0/4.7.2/cc1
> 
> with...
> 
> (gdb) break *0x100ebb3a0
> Breakpoint 2 at 0x100ebb3a0
> 
> this lands me at...
> 
> dyld: weak bind: LLVMPolly.so:0x1010F4BD0 = libc++.1.dylib:__Znwm, *0x1010F4BD0 = 0x7FFF898BD0DF
> 
> Breakpoint 2, 0x0000000100ebb3a0 in pch_address_space ()
> (gdb) si
> 0x0000000100ebb3a1 in pch_address_space ()
> (gdb) si
> 0x0000000100ebb3a4 in pch_address_space ()
> (gdb) si
> 0x0000000100ebb380 in pch_address_space ()
> (gdb) si
> 0x0000000100ebb381 in pch_address_space ()
> ...
> and on in various dyld calls. Will I really be able to get anything useful from this without a debug build of the system
> dyld installed?
>   
You just need a build of LLVMPolly.so that does not have symbols stripped.  Or get the .dSYM file for your build of LLVMPolly.so  and load that in gdb.

-Nick





More information about the llvm-dev mailing list