Comments (7)
@DanTup and @bkonyi can you please take a look?
from sdk.
I'll see if I can reproduce.
from sdk.
I can reproduce and the assert is failing with offset == 0
. I'm not sure the assert we're hitting is quite right. We check to see if offset < 0
in GetObject
and then immediately assert that offset > 0
.
from sdk.
@bkonyi is this something wrong in the VM, or in DAP? The noted change did add a new test that will trigger a bunch of getObject()
calls for items in a large list (and will deliberately exhaust the ring buffer to test handling of expired references).
Edit: I re-read it, and guess this is a VM issue? Even if the request to the VM service is invalid, I think it shouldn't fail an assert like this?
from sdk.
Yeah, this is a VM issue. We just had a bad assertion in the C++ code that fails if you try and provide an offset or count of 0 to the getObject
call.
from sdk.
We just had a bad assertion in the C++ code that fails if you try and provide an offset or count of 0 to the getObject call.
I presume this didn't show up for me because I was using a bleeding-edge SDK build (which I think doesn't include asserts)? But why didn't it show up on the trybots?
(I'm also surprised we've never sent an offset of 0 in any of the other tests! Was there some other condition, or should offset=0 have failed consistently? 🤔)
from sdk.
We just had a bad assertion in the C++ code that fails if you try and provide an offset or count of 0 to the getObject call.
I presume this didn't show up for me because I was using a bleeding-edge SDK build (which I think doesn't include asserts)? But why didn't it show up on the trybots?
Correct, this assertion would only be hit in VMs built in DEBUG mode. It looks like there's a slight hole in the CQ configuration selection. I think we only run analysis and the pkg bots for pkg/dds
CQ runs, which don't include any debug configurations.
(I'm also surprised we've never sent an offset of 0 in any of the other tests! Was there some other condition, or should offset=0 have failed consistently? 🤔)
Apparently not! It should have failed consistently in DEBUG builds.
from sdk.
Related Issues (20)
- [dartfuzz] runtime/vm/code_patcher_x64.cc: 80: error: Expected `call [CODE_REG + offs]`
- [dartfuzz] runtime/vm/instructions_riscv.cc: 215: error: unreachable code
- [dartfuzz] runtime/vm/object.h: 4278: error: expected: ptr() != null()
- [dartfuzz] runtime/vm/object.cc: 17505: error: expected: !is_megamorphic || result.NumberOfChecks() >= FLAG_max_polymorphic_checks
- "Cannot invoke a native callback outside of an isolate" Flutter FFI HOT 4
- Failures on [ package:vm_service ] Automatically invoke VmService.dispose() when the service connection closes...[dart2wasm] Move type parameter bounds checks & parameter type check logic together with logic setting up variables HOT 1
- Hide `@nonVirtual` methods in autocomplete? HOT 2
- Connect to the Dart Tooling Daemon from the Analysis Server
- Dart code does not always appear in traces in devtools
- [analyzer] Crash type 'AugmentedExpressionImpl' is not a subtype of type 'SimpleIdentifierImpl' in type cast
- [analyzer] Unsupported operation: Unhandled AugmentedExpressionImpl in identifier.
- [analyzer] No error if a local variable named `augmented` is declared inside of augmenting function
- [analyzer] No error to tear-off `augmented` inside of augmenting function
- `ConstructorDefinitionBuilder.augment` cannot augment factory constructor
- [vm] Dart AOT runtime should refuse to run snapshots with incompatible sanitizers HOT 2
- [vm] gen_snapshot without santizers should be able to create AOT snapshots to be used with AOT runtimes with sanitizers HOT 1
- [CRASH] `dart run` fails logging `Compilation did not produce any result...` and crashes with `PathNotFoundException` HOT 5
- allow to destructure record types with positional fields HOT 8
- [analyzer] add warning when abstract interface class has unused implementation.
- [analyzer] incorrectly marking as dead code when accessing record property in ternary HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.