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

assertion failed in async http handler when mutating external #59

Closed
y21 opened this issue Apr 25, 2023 · 1 comment
Closed

assertion failed in async http handler when mutating external #59

y21 opened this issue Apr 25, 2023 · 1 comment
Labels
A-rt Runtime related issues A-vm bug Something isn't working

Comments

@y21
Copy link
Owner

y21 commented Apr 25, 2023

Code:

import * as http from '@std/http';

let _t = 0;
http.listen(3000, async function (ctx) {
    _t++;
    ctx.respond({});
});

Output:

dash has unexpectedly panicked! this is a bug!

panicked at 'internal error: entered unreachable code', crates/dash_vm/src/dispatch.rs:1280:55
set RUST_BACKTRACE=1 to print a backtrace
dash has unexpectedly panicked! this is a bug!

panicked at 'called `Result::unwrap()` on an `Err` value: RecvError(())', crates/dash_rt_http/src/lib.rs:107:45
set RUST_BACKTRACE=1 to print a backtrace
dash has unexpectedly panicked! this is a bug!

panicked at 'assertion failed: `(left == right)`
  left: `ThreadId(1)`,
 right: `ThreadId(2)`', crates/dash_middle/src/util.rs:153:9
set RUST_BACKTRACE=1 to print a backtrace
thread panicked while panicking. aborting.
Aborted
@y21 y21 added bug Something isn't working A-vm A-rt Runtime related issues labels Apr 25, 2023
@y21
Copy link
Owner Author

y21 commented Jul 31, 2023

Doesn't seem to reproduce anymore. Odd. Closing for now.

@y21 y21 closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rt Runtime related issues A-vm bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant