Comments (5)
@gbedoya I tested with Rust 1.39 and I am not able to reproduce it. Does it happen every time you run it?
Please try the commands below:
cargo clean
cargo update
cargo run --release sample.json
I do not get the panic but I noticed the error below in the nettfiske.log file, so I will investigate
[2019-12-04][17:19:10] Received unknown message: invalid type: null, expected a string at line 1 column 14112
[2019-12-04][17:19:10] Received unknown message: invalid type: null, expected a string at line 1 column 13827
[2019-12-04][17:19:11] Received unknown message: invalid type: null, expected a string at line 1 column 14112
[2019-12-04][17:19:38] Error setting UP log: logging initialization failed: attempted to set a logger after the logging system was already initialized
from nettfiske.
@gbedoya I fixed two problems, the error message in the log and the error you reported. Thank you for reporting. Please try the latest version and let me know if it is still a problem
from nettfiske.
@wisespace-io I'm having success with the provided sample.json
after the cargo clean & update. However, when I run with ...
{
"identities" : [
{
"common_name": "[REDACTED]"
}
]
}
Output:
➜ nettfiske git:(master) ✗ cargo run --release sample.json
Finished release [optimized] target(s) in 0.32s
Running `target/release/nettfiske sample.json`
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
[Nettfiske] 🔍 Fetching Certificates ...
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', /private/tmp/rust-20191107-43598-2ji78o/rustc-1.39.0-src/src/libcore/slice/mod.rs:2717:10
stack backtrace:
0: 0x1035e0a25 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h544524a7cfcf45ac
1: 0x103603351 - core::fmt::write::hde250ead077e2b4e
2: 0x1035ee519 - std::io::Write::write_fmt::ha9661be3deb7aad2
3: 0x1035e20ca - std::panicking::default_hook::{{closure}}::h3c4469e572d8fcea
4: 0x1035e1e1f - std::panicking::default_hook::h244274cbfa0d3cb9
5: 0x1035e2787 - std::panicking::rust_panic_with_hook::h1cc1b91b6800db27
6: 0x1035e22fd - std::panicking::continue_panic_fmt::h851031a5cf31ba4c
7: 0x1035e2259 - rust_begin_unwind
8: 0x1036104af - core::panicking::panic_fmt::hf9d97a028b885d64
9: 0x103610469 - core::panicking::panic_bounds_check::hf2b25cfb2f847acf
10: 0x10349cbc8 - nettfiske::nettfiske::Nettfiske::analyse_domain::hd95a176afb04a779
11: 0x103495da7 - <nettfiske::WebSocketHandler as nettfiske::websockets::EventHandler>::on_data_event::hc71149df536e2553
12: 0x103483749 - nettfiske::websockets::WebSockets::event_loop::h8abb8288feb13e5e
13: 0x103496da4 - nettfiske::main::h806cbf61d653a634
14: 0x1034a2886 - std::rt::lang_start::{{closure}}::h299c326dcec4af27
15: 0x1035e21e8 - std::panicking::try::do_call::h3aa3549642d783df
16: 0x1035f095f - __rust_maybe_catch_panic
17: 0x1035e6d53 - std::rt::lang_start_internal::h6a69b9e068efe0c5
18: 0x1034975e9 - main
from nettfiske.
@gbedoya Have you tried the latest version? Please check if it is version "0.2.4" in the Cargo.toml as the "Index Out of bounds" error should be fixed by now. If you cloned the repository do a
git fetch
git pull
You can also download the latest from https://github.com/wisespace-io/nettfiske/releases
I tried with the suggested sample and it ran for two hours without any "Index out of bounds" error.
{
"identities" : [
{
"common_name": "garmin"
}
]
}
from nettfiske.
@wisespace-io Grabbed the latest version and all is well. The performance provided by Rust is obvious compared to similar projects and makes this project stand out. Thanks.
from nettfiske.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nettfiske.