-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable][build] Don't export all symbols to the dynamic table.
We were exporting all symbols to the dynamic table so that they could be looked up using `dladdr` for the profiler and backtracer. The symbols include our statically-linked libcxx, which can create trouble when another DSO has a different version of libcxx. Now we export only the VM embedding API functions (`Dart_*`) and use a specially produced table to do the symbolization. Bug: #53267 Change-Id: I50f8150d194a564c116d95383c28a1a2aba0714e Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/323702 Cherry-pick-request: #53503 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325126 Reviewed-by: Michael Thomsen <mit@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Siva Annamalai <asiva@google.com>
- Loading branch information
1 parent
8f28795
commit c05b29e
Showing
22 changed files
with
303 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import "dart:io"; | ||
|
||
import 'package:expect/expect.dart'; | ||
import 'package:path/path.dart' as path; | ||
|
||
main() { | ||
if (Platform.isWindows) return; // posix exit codes | ||
if (Platform.isAndroid) return; // run_vm_tests not available on test device | ||
|
||
var run_vm_tests = | ||
path.join(path.dirname(Platform.resolvedExecutable), "run_vm_tests"); | ||
var result = Process.runSync(run_vm_tests, ["Fatal"]); | ||
print(result.exitCode); | ||
print(result.stdout); | ||
print(result.stderr); | ||
|
||
Expect.contains( | ||
"error: This test fails and produces a backtrace", result.stderr); | ||
|
||
// Check for the frames that are marked never inline or have their address | ||
// taken, and so should be stable to changes in the C compiler. There are of | ||
// course more frames. | ||
Expect.contains("dart::Assert::Fail", result.stderr); | ||
Expect.contains("Dart_TestFatal", result.stderr); | ||
Expect.contains("main", result.stderr); | ||
} |
Oops, something went wrong.