Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/vm_snapshot_analysis/test/instruction_sizes_test failing #48339

Closed
dcharkes opened this issue Feb 8, 2022 · 5 comments
Closed

pkg/vm_snapshot_analysis/test/instruction_sizes_test failing #48339

dcharkes opened this issue Feb 8, 2022 · 5 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening

Comments

@dcharkes
Copy link
Contributor

dcharkes commented Feb 8, 2022

There are new test failures on [vm/compiler] Allow WB elimination for small arrays..

The tests

pkg/vm_snapshot_analysis/test/instruction_sizes_test RuntimeError (expected Pass)

are failing on configurations

unittest-asserts-release-mac
unittest-asserts-release-mac-arm64
  Expected: {
              'package:input': {
                '#type': 'package',
                'package:input/input.dart': {
                  '#type': 'library',
                  '::': {
                    '#type': 'class',
                    'makeSomeClosures': {
                      '#type': 'function',
                      '#size': <a value less than <0>>,
                      '<anonymous closure>': {'#type': 'function', '#size': <a value less than <0>>}
                    }
                  }
                }
              }
            }
    Actual: {
              'package:input': {
                'package:input/input.dart': {
                  '::': {
                    'makeSomeClosures': {
                      '<anonymous closure>': {'#size': -345, '#type': 'function'},
                      '#type': 'function'
                    },
                    '#type': 'class'
                  },
                  '#type': 'library'
                },
                '#type': 'package'
              }
            }
     Which: at location ['package:input']['package:input/input.dart']['::']['makeSomeClosures'] is {
              '<anonymous closure>': {'#size': -345, '#type': 'function'},
              '#type': 'function'
            } which has different length and is missing map key '#size'

logs

@dcharkes dcharkes added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Feb 8, 2022
@dcharkes dcharkes changed the title Failures on [vm/compiler] Allow WB elimination for small arrays. pkg/vm_snapshot_analysis/test/instruction_sizes_test failing Mar 8, 2022
@dcharkes
Copy link
Contributor Author

dcharkes commented Mar 8, 2022

The tests

pkg/vm_snapshot_analysis/test/instruction_sizes_test RuntimeError (expected Pass)

are failing on configurations

unittest-asserts-release-linux

This time on linux.

This test is failing, and flaking between timeout and failure.

test history.

log.

@a-siva
Copy link
Contributor

a-siva commented Aug 17, 2022

Saw another case of this on Windows, see log

@dcharkes
Copy link
Contributor Author

Another case on Windows, see log.

@aam
Copy link
Contributor

aam commented Oct 31, 2022

This failure

00:39 �[32m+2�[0m�[31m -1�[0m: instruction-sizes basic-parsing �[1m�[31m[E]�[0m�[0m

  Expected: true
    Actual: <false>
  All symbols should have unique names (within libraries): [Optimized] _awaitCompletedFuture@4048458.run

seems to be caused by https://github.com/dart-lang/sdk/blob/main/runtime/vm/object.cc#L10071 which doesn't account for the case of ambiguous named closures, which do happen to exist: https://github.com/dart-lang/sdk/blob/main/sdk/lib/_internal/vm/lib/async_patch.dart#L230 and https://github.com/dart-lang/sdk/blob/main/sdk/lib/_internal/vm/lib/async_patch.dart#L248

@aam
Copy link
Contributor

aam commented Oct 31, 2022

This failure

  Expected: contains 'tornOff{body}'
    Actual: {
              '[tear-off] tornOff': ProgramInfoNode:function package:input/input.dart::C.[tear-off] tornOff,
              'tornOff': ProgramInfoNode:function package:input/input.dart::C.tornOff
            }

has started with https://dart-review.googlesource.com/c/sdk/+/251300 which removed "{body}"-suffixed names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening
Projects
None yet
Development

No branches or pull requests

4 participants