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

Segfault in async-std/execu #662

Closed
serzhiio opened this issue Jan 8, 2020 · 7 comments
Closed

Segfault in async-std/execu #662

serzhiio opened this issue Jan 8, 2020 · 7 comments

Comments

@serzhiio
Copy link

serzhiio commented Jan 8, 2020

from /var/log/messages

Jan  6 22:14:40 c2-7-sbg3 kernel: [64693.609394] async-std/execu[28429]: segfault at 0 ip 00007faa146058b0 sp 00007faa0fbfb3d8 error 4 in libc-2.28.so[7faa144cf000+148000]
Jan  6 22:14:40 c2-7-sbg3 kernel: [64693.615905] Code: c2 83 e8 ff 75 04 c5 f8 77 c3 f3 0f bc c8 0f b6 04 0f 0f b6 14 0e 29 d0 c5 f8 77 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 <0f> 38 f0 07 0f 38 f0 0e 48 c1 e0 20 48 c1 e1 20 0f 38 f0 7c 17 fc
Jan  8 00:11:35 c2-7-sbg3 kernel: [158106.772220] traps: async-std/execu[25206] general protection ip:7f31d5cf724a sp:7f31d54eaf10 error:0 in libc-2.28.so[7f31d5c98000+148000]

I recieve just this in console with no backtrace
Segmentation fault
Any ideas?

@serzhiio serzhiio changed the title Segafault in async-std/execu Segfault in async-std/execu Jan 8, 2020
@ghost
Copy link

ghost commented Jan 8, 2020

Can you do cargo update and try running again? The async-crate dependency got some fixes recently that might be related.

@serzhiio
Copy link
Author

serzhiio commented Jan 8, 2020

if you mean this:

   Compiling async-task v1.2.0
   Compiling async-std v1.4.0 (https://github.com/async-rs/async-std.git#383057b8)

updated just now...
but where is this error originated from? is it possible that it comes from my projects code?

@jmjoy
Copy link

jmjoy commented Jan 8, 2020

How about run on another machine or build with target musl? I just meet the same problem but because the machine's libc is broken...

@serzhiio
Copy link
Author

serzhiio commented Jan 8, 2020

@yoshuawuyts
Copy link
Contributor

yoshuawuyts commented Jan 8, 2020

Update from conversations in chat: we haven't confirmed yet whether this code originates in async-std or @serzhiio's application since they also have unsafe atomics code as part of their application.

edit: "async-std/executor" refers to an executor thread that's a part of async-std. These threads are intended to run user code, which means it's not an indicator of where the segfault originates.

@serzhiio
Copy link
Author

serzhiio commented Jan 9, 2020

Lets close this issue since i rewrote part of my code and problem seems gone.

@ktmlm
Copy link

ktmlm commented Mar 9, 2021

Lets close this issue since i rewrote part of my code and problem seems gone.

This may be caused by two async runtime embed together, see #929

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

4 participants