Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14237

Golang Beam ParDo job not working as expected on Apple M1 chip

Details

    • Bug
    • Status: Open
    • P2
    • Resolution: Unresolved
    • 2.37.0
    • None
    • sdk-go
    • None

    Description

      Reproducible example:

      reproducible.go: https://pastebin.com/raw/LqADath4

      go.mod: https://pastebin.com/raw/qXmyh62N

      run cmd: go run reproducible.go --output output.tsv

      On lines 29-31, the program is supposed to read from rowIter function only while new data is available (this is standard interface to read input after GroupBy operation).

      Instead, the cycle runs indefinitely. In gdb/debug prints it can be clearly seen that program just steps through the "if !b" block when "b" is false.

      Supposedly this is the cause of UB from ABI function call inside beam.

       

      Go version: go1.18 darwin/arm64

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgaiduk Maksim Gaiduk
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: