http://bugzilla.opensuse.org/show_bug.cgi?id=1189697
Bug ID: 1189697
Summary: tokei 9.1.1 panics on unknown file extensions
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: x86-64
OS: openSUSE Tumbleweed
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
Assignee: screening-team-bugs@suse.de
Reporter: andreas_nordal_4@hotmail.com
QA Contact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101
Firefox/93.0
Build Identifier:
Installing tokei from software.opensuse.org (repository
http://download.opensuse.org/repositories/devel:/languages:/rust:/crates/ope...)
yields an old version: tokei 9.1.1
That old version apparently panics on unknown file extensions:
```
thread '<unnamed>' panicked at 'attempted to leave type
`std::mem::ManuallyDropinternal::SealedBag` uninitialized, which is invalid',
/home/abuild/rpmbuild/BUILD/rustc-1.54.0-src/library/core/src/mem/mod.rs:660:9
stack backtrace:
0: 0x55c98561575a -
::fmt::hdfe31729c82df2d4
1: 0x55c985564f6c - core::fmt::write::h5f71181dea975770
2: 0x55c9856121e4 - std::io::Write::write_fmt::h64bd00c9cf5ea629
3: 0x55c9856138b5 -
std::panicking::default_hook::{{closure}}::h5c8802dfe3fb635a
4: 0x55c985614249 -
std::panicking::rust_panic_with_hook::h12a53ac48ba3ab7d
5: 0x55c985615f00 -
std::panicking::begin_panic_handler::{{closure}}::hd34cf7e788167465
6: 0x55c985615e9c -
std::sys_common::backtrace::__rust_end_short_backtrace::h15c15a489dd7c1df
7: 0x55c985613bcd - rust_begin_unwind
8: 0x55c9854e8b60 - core::panicking::panic_fmt::hbc70c62ee9006e2a
9: 0x55c9854e8bbc - core::panicking::panic::hfbd94c6ccf7f267c
10: 0x55c985567bb8 -
crossbeam_epoch::sync::queue::Queue<T>::new::he8f5f4a9a66b8fe7
11: 0x55c985567b87 -
crossbeam_epoch::internal::Global::new::h7ba45b8af7765860
12: 0x55c985567b66 -
crossbeam_epoch::collector::Collector::new::h60bc8803e0423ad7
13: 0x55c985568196 -
core::ops::function::FnOnce::call_once::h0f109648020eccdd
14: 0x55c985568138 -
std::sync::once::Once::call_once::{{closure}}::h5f70e25bb560a3e7
15: 0x55c9854f07ea - std::sync::once::Once::call_inner::h395353bb546a5255
16: 0x55c9855681f7 - ::deref::h4e54642219b5078d
17: 0x55c9855a342f -
std::thread::local::fast::Key<T>::try_initialize::h9ed9d9d9d126c080
18: 0x55c9855a3048 -
crossbeam_deque::Stealer<T>::steal::ha8d735762739565c
19: 0x55c9855a2f2b -
rayon_core::registry::WorkerThread::steal::h10ec230651707aa1
20: 0x55c9854ec618 -
rayon_core::registry::WorkerThread::wait_until_cold::h4eaff249c3f8f256
21: 0x55c9855a52eb -
std::sys_common::backtrace::__rust_begin_short_backtrace::hd60842a802d11cf7
22: 0x55c9855a4e0e -
core::ops::function::FnOnce::call_once{{vtable.shim}}::h29f7fc1c051391a5
23: 0x55c985614795 -
std::sys::unix::thread::Thread::new::thread_start::heb2654e2ad41d406
24: 0x7f91d9e59259 - start_thread
25: 0x7f91d9d812b3 - clone
26: 0x0 - <unknown>
fish: Job 3, 'env RUST_BACKTRACE=full tokei' terminated by signal SIGABRT
(Abort)
```
Reproducible: Always
Steps to Reproduce:
1. mkdir example-project && cd example-project
2. touch main.c file.$RANDOM
3. env RUST_BACKTRACE=full tokei
I discovered this when I got a flamegraph.svg file from having used
https://github.com/flamegraph-rs/flamegraph, but as demonstrated, any random
file extension suffices.
I built tokei 9.1.1 myself, and can confirm that it is an upstream issue. The
next release (10.0.0) is also bad, but the newest release (12.1.2) is good.
--
You are receiving this mail because:
You are on the CC list for the bug.