From owner-freebsd-arm@FreeBSD.ORG Mon Jul 14 21:16:30 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 304A2D09 for ; Mon, 14 Jul 2014 21:16:30 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17D9F248D for ; Mon, 14 Jul 2014 21:16:30 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6ELGTBN052311 for ; Mon, 14 Jul 2014 21:16:29 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 177686] assertion failed in ld-elf.so.1 when invoking telnet with parameters (clang, EABI) Date: Mon, 14 Jul 2014 21:16:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 10.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: v1ne2go@gmail.com X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 21:16:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D177686 v1ne2go@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |v1ne2go@gmail.com --- Comment #3 from v1ne2go@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++ t= ests 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=C3=A4nding, if a symbol is not bound, the process is as fol= lows: - 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? --=20 You are receiving this mail because: You are the assignee for the bug.=