https://bugs.kde.org/show_bug.cgi?id=516865

--- Comment #1 from [email protected] ---
I'm debugging this.

I cloned the akonadi-search repo, build it and it didn't crash, not C nor Rust
implementation.

I checked Debian patches [1] and they bumped html2text dependency from 0.6 to
0.12, and then crashes.

=== CRASH ===

❯ echo -n '' | ./akonadi_html_to_text.debug

thread '<unnamed>' (107041) panicked at
/home/selu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/html2text-0.12.6/src/lib.rs:2436:10:
Failed to convert to HTML: TooNarrow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread '<unnamed>' (107041) panicked at
/home/selu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cxx-1.0.133/src/unwind.rs:37:9:
panic in ffi function htmlparser::ffi::convert_to_text, aborting.
stack backtrace:
0:     0x561e163ae955 -
std::backtrace_rs::backtrace::libunwind::trace::h99c74f7151693f75
at
/usr/src/rustc-1.91.1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
1:     0x561e163ae955 -
std::backtrace_rs::backtrace::trace_unsynchronized::h62b39d9dbae733ed
at
/usr/src/rustc-1.91.1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
2:     0x561e163ae955 - std::sys::backtrace::_print_fmt::h06c11b4c92aa418d
at /usr/src/rustc-1.91.1/library/std/src/sys/backtrace.rs:66:9
3:     0x561e163ae955 -
<std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as
core::fmt::Display>::fmt::h4b53ee2c01be8e9f
at /usr/src/rustc-1.91.1/library/std/src/sys/backtrace.rs:39:26
4:     0x561e163cd7cf - core::fmt::rt::Argument::fmt::hf2fb6d94c7e9752a
at /usr/src/rustc-1.91.1/library/core/src/fmt/rt.rs:173:76
5:     0x561e163cd7cf - core::fmt::write::hfc866c1b494edaeb
at /usr/src/rustc-1.91.1/library/core/src/fmt/mod.rs:1468:25
6:     0x561e163aedaf - std::io::default_write_fmt::he57b89bd4a19e03f
at /usr/src/rustc-1.91.1/library/std/src/io/mod.rs:639:11
7:     0x561e163a64b8 - std::io::Write::write_fmt::h34b86f98430aac46
at /usr/src/rustc-1.91.1/library/std/src/io/mod.rs:1954:13
8:     0x561e163adc14 -
std::sys::backtrace::BacktraceLock::print::hcb4d7307129cefbc
at /usr/src/rustc-1.91.1/library/std/src/sys/backtrace.rs:42:9
9:     0x561e163adc14 -
std::panicking::default_hook::{{closure}}::h2d2a0b1db06754da
10:     0x561e163adad3 - std::panicking::default_hook::hb920e61a33913980
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:328:9
11:     0x561e163adf51 - std::panicking::panic_with_hook::h8f4814ea06ef965f
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:834:13
12:     0x561e163addea -
std::panicking::panic_handler::{{closure}}::hf5c4141de0c288c7
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:707:13
13:     0x561e163ad9d9 -
std::sys::backtrace::__rust_end_short_backtrace::hcaa4173395c87a7b
at /usr/src/rustc-1.91.1/library/std/src/sys/backtrace.rs:174:18
14:     0x561e163aca7d - __rustc[bd3b3f48d2381c32]::rust_begin_unwind
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:698:5
15:     0x561e162f5ec0 - core::panicking::panic_fmt::h3430f111239ddddc
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:75:14
16:     0x561e16316800 - <cxx::unwind::Guard as
core::ops::drop::Drop>::drop::hd2bfdb80f52c2ab0
at
/home/selu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cxx-1.0.133/src/unwind.rs:37:9
17:     0x561e1630dbfb -
core::ptr::drop_in_place<cxx::unwind::Guard>::ha4ddd40285ab9929
at /usr/src/rustc-1.91.1/library/core/src/ptr/mod.rs:804:1
18:     0x561e163e75bc - cxx::unwind::prevent_unwind::ha0edd55cf11a85cc
at
/home/selu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cxx-1.0.133/src/unwind.rs:28:1
19:     0x561e162f84a3 - cxxbridge1$convert_to_text
at /home/selu/code/akonadi-search/agent/rs/htmlparser/src/lib.rs:16:51
20:     0x561e162f77e4 - _Z15convert_to_textN4rust10cxxbridge16StringE
at
/home/selu/code/akonadi-search/build/./cargo/build/x86_64-unknown-linux-gnu/debug/build/htmlparser-1bce3d2103e7303e/out/cxxbridge/sources/htmlparser/src/lib.rs.cc:109:29
21:     0x561e162f68e5 - main
at /home/selu/code/akonadi-search/agent/htmltotext.cpp:63:50
22:     0x7f26b5433f75 - __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
23:     0x7f26b5434027 - __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
24:     0x561e162f6321 - _start
25:                0x0 - <unknown>

thread '<unnamed>' (107041) panicked at library/core/src/panicking.rs:233:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
Aborted                    (core dumped) echo -n '' |
./akonadi_html_to_text.debug

=== END CRASH ===

[1]
https://salsa.debian.org/qt-kde-team/kde/akonadi-search/-/blob/master/debian/patches/rust-dependencies.patch?ref_type=heads

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to