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

carshed when use uv_queue_work #1968

Closed
ugiwgh opened this issue Aug 29, 2018 · 3 comments
Closed

carshed when use uv_queue_work #1968

ugiwgh opened this issue Aug 29, 2018 · 3 comments

Comments

@ugiwgh
Copy link

ugiwgh commented Aug 29, 2018

Version: libuv-1.23.0
Platform: Linux centos71611 3.10.0-693.2.2.el7_lustre.x86_64 #1 SMP Tue Oct 3 03:51:53 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The calltrace as follow:
#0 0x0000000000000000 in ?? ()
#1 0x00007f7b04a20e6f in worker (arg=0x0) at src/threadpool.c:83
#2 0x00007f7b04238dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007f7b0474c73d in clone () from /lib64/libc.so.6

Why the arg is null?

@ugiwgh
Copy link
Author

ugiwgh commented Aug 29, 2018

`
uv_loop_t *loop;
uv_work_t req;
loop=uv_default_loop();

while(1)
uv_queue_work(loop,&req,worker,after_worker);

uv_run(loop,UV_RUN_DEFAULT);
`

@cjihrig
Copy link
Contributor

cjihrig commented Aug 29, 2018

Can you ask your question on https://github.com/libuv/help, and please include a complete (runnable) code sample

@cjihrig cjihrig closed this as completed Aug 29, 2018
@ugiwgh
Copy link
Author

ugiwgh commented Aug 30, 2018

ok

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

No branches or pull requests

2 participants