SAP Knowledge Base Article - Preview

3215563 - ContextStack.cpp(xxxxx) : Free stack is less than required! free: <> size: <>

Symptom

  • BW Query may fail with error:
    Executor: plan operation failed;Check stack size for xxx bytes failed, only xxx bytes left 

  • The below error/warning is encountered within the 'indexserver_localhost.port.xxx.trc' & 'indexserver_alert_localhost.port.xxx.trc' trace files of a HANA system.
      
     
    [54711]\{341964\}[59/-1] 2022-06-14 13:38:41.178143 e Thread           ContextStack.cpp(00242) : Free stack is less than required! free: 384 size: 500
    [80758]\{342006\}[59/-1] 2022-06-14 13:41:17.496463 e Thread           ContextStack.cpp(00242) : Free stack is less than required! free: 384 size: 500

   

  • A thread callstack with a large or atypical sequence execution size  of > 1024 calls is observed in the indexserver or in runtime dumps :
      
         
    619931538[thr=53497]: Request at 
    1: 0x00007f85d760002b in Diagnose::impl::dumpInfoSelfCtx(ltt::basic_ostream<char, ltt::char_traits<char> >&, bool, bool, bool, bool, bool, bool, unsigned long)+0x67 at Trace.cpp:32 (libhdbbasis.so
    2: 0x00007f85dc8d639c in TrexNet::NetInput::checkType(unsigned char)+0x7d8 at BufferedIO.cpp:3853 (libhdbbasement.so)
    3: 0x00007f85dc8feffc in TrexNet::NetInput::operator>>(unsigned int&)+0x28 at BufferedIO.cpp:2977 (libhdbbasement.so)
    4: 0x00007f85e80113dd in hex::dist::TrexNetDistributionRequest::receiveBufferImpl(unsigned char*, unsigned long&, unsigned int&)+0x29 at TrexNetDistributionRequest.cpp:56 (libhdbhexcore.so)
    5: 0x00007f85e800ca15 in hex::dist::TrexNetDxchgSendRequest::receiveDatachunkImpl(hex::DistributedOpBufferStateBase&)+0x41 at TrexNetDxchgSendRequest.cpp:173 (libhdbhexcore.so)
    6: 0x00007f85e7f2adbd in hex::operators::ReceiveOp::run(hex::RunContext, hex::datachunk::Writer) const+0x169 at DistributedOperators.hpp:164 (libhdbhexcore.so)
    7: 0x00007f85e7fc4eb3 in hex::OutOperatorBase::xf_run(hex::RunContext) const+0xa0 at OperatorImpl.cpp:151 (libhdbhexcore.so)
    8: 0x00007f85e7fda353 in hex::ExecPlanFragmentApi::receiveImpl(Execution::Context&, hex::DistributedContext&, hex::OperatorGraph const&, unsigned int, hex::DistributedOpBufferTransferInterface&) const+0x190 at OperatorGraph.hpp:196 (libhdbhexcore.so)
    9: 0x00007f85e801ba16 in hex::DistributionRequestHandler::handleRequest(hex::DxchgSendRequest&)+0x252 at DistributionRequestHandler.cpp:496 (libhdbhexcore.so)
    10: 0x00007f85e801bcc0 in void hex::DistributionRequestHandler::handleExecRequest<hex::DxchgSendRequest>(hex::DxchgSendRequest&)+0x10 at DistributionRequestHandler.cpp:288 (libhdbhexcore.so)
    11: 0x00007f85e801c04d in hex::DistributionRequestHandler::handleTrexNetRequest(ltt::basic_string<char, ltt::char_traits<char>, ltt::integral_constant<int, 64> > const&, TrexNet::Request&)+0x369 at DistributionRequestHandler.cpp:374 (libhdbhexcore.so)
    12: 0x00005611d73b5720 in TrexService::RequestHandlerWrapper<hex::HexComponent::registerRequestHandlers(NameServer::ServiceType, TrexService::RequestHandlerRegistry&)::{lambda(auto:1&, auto:2&)#1}, 2, TrexService::AnyOf<TrexService::IsAssigned, TrexService::IsSecondary> >::handle(TrexNet::Request&, TrexService::HandlerContext const&)+0x220 at string.hpp:1458 (hdbindexserver)
    13: 0x00005611d739ede4 in TrexService::ComponentManager::handle(TrexNet::Request&, TrexService::HandlerContext const&)+0x80 at ComponentManager.cpp:276 (hdbindexserver)
    14: 0x00005611d73d81f9 in TRexAPI::TREXIndexServer::handle(TrexNet::Request&, TrexService::HandlerContext&)+0xda5 at TREXIndexServer.cpp:3268 (hdbindexserver)
    15: 0x00007f85dc862216 in TrexService::WorkerThread::run(void*)+0xc52 at TrexServiceThreads.cpp:606 (libhdbbasement.so)
    16: 0x00007f85dc8312d4 in TrexThreads::PoolThread::run()+0x970 at PoolThread.cpp:462 (libhdbbasement.so)
    17: 0x00007f85dc8330e0 in TrexThreads::PoolThread::run(void*&)+0x10 at PoolThread.cpp:142 (libhdbbasement.so)
    18: 0x00007f85d750f3fd in Execution::Thread::staticMainImp(Execution::Thread*)+0x529 at Thread.cpp:522 (libhdbbasis.so)
    19: 0x00007f85d7500b39 in Execution::pthreadFunctionWrapper(Execution::Thread*)+0x165 at ThreadInterposition.cpp:639 (libhdbbasis.so)
    20: 0x00007f85d6b81ea5 in start_thread+0xc1 (libpthread.so.0)
    ...........
    1032: 0x00007f85d52819fd in __clone+0x69 (libc.so.6)

     
  • The application is terminated with the following error when the stack size is reached:

    2: general error: Check stack size for <size> bytes failed, only <free> bytes left


Read more...

Environment

SAP HANA, platform edition 2.0

Product

SAP HANA, platform edition 2.0

Keywords

Inject complex filter , KBA , HAN-DB-ENG , SAP HANA DB Engines , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.