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

Bug: Core dump with the uring example #94

Open
2 tasks done
MarkReedZ opened this issue Apr 15, 2024 · 1 comment
Open
2 tasks done

Bug: Core dump with the uring example #94

MarkReedZ opened this issue Apr 15, 2024 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@MarkReedZ
Copy link
Contributor

MarkReedZ commented Apr 15, 2024

Describe the bug

On Ubuntu 22 with kernel 6.0.19 with the uring example the go client hangs and wrk causes a core dump.

On Ubuntu 23.10 with the base 6.5 kernel both cases hang.

Steps to reproduce

  cmake -DCMAKE_BUILD_TYPE=Release -B ./build_release  && make -C ./build_release
  ./build_release/build/bin/ucall_example_login_uring

  go run ./examples/login/jsonrpc_client.go
    hangs
  wrk -t1 -c1 -d2s http://localhost:8545/ -s examples/login/json.lua
    core dump

Expected behavior

Curl does work fine:

curl --header "Content-Type: application/json" --request POST --data '{"jsonrpc":"2.0","method":"validate_session","params":{"user_id":55,"session_id":21},"id":0}' http://localhost:8545/

{"jsonrpc":"2.0","id":0,"result":false}

UCall version

main branch

Operating System

Ubuntu 22.04

Hardware architecture

x86

Which interface are you using?

Native C interface

Which implementation are you using?

io_uring

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MarkReedZ MarkReedZ added bug Something isn't working invalid This doesn't seem right labels Apr 15, 2024
@MarkReedZ
Copy link
Contributor Author

This is fixed with the following PR.

#104

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

No branches or pull requests

1 participant