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

main thread panics after exit bash command #2

Closed
winterrdog opened this issue Mar 6, 2022 · 7 comments
Closed

main thread panics after exit bash command #2

winterrdog opened this issue Mar 6, 2022 · 7 comments

Comments

@winterrdog
Copy link

i tried to run cliws's client side with a /bin/sh -i command on Kali Linux like so:

cliws -r ws://127.0.0.1:9090 /bin/sh -i 

But when i ran the exit bash command, the main thread panicked and displayed this code:

$ exit
thread 'main' panicked at 'Could not determine the UTC offset on this system. Possible causes are that the time crate does not implement "local_offset_at" on your system, or that you are running in a multi-threaded environment and the time crate is returning "None" from "local_offset_at" to avoid unsafe behaviour. See the time crate's documentation for more information. (https://time-rs.github.io/internal-api/time/index.html#feature-flags): IndeterminateOffset', /home/every_body/.cargo/registry/src/github.com-1ecc6299db9ec823/simple_logger-1.16.0/src/lib.rs:409:85
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

What could be the cause of this?

@b23r0
Copy link
Owner

b23r0 commented Mar 7, 2022

I guess cause is your OS time settings incorrect , so log library can't get correct system time.

you can reset and sync your system time and time zone , if still can't solve the problem , please reply the issue.

@b23r0
Copy link
Owner

b23r0 commented Mar 7, 2022

In next version , I maybe remove current log library for avoid the problem.

@winterrdog
Copy link
Author

I guess cause is your OS time settings incorrect , so log library can't get correct system time.

you can reset and sync your system time and time zone , if still can't solve the problem , please reply the issue.

I'll try this when I get to my machine. I'll provide you with the feedback 🤝

@winterrdog
Copy link
Author

I guess cause is your OS time settings incorrect , so log library can't get correct system time.

you can reset and sync your system time and time zone , if still can't solve the problem , please reply the issue.

I'll try this when I get to my machine. I'll provide you with the feedback 🤝

I changed the time settings but the problem is still recurring

@b23r0 b23r0 closed this as completed in d089595 Mar 8, 2022
@b23r0 b23r0 reopened this Mar 8, 2022
@b23r0
Copy link
Owner

b23r0 commented Mar 8, 2022

I guess cause is your OS time settings incorrect , so log library can't get correct system time.
you can reset and sync your system time and time zone , if still can't solve the problem , please reply the issue.

I'll try this when I get to my machine. I'll provide you with the feedback 🤝

I changed the time settings but the problem is still recurring

i check the error , maybe cause is a log library bug. I fixed and updated to 0.2.2 version.
you can try the pre-release version ( https://github.com/b23r0/cliws/releases/tag/v0.2.2 ) , if the version can resolved the problem , please feedback to me.

@winterrdog
Copy link
Author

I am going to definitely check it out. I am going to let u know

@winterrdog
Copy link
Author

I guess cause is your OS time settings incorrect , so log library can't get correct system time.
you can reset and sync your system time and time zone , if still can't solve the problem , please reply the issue.

I'll try this when I get to my machine. I'll provide you with the feedback handshake

I changed the time settings but the problem is still recurring

i check the error , maybe cause is a log library bug. I fixed and updated to 0.2.2 version. you can try the pre-release version ( https://github.com/b23r0/cliws/releases/tag/v0.2.2 ) , if the version can resolved the problem , please feedback to me.

Yes!
It's now fixed and the client gets closed nicely. I think you can release v0.2.2 .
With that, let me close the issue.

Nice work @b23r0 . I appreciate your time!

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