8000 Several crashes when checking for broken files · Issue #505 · Kampfkarren/selene · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Several crashes when checking for broken files #505

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

Open
qarmin opened this issue Apr 8, 2023 · 1 comment
Open

Several crashes when checking for broken files #505

qarmin opened this issue Apr 8, 2023 · 1 comment
Labels
C-bug Category: Bug

Comments

@qarmin
Copy link
qarmin commented Apr 8, 2023

Selene bf2aac0

When testing broken files, I got several crashes like

The application panicked (crashed).
Message:  default standard library 'lua52' failed deserialization: did not find expected key at line 9 column 3, while parsing a block mapping at line 4 column 2
Location: selene-lib/src/standard_library/mod.rs:331

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮                               
   9: selene_lib::standard_library::StandardLibrary::from_builtin_name::h20ada08d945d1e67
      at <unknown source file>:<unknown line>
  10: selene_lib::standard_library::StandardLibrary::from_name::hc639a8520c2417e0
      at <unknown source file>:<unknown line>
  11: once_cell::imp::OnceCell<T>::initialize::{{closure}}::h359f9e3bbcd3d814
      at <unknown source file>:<unknown line>
  12: once_cell::imp::initialize_or_wait::hafcd2638eded2e34
      at <unknown source file>:<unknown line>
  13: once_cell::imp::OnceCell<T>::initialize::h08a548c5e81973b8
      at <unknown source file>:<unknown line>
  14: selene_lib::possible_std::possible_standard_library_notes::h3a566aed6781e956
      at <unknown source file>:<unknown line>
  15: <selene_lib::lints::undefined_variable::UndefinedVariableLint as selene_lib::lints::Lint>::pass::h687b064bf7b42c24
      at <unknown source file>:<unknown line>
  16: selene_lib::Checker<V>::test_on::h495aa51b6ba0d93c
      at <unknown source file>:<unknown line>
  17: selene::read_file::hba192e0ba1d80ce4
      at <unknown source file>:<unknown line>
  18: <F as threadpool::FnBox>::call_box::hf31596c0d1af10e4
      at <unknown source file>:<unknown line>
  19: std::sys_common::backtrace::__rust_begin_short_backtrace::h903c203b4da65f6f
      at <unknown source file>:<unknown line>
  20: core::ops::function::FnOnce::call_once{{vtable.shim}}::h30257798cebf4c51
      at <unknown source file>:<unknown line>
  21: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1c0f3664d7ced314
      at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/alloc/src/boxed.rs:1988
  22: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h67647c21c6c4968a
      at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/alloc/src/boxed.rs:1988
  23: std::sys::unix::thread::Thread::new::thread_start::h355d348ba593a22c
      at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/sys/unix/thread.rs:108
  24: start_thread<unknown>
      at ./nptl/pthread_create.c:442
  25: __GI___clone3<unknown>
      at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.

Results:
0 errors
0 warnings
0 parse errors

if found such file, app should fail silently instead crashing

1375 broken files - Broken_1375.zip

Example of broken files

b = a
continue()
    bp.plugins:insert({
    })
@Kampfkarren
Copy link
Owner

Super interesting, thanks!

@Kampfkarren Kampfkarren added the C-bug Category: Bug label Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug
Projects
None yet
Development

No branches or pull requests

2 participants
0