You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Robert Burke (Jira)" <ji...@apache.org> on 2020/01/31 22:09:00 UTC

[jira] [Updated] (BEAM-9233) Go: unregistered Go functions fail when using -buildmode=pie -ldflags=-w

     [ https://issues.apache.org/jira/browse/BEAM-9233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burke updated BEAM-9233:
-------------------------------
    Affects Version/s:     (was: 2.18.0)

> Go: unregistered Go functions fail when using -buildmode=pie -ldflags=-w
> ------------------------------------------------------------------------
>
>                 Key: BEAM-9233
>                 URL: https://issues.apache.org/jira/browse/BEAM-9233
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-go
>         Environment: GNU/Linux
>            Reporter: Ian Lance Taylor
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> If a Go program is built with -buildmode=pie -ldflags=-w, the code that transfers an unregistered function fails.  It tries to look up the symbol in the DWARF debug info, but that info has been stripped because of the -w flag.  This causes a program crash when calling the function.
> I have a patch for this problem that I will send shortly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)