runtime,cmd/compile: -buildmode=c-shared and dlopen-ing a shared library #16805
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
early-in-cycle
A change that should be done early in the 3 month dev cycle.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
consider the following
GOPATH
:with:
and:
running the following command, gives:
ie: the addresses of
pkg1.Int
andpkg1.Map
are not the same when inspected from thego.main()
orpkg1.init
and when inspected from the dynamically loadedmylib.so
shared library.also,
pkg1.init()
is run twice.here is my environment:
from my reading of https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/edit# this shouldn't happen, even when using the
c-shared
buildmode instead of theplugin
buildmode.@ianlancetaylor @crawshaw : right ?
The text was updated successfully, but these errors were encountered: