RedL0tus / VanityGPG

A simple tool for generating and filtering vanity GPG keys, c0nCurr3nt1Y
MIT License
69 stars 14 forks source link

Panic occurred #1

Open vaminakov opened 4 years ago

vaminakov commented 4 years ago

cargo install vanity_gpg Updating crates.io index Downloaded vanity_gpg v0.1.0 Downloaded 1 crate (13.3 KB) in 1.85s Installing vanity_gpg v0.1.0 Downloaded vec_map v0.8.2 Downloaded atty v0.2.14 Downloaded version_check v0.9.2 Downloaded aho-corasick v0.7.13 Downloaded cfg-if v0.1.10 Downloaded clap_derive v3.0.0-beta.1 Downloaded autocfg v1.0.1 Downloaded colored v1.9.3 Downloaded conv v0.3.3 Downloaded heck v0.3.1 Downloaded clap v3.0.0-beta.1 Downloaded proc-macro-error-attr v0.4.12 Downloaded os_str_bytes v2.3.2 Downloaded regex v1.3.9 Downloaded proc-macro-error v0.4.12 Downloaded regex-syntax v0.6.18 Downloaded smallvec v1.4.2 Downloaded static_assertions v1.1.0 Downloaded termcolor v1.1.0 Downloaded thread_local v1.0.1 Downloaded termios v0.3.2 Downloaded unicode-xid v0.2.1 Downloaded custom_derive v0.1.7 Downloaded lazy_static v1.4.0 Downloaded once_cell v1.4.1 Downloaded memchr v2.3.3 Downloaded log v0.4.11 Downloaded console v0.12.0 Downloaded anyhow v1.0.32 Downloaded unicode-width v0.1.8 Downloaded quote v1.0.7 Downloaded proc-macro2 v1.0.19 Downloaded bitflags v1.2.1 Downloaded textwrap v0.11.0 Downloaded terminal_size v0.1.13 Downloaded syn-mid v0.5.0 Downloaded strsim v0.10.0 Downloaded indexmap v1.5.1 Downloaded unicode-segmentation v1.6.0 Downloaded hashbrown v0.8.2 Downloaded number_prefix v0.3.0 Downloaded syn v1.0.39 Downloaded libc v0.2.76 Downloaded gpgme-sys v0.9.1 Downloaded cstr-argument v0.1.1 Downloaded libgpg-error-sys v0.5.2 Downloaded indicatif v0.14.0 Downloaded gpg-error v0.5.2 Downloaded gpgme v0.9.2 Downloaded 49 crates (2.5 MB) in 2.05s Compiling libc v0.2.76 Compiling proc-macro2 v1.0.19 Compiling unicode-xid v0.2.1 Compiling version_check v0.9.2 Compiling memchr v2.3.3 Compiling autocfg v1.0.1 Compiling libgpg-error-sys v0.5.2 Compiling syn v1.0.39 Compiling lazy_static v1.4.0 Compiling unicode-width v0.1.8 Compiling bitflags v1.2.1 Compiling regex-syntax v0.6.18 Compiling cfg-if v0.1.10 Compiling unicode-segmentation v1.6.0 Compiling gpgme-sys v0.9.1 Compiling gpg-error v0.5.2 Compiling anyhow v1.0.32 Compiling log v0.4.11 Compiling custom_derive v0.1.7 Compiling strsim v0.10.0 Compiling vec_map v0.8.2 Compiling os_str_bytes v2.3.2 Compiling once_cell v1.4.1 Compiling termcolor v1.1.0 Compiling static_assertions v1.1.0 Compiling smallvec v1.4.2 Compiling number_prefix v0.3.0 Compiling thread_local v1.0.1 Compiling textwrap v0.11.0 Compiling heck v0.3.1 Compiling conv v0.3.3 Compiling proc-macro-error-attr v0.4.12 Compiling proc-macro-error v0.4.12 Compiling hashbrown v0.8.2 Compiling indexmap v1.5.1 Compiling aho-corasick v0.7.13 Compiling cstr-argument v0.1.1 Compiling quote v1.0.7 Compiling atty v0.2.14 Compiling terminal_size v0.1.13 Compiling termios v0.3.2 Compiling colored v1.9.3 Compiling regex v1.3.9 Compiling gpgme v0.9.2 Compiling console v0.12.0 Compiling indicatif v0.14.0 Compiling syn-mid v0.5.0 Compiling clap_derive v3.0.0-beta.1 Compiling clap v3.0.0-beta.1 Compiling vanity_gpg v0.1.0 Finished release [optimized] target(s) in 1m 57s Installing /home/vvl/.cargo/bin/vanity_gpg Installed package vanity_gpg v0.1.0 (executable vanity_gpg)

Then trying to run it with any params:

/home/vvl/.cargo/bin/vanity_gpg -p 123 INFO [vanity_gpg] Main: Staring VanityGPG version v0.1.0 INFO [vanity_gpg] Main: (So fast, such concurrency, wow) INFO [vanity_gpg] Main: Please report issues to "https://github.com/RedL0tus/VanityGPG" INFO [vanity_gpg] Main: Starting 1 threads... INFO [vanity_gpg] (0): Staring... ▸▹▹▹▹ Summary: found 0 (total generated 0) Panic occurred In file "/home/vvl/.cargo/registry/src/github.com-1ecc6299db9ec823/vanity_gpg-0.1.0/src/main.rs" at line "160" Please report this panic to https://github.com/RedL0tus/VanityGPG/issues Panic occurred In file "/home/vvl/.cargo/registry/src/github.com-1ecc6299db9ec823/vanity_gpg-0.1.0/src/main.rs" at line "215" Please report this panic to https://github.com/RedL0tus/VanityGPG/issues

RedL0tus commented 4 years ago

Sorry for the late reply and the issue. It's probably caused by some FFI problem related to GPGme, and my garbage panic handler code hid the backtraces.

I'm planning to refactor the whole program with SequoiaPGP, please wait for a moment.

RedL0tus commented 4 years ago

I've just finished the refactor(with a few additional dependencies), would you like to have a try?