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

Fixed crash when resolving a symbol on invalid private identifier in type reference #60013

Conversation

Andarist
Copy link
Contributor

No description provided.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Sep 20, 2024
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@jakebailey
Copy link
Member

Is there a linked issue / crash report for this?

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 24, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems correct to me if perf doesn't change.

@typescript-bot
Copy link
Collaborator

@jakebailey
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,340 62,340 ~ ~ ~ p=1.000 n=6
Types 50,378 50,378 ~ ~ ~ p=1.000 n=6
Memory used 192,772k (± 0.08%) 194,476k (± 1.00%) ~ 192,687k 196,318k p=0.336 n=6
Parse Time 1.30s (± 0.79%) 1.32s (± 0.42%) +0.01s (+ 0.90%) 1.31s 1.32s p=0.038 n=6
Bind Time 0.71s 0.71s (± 0.57%) ~ 0.71s 0.72s p=0.405 n=6
Check Time 9.54s (± 0.24%) 9.55s (± 0.24%) ~ 9.52s 9.58s p=0.570 n=6
Emit Time 2.71s (± 1.92%) 2.71s (± 1.45%) ~ 2.63s 2.74s p=0.808 n=6
Total Time 14.27s (± 0.36%) 14.29s (± 0.32%) ~ 14.21s 14.35s p=0.518 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 947,102 947,102 ~ ~ ~ p=1.000 n=6
Types 410,738 410,738 ~ ~ ~ p=1.000 n=6
Memory used 1,223,987k (± 0.00%) 1,224,030k (± 0.00%) ~ 1,223,984k 1,224,089k p=0.128 n=6
Parse Time 6.61s (± 1.09%) 6.63s (± 0.61%) ~ 6.59s 6.70s p=0.688 n=6
Bind Time 1.87s (± 0.81%) 1.87s ~ ~ ~ p=0.598 n=6
Check Time 31.27s (± 0.26%) 31.35s (± 0.36%) ~ 31.25s 31.55s p=0.195 n=6
Emit Time 15.06s (± 0.67%) 15.02s (± 0.63%) ~ 14.83s 15.08s p=0.748 n=6
Total Time 54.80s (± 0.33%) 54.87s (± 0.32%) ~ 54.68s 55.18s p=0.575 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,521,651 2,521,651 ~ ~ ~ p=1.000 n=6
Types 936,037 936,037 ~ ~ ~ p=1.000 n=6
Memory used 2,351,815k (± 0.00%) 2,351,857k (± 0.00%) ~ 2,351,809k 2,351,984k p=0.093 n=6
Parse Time 13.61s (± 0.29%) 13.61s (± 0.26%) ~ 13.55s 13.65s p=0.935 n=6
Bind Time 3.16s (± 0.71%) 3.14s (± 0.37%) -0.03s (- 0.84%) 3.13s 3.16s p=0.021 n=6
Check Time 106.18s (± 0.63%) 106.25s (± 0.36%) ~ 105.83s 106.89s p=0.936 n=6
Emit Time 0.39s (± 3.24%) 0.39s (± 3.24%) ~ 0.38s 0.41s p=1.000 n=6
Total Time 123.34s (± 0.56%) 123.38s (± 0.32%) ~ 123.01s 124.08s p=0.936 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,250,019 1,250,019 ~ ~ ~ p=1.000 n=6
Types 264,952 264,952 ~ ~ ~ p=1.000 n=6
Memory used 2,404,066k (± 0.03%) 2,404,041k (± 0.02%) ~ 2,403,517k 2,404,686k p=0.575 n=6
Parse Time 5.15s (± 0.91%) 5.14s (± 0.93%) ~ 5.08s 5.20s p=0.748 n=6
Bind Time 1.91s (± 0.51%) 1.90s (± 0.27%) ~ 1.90s 1.91s p=0.417 n=6
Check Time 34.82s (± 0.11%) 34.88s (± 0.13%) +0.06s (+ 0.17%) 34.83s 34.94s p=0.037 n=6
Emit Time 3.01s (± 3.31%) 3.08s (± 4.35%) ~ 3.01s 3.35s p=0.077 n=6
Total Time 44.89s (± 0.40%) 45.00s (± 0.22%) ~ 44.89s 45.18s p=0.093 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,250,019 1,250,019 ~ ~ ~ p=1.000 n=6
Types 264,952 264,952 ~ ~ ~ p=1.000 n=6
Memory used 2,479,448k (± 0.02%) 2,487,070k (± 0.81%) ~ 2,478,207k 2,528,443k p=0.230 n=6
Parse Time 7.89s (± 0.33%) 7.92s (± 0.84%) ~ 7.81s 8.01s p=0.261 n=6
Bind Time 2.53s (± 0.60%) 2.53s (± 0.79%) ~ 2.50s 2.56s p=0.871 n=6
Check Time 51.88s (± 0.83%) 51.71s (± 1.05%) ~ 50.96s 52.21s p=0.810 n=6
Emit Time 4.38s (± 1.24%) 4.39s (± 4.89%) ~ 4.12s 4.78s p=0.688 n=6
Total Time 66.68s (± 0.70%) 66.55s (± 0.83%) ~ 65.57s 67.00s p=0.936 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 260,921 260,921 ~ ~ ~ p=1.000 n=6
Types 106,369 106,369 ~ ~ ~ p=1.000 n=6
Memory used 436,546k (± 0.02%) 436,537k (± 0.02%) ~ 436,410k 436,725k p=0.936 n=6
Parse Time 4.24s (± 0.49%) 4.26s (± 0.43%) ~ 4.24s 4.29s p=0.076 n=6
Bind Time 1.60s (± 0.85%) 1.61s (± 0.61%) ~ 1.60s 1.62s p=0.673 n=6
Check Time 22.50s (± 0.39%) 22.38s (± 0.27%) -0.12s (- 0.54%) 22.30s 22.47s p=0.020 n=6
Emit Time 1.87s (± 0.40%) 1.85s (± 1.73%) ~ 1.80s 1.89s p=0.416 n=6
Total Time 30.21s (± 0.31%) 30.10s (± 0.26%) ~ 29.99s 30.20s p=0.093 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,916 225,916 ~ ~ ~ p=1.000 n=6
Types 94,414 94,414 ~ ~ ~ p=1.000 n=6
Memory used 370,927k (± 0.03%) 370,921k (± 0.02%) ~ 370,836k 371,047k p=1.000 n=6
Parse Time 3.45s (± 0.97%) 3.43s (± 0.82%) ~ 3.40s 3.47s p=0.293 n=6
Bind Time 1.92s (± 1.22%) 1.92s (± 1.96%) ~ 1.88s 1.98s p=0.935 n=6
Check Time 19.46s (± 0.19%) 19.46s (± 0.19%) ~ 19.42s 19.52s p=1.000 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.83s (± 0.31%) 24.82s (± 0.33%) ~ 24.72s 24.92s p=0.809 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,099,752 3,099,752 ~ ~ ~ p=1.000 n=6
Types 1,068,967 1,068,967 ~ ~ ~ p=1.000 n=6
Memory used 3,196,730k (± 0.00%) 3,196,758k (± 0.00%) ~ 3,196,699k 3,196,824k p=0.575 n=6
Parse Time 13.92s (± 0.46%) 13.95s (± 0.28%) ~ 13.89s 13.99s p=0.630 n=6
Bind Time 4.45s (± 2.38%) 4.45s (± 2.50%) ~ 4.37s 4.59s p=0.807 n=6
Check Time 82.35s (± 0.39%) 82.42s (± 0.31%) ~ 82.04s 82.79s p=0.810 n=6
Emit Time 22.38s (± 0.75%) 22.41s (± 0.18%) ~ 22.35s 22.45s p=0.261 n=6
Total Time 123.11s (± 0.42%) 123.22s (± 0.23%) ~ 122.89s 123.68s p=0.689 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 278,920 278,920 ~ ~ ~ p=1.000 n=6
Types 113,837 113,837 ~ ~ ~ p=1.000 n=6
Memory used 428,367k (± 0.02%) 428,407k (± 0.02%) ~ 428,288k 428,476k p=0.471 n=6
Parse Time 4.89s (± 0.43%) 4.91s (± 0.40%) ~ 4.89s 4.93s p=0.067 n=6
Bind Time 2.12s (± 0.40%) 2.12s (± 1.25%) ~ 2.10s 2.17s p=0.933 n=6
Check Time 21.78s (± 0.55%) 21.82s (± 0.53%) ~ 21.68s 21.98s p=0.630 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 28.78s (± 0.41%) 28.86s (± 0.52%) ~ 28.70s 29.04s p=0.423 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 540,027 540,027 ~ ~ ~ p=1.000 n=6
Types 181,292 181,292 ~ ~ ~ p=1.000 n=6
Memory used 483,545k (± 0.02%) 483,546k (± 0.01%) ~ 483,511k 483,618k p=0.689 n=6
Parse Time 2.70s (± 0.56%) 2.70s (± 0.49%) ~ 2.68s 2.72s p=0.742 n=6
Bind Time 0.95s (± 0.86%) 0.96s (± 0.54%) ~ 0.95s 0.96s p=0.523 n=6
Check Time 15.67s (± 0.30%) 15.64s (± 0.33%) ~ 15.56s 15.70s p=0.462 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 19.33s (± 0.17%) 19.30s (± 0.21%) ~ 19.25s 19.34s p=0.332 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/60013/merge:

Everything looks good!

@Andarist
Copy link
Contributor Author

Is there a linked issue / crash report for this?

No, I noticed this crash in the playground's console when working on minimizing a repro for some other issue 😉

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/60013/merge:

Everything looks good!

@jakebailey jakebailey merged commit e962037 into microsoft:main Sep 24, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants