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

test-tcp fails on WSL ubuntu 18.04. #401

Open
SinisterRectus opened this issue Oct 9, 2019 · 2 comments
Open

test-tcp fails on WSL ubuntu 18.04. #401

SinisterRectus opened this issue Oct 9, 2019 · 2 comments

Comments

@SinisterRectus
Copy link
Member

This test is new with the upgrade to libuv 1.32.0.

Uncaught Error: tests/test-tcp.lua:158: assertion failed!
stack traceback:
        [C]: in function 'assert'
        tests/test-tcp.lua:158: in function 'fn'
        ./lib/tap.lua:48: in function <./lib/tap.lua:46>
        [C]: in function 'run'
        ./lib/tap.lua:55: in function <./lib/tap.lua:42>
        [C]: in function 'xpcall'
        ./lib/tap.lua:42: in function 'run'
        ./lib/tap.lua:138: in function <./lib/tap.lua:115>
        [C]: at 0x7f79f8008e25

Relevant code:

assert(err=='ECONNRESET')

In the read_start callback, data and err are both nil.

Encountered on WSL ubuntu 18.04. Cannot reproduce on native ubuntu 16.04 on a different machine. Not tested on native Windows 10 on the same machine.

@squeek502
Copy link
Member

Maybe it needs to match this assert?

assert(err=='ECONNRESET' or err==nil)

For reference, the Libuv test never checks for ECONNRESET: https://github.com/libuv/libuv/blob/v1.x/test/test-tcp-close-reset.c

@squeek502 squeek502 added the bug label Oct 9, 2019
@SinisterRectus SinisterRectus changed the title test-tcp failes on WSL ubuntu 18.04. test-tcp fails on WSL ubuntu 18.04. Oct 12, 2019
@SinisterRectus
Copy link
Member Author

This is not an issue in WSL2. No idea what causes it in WSL1. Probably not worth investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants