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

Dart silently crashes with exit code -1073741571 #45443

Closed
iarkh opened this issue Mar 24, 2021 · 2 comments
Closed

Dart silently crashes with exit code -1073741571 #45443

iarkh opened this issue Mar 24, 2021 · 2 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@iarkh
Copy link
Contributor

iarkh commented Mar 24, 2021

Dart SDK version: 2.13.0-161.0.dev (dev) (Mon Mar 22 19:57:50 2021 -0700) on "windows_x64"

Dart silently crashes with exit code -1073741571 when runs the following source code example:

test.dart:

class C1<T extends void Function<TT extends T>()> {}
class C2<T extends TT Function<TT extends T>()> {}

main() {
  print("OK");
}

If I comment line #1 or #line #2, it prints "OK" and finishes with the exit code 0.

To reproduce on Windows please run the following script:

@echo off
dart --enable-experiment=generic-metadata test.dart 
echo error is %errorlevel%

Sample output is:
error is -1073741571

@iarkh iarkh added the crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. label Mar 24, 2021
@devoncarew devoncarew added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Mar 24, 2021
@a-siva a-siva added this to the March Beta Release milestone Mar 24, 2021
@a-siva a-siva added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Mar 24, 2021
@a-siva
Copy link
Contributor

a-siva commented Mar 24, 2021

Seems to get into an infinite recursion

#16 0x000055555750b797 in dart::TypeParameter::IsEquivalent (
    this=0x555558db5cd0, other=..., kind=dart::TypeEquality::kCanonical, 
    trail=0x7ffff7305380) at ../../runtime/vm/object.cc:21156
#17 0x00005555574b5493 in dart::FunctionType::HasSameTypeParametersAndBounds (
    this=<optimized out>, other=..., kind=dart::TypeEquality::kCanonical)
    at ../../runtime/vm/object.cc:8572
#18 0x0000555557506463 in dart::FunctionType::IsEquivalent (
    this=0x555558db5c90, other=..., kind=dart::TypeEquality::kCanonical, 
    trail=0x7ffff7305338) at ../../runtime/vm/object.cc:20270
#19 0x000055555750b6fb in dart::TypeParameter::IsEquivalent (
    this=0x555558db5c70, other=..., kind=<optimized out>, 
    trail=0x555557bafa08 <FLAG__namespace_do_not_use_directly_use_DECLARE_int64_instead::FLAGS_tcmalloc_heap_limit_mb>) at ../../runtime/vm/object.cc:21206
#20 0x000055555750b797 in dart::TypeParameter::IsEquivalent (
    this=0x555558db5c50, other=..., kind=dart::TypeEquality::kCanonical, 
    trail=0x7ffff7305338) at ../../runtime/vm/object.cc:21156
#21 0x00005555574b5493 in dart::FunctionType::HasSameTypeParametersAndBounds (
    this=<optimized out>, other=..., kind=dart::TypeEquality::kCanonical)
    at ../../runtime/vm/object.cc:8572
#22 0x0000555557506463 in dart::FunctionType::IsEquivalent (
    this=0x555558db5c10, other=..., kind=dart::TypeEquality::kCanonical, 
    trail=0x7ffff73052f0) at ../../runtime/vm/object.cc:20270
#23 0x000055555750b6fb in dart::TypeParameter::IsEquivalent (
    this=0x555558db5bf0, other=..., kind=<optimized out>, 
    trail=0x555557bafa08 <FLAG__namespace_do_not_use_directly_use_DECLARE_int64_instead::FLAGS_tcmalloc_heap_limit_mb>) at ../../runtime/vm/object.cc:21206

@crelier
Copy link
Contributor

crelier commented Mar 24, 2021

Fix was sent for review: https://dart-review.googlesource.com/c/sdk/+/192947
Thanks for the report!

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. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

4 participants