[Bug 177686] assertion failed in ld-elf.so.1 when invoking telnet with parameters (clang, EABI)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 14 21:16:30 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=177686

v1ne2go at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |v1ne2go at gmail.com

--- Comment #3 from v1ne2go at gmail.com ---
As a quick workaround, setting LD_BIND_NOW helps.
I tried this on gmp, which passes make check with this flag -- except C++ tests
due to broken exceptions.
Without this, I also got some
  ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld_lock.c:233
messages.

So, what exactly is the difference when lazy binding comes into play?
>From my underständing, if a symbol is not bound, the process is as follows:
- I call some function func(), stack is 8-byte aligned
- func points to an rtld handler that loads the function and patches the
function table, stack is 8-byte aligned at the start and we crash somewhere in
rtld.
- rtld calls func()

vs.
- I call func(), stack is 8-byte aligned at this point
- func is being called

Was there any progress since the last year?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list