AIX Open Source

 View Only

Process is shown as running in ps -ef output but not in topas

  • 1.  Process is shown as running in ps -ef output but not in topas

    Posted 4 days ago

    My C++ application is shown as running in the output of ps -ef command but it does not show up in topas. This application has been compiled on AIX 7.1 power6 and is running on AIX 7.2 power9. It runs for few hours or sometimes days and then gets stuck. There are no logs being printed. On further analysis i do see that all the threads that are supposed to be active are in blocked in user state and waiting state in Kernel in the malloc_y call. 

     thread  state-k     wchan            state-u    k-tid mode held scope function
    >$t9     wait      0x00000001100a4718 blocked  57606507   k   no   sys  malloc_y          
    malloc_y(0x110226e80, 0x0, 0x9001000a05b4530, 0x110144948, 0xc, 0x136f016b, 0x1, 0x110144950) at 0x9000000002ed6e8
    malloc_common@AF119_102(??) at 0x90000000024bed4
    _ZN5boost3log12v2s_mt_posix19attribute_value_setC2ERKNS1_13attribute_setES5_S5_m(??, ??, ??, ??, ??) at 0x1000a5c8c
    _ZN5boost3log12v2s_mt_posix4core11open_recordERKNS1_13attribute_setE(??, ??) at 0x10001c358
    _ZN5boost3log12v2s_mt_posix7sources22basic_composite_loggerIcNS2_18severity_logger_mtINS1_7trivial14severity_levelEEENS2_18multi_thread_modelINS1_3aux14light_rw_mutexEEENS2_8featuresIJNS2_8severityIS6_EEEEEE11open_recordINS_9parameter3aux15tagged_argument(??, ??) at 0x10009c988
    _ZN7logging21AgentLogUploadManager17_ClearOldLogFilesEv(??) at 0x100026980
    _ZNSt17_Function_handlerIFvvESt5_BindIFMN7logging21AgentLogUploadManagerEFvvEPS3_EEE9_M_invokeERKSt9_Any_data(??) at 0x10002c688
    _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN4util13CallbackTimer5StartEjSt8functionIFvvEEEUlvE_EEEEE6_M_runEv(??) at 0x1004019b0
    execute_native_thread_routine(__p = 0x0000000110100750), line 80 in "thread.cc"
    Please let me know if more information is required and thanks in advance for any pointers. 
    ajit



    ------------------------------
    Ajit Krishnan Ranganathan
    ------------------------------