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

ExecutionPoints are not monotonically increasing #17

Open
lhchavez opened this issue Jun 18, 2021 · 3 comments
Open

ExecutionPoints are not monotonically increasing #17

lhchavez opened this issue Jun 18, 2021 · 3 comments
Labels
bug Something isn't working linear

Comments

@lhchavez
Copy link

lhchavez commented Jun 18, 2021

What steps will reproduce the bug?

If I set up several breakpoints, sometimes when looking for the next continue targets, the ExecutionPoints are not always monotonically increasing (w.r.t. time). here's a small trace from a session against https://replay.io/view?id=6dabd641-7891-470e-b2aa-e6c52e06a7f9 obtained by adding a few breakpoints and then calling Debugger.findResumeTarget on each ExecutionPoint:

INFO:root:Moving forward from 0 to {'point': '3458764449396031495', 'time': 0.005393452348848498, 'frame': [{'sourceId': '95', 'line': 2, 'column': 2}], 'reason': 'breakpoint'}
INFO:root:Moving forward from 3458764449396031495 to {'point': '4611685954002878504', 'time': 0.008090178523272746, 'frame': [{'sourceId': '95', 'line': 4, 'column': 18}], 'reason': 'breakpoint'}
INFO:root:Moving backwards from 4611685954002878504 to {'point': '31224573109202812141809', 'time': 73.03273825575751, 'frame': [{'sourceId': '95', 'line': 17, 'column': 15}], 'reason': 'breakpoint'}
INFO:root:Moving forward from 31224573109202812141809 to {'point': '42752635233766675054906', 'time': 99.99730327382558, 'frame': [{'sourceId': '95', 'line': 22, 'column': 2}], 'reason': 'breakpoint'}

What do you see instead?

Even though the times are increasing, the ExecutionPoints are not.

Additional information

Fiddling with the protocol directly, I cannot reproduce this from replay.io

@jasonLaster
Copy link

Can you share a bit more context on what you were doing? The logs seem right, but i'm not sure what i should be looking for.

@jasonLaster jasonLaster added the bug Something isn't working label Jun 18, 2021
@lhchavez
Copy link
Author

yes, i was trying to interleave the console messages and make them appear in the stdout of the process as the execution goes forwards in time. the above log was obtained by setting a couple of breakpoints and calling Debugger.findResumeTarget a few times. the non-monotonicity of the ExecutionPoints means that I can't know whether an ExecutionPoint happened before or after each of the console messages D:

@gideonred
Copy link

This ticket has been moved to RUN-6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linear
Projects
None yet
Development

No branches or pull requests

3 participants