Skip to content

Investigate export/import failures with APPLgrid 1.6.48 #391

@cschwan

Description

@cschwan

Using APPLgrid 1.6.48 and running the export/import tests,

export RUST_BACKTRACE=true && cargo test --features=applgrid --release --no-fail-fast -p pineappl_cli --test export --test import

fails with

    Finished `release` profile [optimized] target(s) in 0.03s
    Running tests/export.rs (target/release/deps/export-02b2234b29a5931c)

running 3 tests
test help ... ok
test export_dis_applgrid ... FAILED
test export_applgrid ... FAILED

failures:

---- export_dis_applgrid stdout ----

thread 'export_dis_applgrid' (171278) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```""```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "export" "/tmp/.tmpfldmsV/remapped.pineappl.lz4" "/tmp/.tmpvwktKa/converted-dis.appl" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=""
stderr=""

stack backtrace:
  0:     0x5652e8e66f92 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x5652e8e4546f - core::fmt::write::h1d2246b072ea91eb
  2:     0x5652e8e8e90f - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x5652e8e66df2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x5652e8e6681e - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x5652e8e66325 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x5652e8e65c6c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x5652e8e8f8f8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x5652e8e8f859 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x5652e8e8f84c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x5652e8e4648f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x5652e8e41fed - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x5652e8e368f3 - core::ops::function::FnOnce::call_once::h178b7fe2f5c520d7
  13:     0x5652e8ead8eb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x5652e8ea943d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x5652e8ea8bcc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x5652e8ec58a4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x5652e8e985ff - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f69d5ef0cf3 - <unknown>
  19:     0x7f69d5f62c3c - <unknown>
  20:                0x0 - <unknown>

---- export_applgrid stdout ----

thread 'export_applgrid' (171277) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```"double free or corruption (!prev)\n"```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "export" "../test-data/LHCB_DY_8TEV.pineappl.lz4" "/tmp/.tmp3EgQx2/converted.appl" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=```
Write(): filename:  /tmp/.tmp3EgQx2/converted.appl
appl::grid::Write() /tmp/.tmp3EgQx2/converted.appl\tdirname \tpdfname 
lumi_pdf:   converted.config\t processes 18
grid::Write() size(untrimmed)=1582 kB\tsize(trimmed)=113 kB (7.2%)
```

stderr="double free or corruption (!prev)\n"

stack backtrace:
  0:     0x5652e8e66f92 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x5652e8e4546f - core::fmt::write::h1d2246b072ea91eb
  2:     0x5652e8e8e90f - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x5652e8e66df2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x5652e8e6681e - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x5652e8e66325 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x5652e8e65c6c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x5652e8e8f8f8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x5652e8e8f859 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x5652e8e8f84c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x5652e8e4648f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x5652e8e41fed - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x5652e8e36e85 - core::ops::function::FnOnce::call_once::h31b55f346402512e
  13:     0x5652e8ead8eb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x5652e8ea943d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x5652e8ea8bcc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x5652e8ec58a4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x5652e8e985ff - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f69d5ef0cf3 - <unknown>
  19:     0x7f69d5f62c3c - <unknown>
  20:                0x0 - <unknown>


failures:
    export_applgrid
    export_dis_applgrid

test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s

error: test failed, to rerun pass `-p pineappl_cli --test export`
    Running tests/import.rs (target/release/deps/import-4aec1fc94f5e379c)

running 6 tests
test help ... ok
test import_new_applgrid ... FAILED
test import_applgrid ... FAILED
test import_photon_grid ... FAILED
test import_file_format_failure ... FAILED
test import_dis_applgrid ... FAILED

failures:

---- import_new_applgrid stdout ----

thread 'import_new_applgrid' (171297) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```""```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "import" "../test-data/atlas-atlas-wpm-arxiv-1109.5141-xsec001.appl" "/tmp/.tmpeseo7Y/converted7.pineappl.lz4" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=""
stderr=""

stack backtrace:
  0:     0x55e88c893752 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x55e88c871b4f - core::fmt::write::h1d2246b072ea91eb
  2:     0x55e88c8baddf - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x55e88c8935b2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x55e88c892fde - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x55e88c892ae5 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x55e88c89242c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x55e88c8bbdc8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x55e88c8bbd29 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x55e88c8bbd1c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x55e88c872b6f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x55e88c86e73d - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x55e88c862820 - core::ops::function::FnOnce::call_once::h6fcec5ab95a276e9
  13:     0x55e88c8d9cfb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x55e88c8d584d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x55e88c8d4fdc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x55e88c8f1fa4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x55e88c8c4acf - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f4a45138cf3 - <unknown>
  19:     0x7f4a451aac3c - <unknown>
  20:                0x0 - <unknown>

---- import_applgrid stdout ----

thread 'import_applgrid' (171294) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```""```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "import" "../test-data/ATLASWPT11-Wplus_tot.appl" "/tmp/.tmpmD8NLS/converted6.pineappl.lz4" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=""
stderr=""

stack backtrace:
  0:     0x55e88c893752 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x55e88c871b4f - core::fmt::write::h1d2246b072ea91eb
  2:     0x55e88c8baddf - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x55e88c8935b2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x55e88c892fde - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x55e88c892ae5 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x55e88c89242c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x55e88c8bbdc8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x55e88c8bbd29 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x55e88c8bbd1c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x55e88c872b6f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x55e88c86e73d - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x55e88c8636e2 - core::ops::function::FnOnce::call_once::hd5f9b5b49b3811e6
  13:     0x55e88c8d9cfb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x55e88c8d584d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x55e88c8d4fdc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x55e88c8f1fa4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x55e88c8c4acf - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f4a45138cf3 - <unknown>
  19:     0x7f4a451aac3c - <unknown>
  20:                0x0 - <unknown>

---- import_photon_grid stdout ----

thread 'import_photon_grid' (171298) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```""```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "import" "../test-data/LHCBWZMU7TEV_PI_part1.appl" "/tmp/.tmpnR5tqW/converted5.pineappl.lz4" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=""
stderr=""

stack backtrace:
  0:     0x55e88c893752 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x55e88c871b4f - core::fmt::write::h1d2246b072ea91eb
  2:     0x55e88c8baddf - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x55e88c8935b2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x55e88c892fde - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x55e88c892ae5 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x55e88c89242c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x55e88c8bbdc8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x55e88c8bbd29 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x55e88c8bbd1c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x55e88c872b6f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x55e88c86e73d - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x55e88c862d2f - core::ops::function::FnOnce::call_once::ha9222511ff149abe
  13:     0x55e88c8d9cfb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x55e88c8d584d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x55e88c8d4fdc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x55e88c8f1fa4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x55e88c8c4acf - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f4a45138cf3 - <unknown>
  19:     0x7f4a451aac3c - <unknown>
  20:                0x0 - <unknown>

---- import_file_format_failure stdout ----

thread 'import_file_format_failure' (171296) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected stderr, failed diff original var
├── original: Error: could not detect file format
├── diff: 
│   --- 	orig
│   +++ 	var
│   @@ -1,0 +2,9 @@
│   +
│   +Stack backtrace:
│   +   0: anyhow::error::<impl anyhow::Error>::msg
│   +   1: pineappl::main
│   +   2: std::sys::backtrace::__rust_begin_short_backtrace
│   +   3: main
│   +   4: <unknown>
│   +   5: __libc_start_main
│   +   6: _start
└── var as str: Error: could not detect file format
    
    Stack backtrace:
      0: anyhow::error::<impl anyhow::Error>::msg
      1: pineappl::main
      2: std::sys::backtrace::__rust_begin_short_backtrace
      3: main
      4: <unknown>
      5: __libc_start_main
      6: _start

command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "import" "file-doesnt.exist" "no.output" "NNPDF31_nlo_as_0118_luxqed"`
code=1
stdout=""
stderr=```
Error: could not detect file format

Stack backtrace:
  0: anyhow::error::<impl anyhow::Error>::msg
  1: pineappl::main
  2: std::sys::backtrace::__rust_begin_short_backtrace
  3: main
  4: <unknown>
  5: __libc_start_main
  6: _start
```


stack backtrace:
  0:     0x55e88c893752 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x55e88c871b4f - core::fmt::write::h1d2246b072ea91eb
  2:     0x55e88c8baddf - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x55e88c8935b2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x55e88c892fde - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x55e88c892ae5 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x55e88c89242c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x55e88c8bbdc8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x55e88c8bbd29 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x55e88c8bbd1c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x55e88c872b6f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x55e88c8613dd - assert_cmd::assert::AssertError::panic::h6931902ebd05ebbc
  12:     0x55e88c863254 - core::ops::function::FnOnce::call_once::hcdd896f53e26698f
  13:     0x55e88c8d9cfb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x55e88c8d584d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x55e88c8d4fdc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x55e88c8f1fa4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x55e88c8c4acf - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f4a45138cf3 - <unknown>
  19:     0x7f4a451aac3c - <unknown>
  20:                0x0 - <unknown>

---- import_dis_applgrid stdout ----

thread 'import_dis_applgrid' (171295) panicked at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code=<interrupted>
stderr=```""```
command=`"/home/cschwan/projects/pineappl/target/release/pineappl" "import" "../test-data/applfast-h1-dijets-appl-arxiv-0010054-xsec000.appl" "/tmp/.tmp6sYCPu/converted8.pineappl.lz4" "NNPDF31_nlo_as_0118_luxqed"`
code=<interrupted>
stdout=""
stderr=""

stack backtrace:
  0:     0x55e88c893752 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h718e2d17a1928e63
  1:     0x55e88c871b4f - core::fmt::write::h1d2246b072ea91eb
  2:     0x55e88c8baddf - std::io::Write::write_fmt::h4dc37df907a84320
  3:     0x55e88c8935b2 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
  4:     0x55e88c892fde - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
  5:     0x55e88c892ae5 - std::panicking::default_hook::hc32245deb6eaa988
  6:     0x55e88c89242c - std::panicking::panic_with_hook::h43adc00fd0e494cb
  7:     0x55e88c8bbdc8 - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
  8:     0x55e88c8bbd29 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
  9:     0x55e88c8bbd1c - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
  10:     0x55e88c872b6f - core::panicking::panic_fmt::h62031895f6e012da
  11:     0x55e88c86e73d - assert_cmd::assert::AssertError::panic::h63216bc8b24de7e1
  12:     0x55e88c862060 - core::ops::function::FnOnce::call_once::h32dea5a66fa482ea
  13:     0x55e88c8d9cfb - test::__rust_begin_short_backtrace::h2b0eed61d2975d00
  14:     0x55e88c8d584d - test::run_test::{{closure}}::he1bbe7ada8590d87
  15:     0x55e88c8d4fdc - std::sys::backtrace::__rust_begin_short_backtrace::h92d7bd1c79fffba8
  16:     0x55e88c8f1fa4 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h60e1da9eb0ad9039
  17:     0x55e88c8c4acf - std::sys::thread::unix::Thread::new::thread_start::h4637f1bfded3ea68
  18:     0x7f4a45138cf3 - <unknown>
  19:     0x7f4a451aac3c - <unknown>
  20:                0x0 - <unknown>


failures:
    import_applgrid
    import_dis_applgrid
    import_file_format_failure
    import_new_applgrid
    import_photon_grid

test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

error: test failed, to rerun pass `-p pineappl_cli --test import`
error: 2 targets failed:
    `-p pineappl_cli --test export`
    `-p pineappl_cli --test import`

All previous versions of APPLgrid 1.6.x work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions