TritonDataCenter / manta-thoth

Thoth is a Manta-based system for core and crash dump management
16 stars 7 forks source link

bad utsname.nodename causes corrupt info.json #171

Open bcantrill opened 6 years ago

bcantrill commented 6 years ago

We had a thoth dump that had a corrupt nodename, which in turn induced a corrupt info.json:

{
    "name": "/thoth/stor/thoth/90fda3e79b960b94167102864c21f15a",
    "dump": "/thoth/stor/thoth/90fda3e79b960b94167102864c21f15a/vmcore.0",
    "platform": "joyent_20180225T150944Z",
    "node": "    nodename = [ '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', ... ]",
    "version": "1",
    "time": 1519586752,
    "stack": [ "mutex_enter+0xb()", "mac_bcast_send+0x15e()", "mac_rx_classify+0x11d()", "mac_rx_flow+0x63()", "mac_rx_common+0x1ee()", "mac_rx+0xb6()", "mac_rx_ring+0x2b()", "ixgbe_intr_rx_work+0x5c()", "ixgbe_intr_msix+0x58()", "apix_dispatch_by_vector+0x8c()", "apix_dispatch_lowlevel+0x25()", "switch_sp_and_call+0x13()", "apix_do_interrupt+0x39f()", "_interrupt+0xba()", "i86_mwait+0xd()", "cpu_idle_mwait+0x109()", "idle+0xa7()", "thread_start+8()" ],
    "type": "crash",
    "properties": {}
}