Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 14:00:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 236880] dlopen() of .so with tls fails on (32-bit) arm
Message-ID:  <bug-236880-7@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236880

            Bug ID: 236880
           Summary: dlopen() of .so with tls fails on (32-bit) arm
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: emaste@freebsd.org

On amd64, arm64 dlopen()ing a .so with TLS vars succeeds but vars are not
initialized; see kib@'s https://reviews.freebsd.org/D19072 for a patch to
address that.

On (32-bit) arm dlopen() of the TLS .so fails, with or without kib's patch.
Test code: https://github.com/emaste/test-tls-initial-exec

On amd64 or arm64 without the patch:

% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
*** Signal 11

Stop.

On amd64 or arm64 with the patch:

% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
foo: 2016

On armv7 with or without the patch (tested on BeagleBone Black):

% make test
LD_LIBRARY_PATH. ./app-link
foo: 2016
./app-dlopen
dlopen: dlerror() returned NULL, huh?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236880-7>