Skip to content

Propolis panic during zone uninstall #827

Open

Description

@askfongjojo

I found two sets of propolis core files on a certain sled after running the "parking" script that halted and uninstalled all zones on the sled.

Here are the core files of two specific propolis zones - there are 5 occurrences for each of them:

root@oxz_switch0:~# pilot host exec -c 'ls -lh /pool/*/*/crypt/debug/core\.* || true' 0-31
 7  BRM27230045        ok: 
 8  BRM44220011        ok: 
 9  BRM44220005        ok: -rw-r--r--   1 root     root        309M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.14698.1734168037
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.18482.1734168039
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.18516.1734168040
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.18551.1734168040
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.18571.1734168041
-rw-r--r--   1 root     root        186M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18383.1734168037
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18453.1734168038
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18487.1734168039
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18521.1734168040
-rw-r--r--   1 root     root       69.4M Dec 14  2024 /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18554.1734168040
10  BRM42220009        ok: 
...

The stacks appear identical and here is one of them:

BRM44220005 # mdb /pool/ext/f8b11629-ced6-412a-9c3f-d169b99ee996/crypt/debug/core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18554.1734168040
Loading modules: [ libumem.so.1 libnvpair.so.1 libc.so.1 ld.so.1 ]
> $C ! demangle
fffff5ffeddffa20 libc.so.1`_lwp_kill+0xa()
fffff5ffeddffa50 libc.so.1`raise+0x22(6)
fffff5ffeddffaa0 libc.so.1`abort+0x58()
fffff5ffeddffab0 0x28c9ab9()
fffff5ffeddffac0 0x28c9aa9()
fffff5ffeddffb20 rust_panic+0xd()
fffff5ffeddffbe0 std::panicking::rust_panic_with_hook::h503ea5292ea6f2f4+0x231()
fffff5ffeddffc20 std::panicking::begin_panic_handler::{{closure}}::h2eb8efd06bcdc46a+0x98()
fffff5ffeddffc30 0x28b0699()
fffff5ffeddffc60 0x28b2d3c()
fffff5ffeddffc90 0x28f7f6f()
fffff5ffeddffd70 0xf881f7()
fffff5ffeddffee0 std::sys::backtrace::__rust_begin_short_backtrace::h68463c8dc06c772b+0xd6()
fffff5ffeddfff60 core::ops::function::FnOnce::call_once{{vtable.shim}}::hc5463a0161650b1d+0xa3()
fffff5ffeddfffb0 std::sys::pal::unix::thread::Thread::new::thread_start::he13a45effb26dfc6+0x2b()
fffff5ffeddfffe0 libc.so.1`_thrp_setup+0x77(fffff5ffeef30240)
fffff5ffeddffff0 libc.so.1`_lwp_start()

Activity

  1. added this to the 12 milestone on Dec 14, 2024
  2. askfongjojo commented on Dec 14, 2024

    @askfongjojo
    Author

    I uploaded an instance of the core files for each propolis zone to /staff/core/propolis-827.

  3. askfongjojo commented on Dec 14, 2024

    @askfongjojo
    Author

    The two instances have been running for some time and most likely didn't have any new processes in them that triggered new guest OS-related failures:

    root@[fd00:1122:3344:105::3]:32221/omicron> select instance.id, name, instance.time_created, vmm.id, vmm.time_created from instance join
    vmm on instance.id = vmm.instance_id where vmm.id in ('0807fc69-c1ad-4768-9cb6-9c54746b36d5', '75e401d6-7502-4231-b30c-b2bfa32a1a6f');
                       id                  |   name    |         time_created          |                  id                  |         time_created
    ---------------------------------------+-----------+-------------------------------+--------------------------------------+--------------------------------
      228b79fd-b4ff-4f50-97a5-286c949e695d | rocky     | 2024-05-24 19:04:52.732903+00 | 75e401d6-7502-4231-b30c-b2bfa32a1a6f | 2024-12-14 00:16:57.880984+00
      4378f1f2-f09a-4d29-b30d-83e9a9037de0 | sbmysql-3 | 2024-11-27 00:35:49.433431+00 | 0807fc69-c1ad-4768-9cb6-9c54746b36d5 | 2024-12-12 00:41:03.934748+00
    (2 rows)
    

    Unfortunately, their propolis logs were destroyed as part of the zone uninstall so all we have for debugging are the core files.

  4. leftwo commented on Dec 15, 2024

    @leftwo
    Contributor

    Unfortunately, their propolis logs were destroyed as part of the zone uninstall so all we have for debugging are the core files.

    This is, unfortunate, yes.

    I wonder if we could, as part of the parking, force an archive/rotation of the logs? Though, if the panic happens at the time of zone uninstall archiving logs is not going to catch that. Perhaps things were in a non normal state that contributed to the panic and the pre-logs would be a clue. As far as I know, we have not seen core files from running propolis during a rack parking previously.

    As a second thing to try, we could spin up instances on a raclkette and then park it and see if we can get a panic, perhaps while tailing the propolis log from the global zone.

    Third, it's possible crucible came off the rails if things are not shut down "properly", i.e tasks just dying at unexpected moments and, while not ideal, may not be an actual problem given that we are parking the rack. None the less, it should be understood.

  5. jclulow commented on Dec 15, 2024

    @jclulow
    Contributor

    Perhaps we ought to add an in-memory ring buffer of recent log records, in such a way that it could be fished out easily from the core file?

  6. askfongjojo commented on Dec 15, 2024

    @askfongjojo
    Author

    I wonder if we could, as part of the parking, force an archive/rotation of the logs?

    Related:
    oxidecomputer/omicron#7012
    oxidecomputer/omicron#4906
    oxidecomputer/omicron#3860

  7. modified the milestones: 12, 13 on Jan 27, 2025
  8. modified the milestones: 13, Unscheduled on Jan 31, 2025
  9. askfongjojo commented on Jan 31, 2025

    @askfongjojo
    Author

    Given this issue hasn't shown up since it was reported, I'm moving it to "unscheduled" since it's not very actionable at this time.

  10. askfongjojo commented on Jan 19, 2026

    @askfongjojo
    Author

    Propolis panics still exist but the stack is different:

    BRM44220010 # mdb /pool/ext/677b0057-3a80-461b-aca8-c2cb501a7278/crypt/debug/core.oxz_propolis-server_16d8d383-87e0-49b0-a173-81be3f56436c.propolis-server.21839.1768788313
    Loading modules: [ libumem.so.1 libnvpair.so.1 libc.so.1 ld.so.1 ]
    > ::status
    debugging core file of propolis-server (64-bit) from oxz_propolis-server_16d8d383-87e0-49b0-a173-81be3f56436c
    initial argv: /opt/oxide/propolis-server/bin/propolis-server run /opt/oxide/propolis-server/b
    threading model: native threads
    status: process terminated by SIGABRT (Abort), pid=21839 uid=0 code=-1
    > $C ! demangle
    fffff6ffe7bff2d0 libc.so.1`_lwp_kill+0xa()
    fffff6ffe7bff300 libc.so.1`raise+0x22(6)
    fffff6ffe7bff350 libc.so.1`abort+0x58()
    fffff6ffe7bff360 ~std::sys::pal::unix::abort_internal::h515b31030a784ec5+8()
    fffff6ffe7bff370 ~std::process::abort::h263ae6dd5f7f06e2+8()
    fffff6ffe7bff380 ~__rustc::__rust_abort+8()
    fffff6ffe7bff390 ~__rustc::__rust_start_panic+8()
    fffff6ffe7bff3f0 __rustc::rust_panic+0xd()
    fffff6ffe7bff4b0 std::panicking::rust_panic_with_hook::h24c1a837a734501c+0x224()
    fffff6ffe7bff4f0 std::panicking::begin_panic_handler::{{closure}}::hebb980b0c684b90d+0x65()
    fffff6ffe7bff500 ~std::sys::backtrace::__rust_end_short_backtrace::h4b651dba38b6cba9+8()
    fffff6ffe7bff530 ~__rustc::rust_begin_unwind+0x1b()
    fffff6ffe7bff560 ~core::panicking::panic_fmt::h717aa56ae600c892+0x1e()
    fffff6ffe7bff5b0 ~core::panicking::panic::hf52b9b74c708168c+0x3a()
    fffff6ffe7bff5c0 std::sync::poison::once::Once::call_once::_$u7b$$u7b$closure$u7d$$u7d$::h4aa1595ac930ccb3 (.llvm.7595959982290774484)+0x2c()
    fffff6ffe7bff670 std::sys::sync::once::queue::Once::call::had06d6a18838cd97+0x1d6()
    fffff6ffe7bff6a0 <propolis::hw::virtio::pci::ISR_STATUS_REGS as core::ops::deref::Deref>::deref::h5e01a69cbf2f7574+0x59()
    fffff6ffe7bff7e0 propolis::hw::virtio::pci::<impl propolis::hw::pci::device::Device for D>::bar_rw::{{closure}}::h6ee0fa26971537b7+0xd9d()
    fffff6ffe7bff910 propolis::hw::virtio::pci::<impl propolis::hw::pci::device::Device for D>::bar_rw::hb0b53e6e7d03f639+0x7ef()
    fffff6ffe7bff9c0 propolis::mmio::MmioBus::handle_read::haa344c48dc3ccf7c+0x15a()
    fffff6ffe7bffa20 propolis::vcpu::Vcpu::process_vmexit::hf993cbdc50a0a950+0x2b8()
    fffff6ffe7bffe40 propolis_server::vcpu_tasks::VcpuTasks::vcpu_loop::h92946b7e82fb6cd8+0x346()
    fffff6ffe7bffe80 std::sys::backtrace::__rust_begin_short_backtrace::h81c12d026840fca3+0x51()
    fffff6ffe7bfff80 core::ops::function::FnOnce::call_once{{vtable.shim}}::hf6a98e36db4d0c78+0xf9()
    fffff6ffe7bfffb0 std::sys::pal::unix::thread::Thread::new::thread_start::h128a92fdf19e3e8a+0x2f()
    fffff6ffe7bfffe0 libc.so.1`_thrp_setup+0x77(fffff6ffeef4b240)
    fffff6ffe7bffff0 libc.so.1`_lwp_start()
    

    The update was from version 18.0.0-0.ci+gitf507a3057c7 to 18.0.0-0.ci+git4175bf66d6c using nexus-driven update.

  11. modified the milestones: Unscheduled, 18 on Jan 19, 2026
  12. removed this from the 18 milestone on Jan 21, 2026
  13. iximeow commented on Jan 21, 2026

    @iximeow
    Member

    @askfongjojo the new cores are #1019, which i'm pretty sure is a different issue from the initial cores here. i'll move this core over and i've removed this from the 18 milestone in favor of #1019. and at some point hopefully soon i can see what the heck happened with the old cores too...

  14. iximeow commented on Jan 31, 2026

    @iximeow
    Member

    re. the earlier cores: both of these are a panic in AsyncRecord::log_to. between then and now the change for mdb to infer right function for a no-return call has made the same cores much more obvious:

    $ for core in core.oxz_propolis-server_*; do echo $core; mdb -e '$C' $core; done
    
    core.oxz_propolis-server_0807fc69-c1ad-4768-9cb6-9c54746b36d5.propolis-server.18482.1734168039
    
    fffff5ffeddffa20 libc.so.1`_lwp_kill+0xa()
    fffff5ffeddffa50 libc.so.1`raise+0x22(6)
    fffff5ffeddffaa0 libc.so.1`abort+0x58()
    fffff5ffeddffab0 ~_ZN11panic_abort18__rust_start_panic5abort17h6c864151ffb92800E+8()
    fffff5ffeddffac0 ~__rust_start_panic+8()
    fffff5ffeddffb20 rust_panic+0xd()
    fffff5ffeddffbe0 _ZN3std9panicking20rust_panic_with_hook17h503ea5292ea6f2f4E+0x231()
    fffff5ffeddffc20 _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17h2eb8efd06bcdc46aE+0x98()
    fffff5ffeddffc30 ~_ZN3std3sys9backtrace26__rust_end_short_backtrace17h4c61d3c7f8da7271E+8()
    fffff5ffeddffc60 ~rust_begin_unwind+0x1b()
    fffff5ffeddffc90 ~_ZN4core9panicking9panic_fmt17hd5a446d86706f73eE+0x1e()
    fffff5ffeddffd70 ~_ZN10slog_async11AsyncRecord6log_to17hb078c96bd69a3526E+0x126()
    fffff5ffeddffee0 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h68463c8dc06c772bE+0xd6()
    fffff5ffeddfff60 _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17hc5463a0161650b1dE+0xa3()
    fffff5ffeddfffb0 _ZN3std3sys3pal4unix6thread6Thread3new12thread_start17he13a45effb26dfc6E+0x2b()
    fffff5ffeddfffe0 libc.so.1`_thrp_setup+0x77(fffff5ffeef30240)
    fffff5ffeddffff0 libc.so.1`_lwp_start()
    
    core.oxz_propolis-server_75e401d6-7502-4231-b30c-b2bfa32a1a6f.propolis-server.18554.1734168040
    
    fffff5ffeddffa20 libc.so.1`_lwp_kill+0xa()
    fffff5ffeddffa50 libc.so.1`raise+0x22(6)
    fffff5ffeddffaa0 libc.so.1`abort+0x58()
    fffff5ffeddffab0 ~_ZN11panic_abort18__rust_start_panic5abort17h6c864151ffb92800E+8()
    fffff5ffeddffac0 ~__rust_start_panic+8()
    fffff5ffeddffb20 rust_panic+0xd()
    fffff5ffeddffbe0 _ZN3std9panicking20rust_panic_with_hook17h503ea5292ea6f2f4E+0x231()
    fffff5ffeddffc20 _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17h2eb8efd06bcdc46aE+0x98()
    fffff5ffeddffc30 ~_ZN3std3sys9backtrace26__rust_end_short_backtrace17h4c61d3c7f8da7271E+8()
    fffff5ffeddffc60 ~rust_begin_unwind+0x1b()
    fffff5ffeddffc90 ~_ZN4core9panicking9panic_fmt17hd5a446d86706f73eE+0x1e()
    fffff5ffeddffd70 ~_ZN10slog_async11AsyncRecord6log_to17hb078c96bd69a3526E+0x126()
    fffff5ffeddffee0 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h68463c8dc06c772bE+0xd6()
    fffff5ffeddfff60 _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17hc5463a0161650b1dE+0xa3()
    fffff5ffeddfffb0 _ZN3std3sys3pal4unix6thread6Thread3new12thread_start17he13a45effb26dfc6E+0x2b()
    fffff5ffeddfffe0 libc.so.1`_thrp_setup+0x77(fffff5ffeef30240)
    fffff5ffeddffff0 libc.so.1`_lwp_start()
    

    this is basically the same thing Alan saw even this week in cores from other binaries. in builds with unwinding panics it looks like slog expects to catch panics at least since slog-async 2.8.0. but we panic="abort", so, yknow. i think what's happened here is that drain.log() must, for the D: Drain we have, include an unwrap that we hit. in propolis-server that's slog_bunyan, plumbed to std::io::stdout()! lets see..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions