rapidquilt
rapidquilt copied to clipboard
Rapidquilt attempted to rollback a patch and that failed.
The attached series triggers a bug.
Output with RUST_BACKTRACE=1 rapidquilt push -a --dry-run --threads=1
(just to make sure it's not a race condition, but it also fails multi-threaded):
Applying 1 patches single-threaded...
thread 'main' panicked at 'Rapidquilt attempted to rollback a patch and that failed. This is a bug. Failure report: FilePatchApplyReport { any_failed: true, hunk_reports: [Failed(NoMatchingLines), Skipped, Applied { line: 4850, rollback_line: 4850, offset: -26, line_count_diff: 31, fuzz: 0 }], direction: Revert, fuzz: 0, previous_permissions: None }', src/libpatch/patch/mod.rs:649:13
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: libpatch::patch::FilePatch<&[u8]>::rollback
3: rapidquilt::apply::diagnostics::analyze_patch_failure
4: rapidquilt::apply::sequential::apply_patches
5: rapidquilt::cmd::run
6: rapidquilt::main
Does it work with 0.6.5?
Does it work with 0.6.5?
No. Nor 0.6.4, or 0.6.3. Version 0.6.2 segfaults.
Just to make one thing clear, the series does NOT apply. This is the output of quilt push
:
Applying patch s390-qeth-cache-link_info-for-ethtool
patching file qeth_core_main.c
Hunk #1 succeeded at 4849 (offset 105 lines).
Hunk #2 FAILED at 4753.
Hunk #3 FAILED at 4832.
2 out of 3 hunks FAILED -- rejects in file qeth_core_main.c
Patch s390-qeth-cache-link_info-for-ethtool does not apply (enforce with -f)
But it shouldn't trigger a bug.
Another instance:
Applying 66387 patches using 4 threads...
Saving modified files...
thread 'RUST_BACKTRACE=full
for a verbose backtrace.
branch users/msuchanek/tmp/rapidquild-BUG in kernel-source