history crash with DWORD

Create issue
Issue #239 resolved
dd1 created an issue

There is a crash in the history code because midas_tid(“DWORD”) no longer returns TID_DWORD (the best I can tell). This function needs to be moved to midas.cxx and it should lookup names from both rpc_tid_name() and rpc_tid_name_old(). K.O.

(gdb) bt
#0  0x00007f63ba413387 in raise () from /lib64/libc.so.6
#1  0x00007f63ba414a78 in abort () from /lib64/libc.so.6
#2  0x0000000000500825 in HsFileSchema::read_data (this=0x7f6390028780, 
    start_time=1594981462, end_time=1595037260, num_var=7, 
    var_schema_index=0x7f6390001570, var_index=<optimized out>, debug=0, 
    buffer=0x7f6390000e00)
    at /home/agmini/packages/midas/src/history_schema.cxx:2206
#3  0x0000000000508ce5 in SchemaHistoryBase::hs_read_buffer (
    this=0x7f6390001db0, start_time=1594981462, end_time=1595037260, 
    num_var=7, event_name=<optimized out>, var_name=<optimized out>, 
    var_index=0x7f6390001d60, buffer=0x7f6390000e00, hs_status=0x7f63900011c0)
    at /home/agmini/packages/midas/src/history_schema.cxx:2983
#4  0x00000000004e8534 in js_hs_read_arraybuffer (params=<optimized out>)
    at /home/agmini/packages/midas/src/mjsonrpc.cxx:2359
#5  0x00000000004e6483 in mjsonrpc_handle_request (request=<optimized out>)
    at /home/agmini/packages/midas/src/mjsonrpc.cxx:4221
#6  0x00000000004e69a5 in mjsonrpc_decode_post_data (post_data=<optimized out>)
    at /home/agmini/packages/midas/src/mjsonrpc.cxx:4314
#7  0x000000000045d816 in thread_mjsonrpc (w=0x1865100, nc=0x1860ff0, 
    this=<optimized out>) at /home/agmini/packages/midas/progs/mhttpd.cxx:18096
#8  thread_work_function (w=0x1865100, nc=0x1860ff0)
    at /home/agmini/packages/midas/progs/mhttpd.cxx:18172
#9  mongoose_thread (to=0x1861f10)
---Type <return> to continue, or q <return> to quit--- 
    at /home/agmini/packages/midas/progs/mhttpd.cxx:18929
#10 0x00007f63bad78070 in ?? () from /lib64/libstdc++.so.6
#11 0x00007f63bc6d2ea5 in start_thread () from /lib64/libpthread.so.0
#12 0x00007f63ba4db8dd in clone () from /lib64/libc.so.6
(gdb) p

Comments (2)

  1. Log in to comment