Menu

crash FB

Help
2014-09-11
2014-09-11
  • raz ben jehuda

    raz ben jehuda - 2014-09-11

    Hey
    I created a simple FB with an array as INIT and events. when testing it with FBtester
    it crashes. here is the dump stack.

    0x00000000004397e2 in CIEC_ARRAY::setup (this=0x7ffff0002020, pa_nLength=477, pa_unArrayType=584)
    at /home/raz/opensource/FORTE_1.5.2/src/core/datatypes/forte_array.cpp:65
    65 poBuf->clone(acDataBuf); //clone is faster than the CTypeLib call
    (gdb) bt

    0 0x00000000004397e2 in CIEC_ARRAY::setup (this=0x7ffff0002020, pa_nLength=477, pa_unArrayType=584)

    at /home/raz/opensource/FORTE_1.5.2/src/core/datatypes/forte_array.cpp:65
    

    1 0x00000000004403b2 in CFunctionBlock::createDataPoint (pa_panDataTypeIds=0x7ffff67e8ad0,

    pa_acDataBuf=0x7ffff0002020 "\220\062E") at /home/raz/opensource/FORTE_1.5.2/src/core/funcbloc.cpp:436
    

    2 0x00000000004405ed in CFunctionBlock::setupFBInterface (this=0x7ffff0001f50, pa_pstInterfaceSpec=0x454360,

    pa_acFBConnData=0x7ffff0002008 "\220\062E", pa_acFBVarsData=0x7ffff0002020 "\220\062E", pa_bManagesFBData=false)
    at /home/raz/opensource/FORTE_1.5.2/src/core/funcbloc.cpp:492
    

    3 0x000000000043eb19 in CFunctionBlock::CFunctionBlock (this=0x7ffff0001f50, pa_poSrcRes=0x7ffff0001310,

    pa_pstInterfaceSpec=0x454360, pa_nInstanceNameId=760, pa_acFBConnData=0x7ffff0001fe8 "", 
    pa_acFBVarsData=0x7ffff0002008 "\220\062E") at /home/raz/opensource/FORTE_1.5.2/src/core/funcbloc.cpp:28
    

    4 0x000000000043b8a9 in CBasicFB::CBasicFB (this=0x7ffff0001f50, pa_poSrcRes=0x7ffff0001310,

    pa_pstInterfaceSpec=0x454360, pa_nInstanceNameId=760, pa_pstVarInternals=0x0, pa_acFBConnData=0x7ffff0001fe8 "", 
    pa_acBasicFBVarsData=0x7ffff0002008 "\220\062E") at /home/raz/opensource/FORTE_1.5.2/src/core/basicfb.cpp:18
    

    5 0x0000000000448c70 in FORTE_IMStepper::FORTE_IMStepper (this=0x7ffff0001f50, pa_nInstanceNameId=760,

    pa_poSrcRes=0x7ffff0001310) at /home/raz/opensource/FORTE_1.5.2/src/modules/IMStepper/IMStepper.h:64
    

    6 0x0000000000448c16 in FORTE_IMStepper::createFB (pa_nInstanceNameId=760, pa_poSrcRes=0x7ffff0001310)

    at /home/raz/opensource/FORTE_1.5.2/src/modules/IMStepper/IMStepper.h:19
    
     
  • Zoitl Alois

    Zoitl Alois - 2014-09-11

    How did you configure your array? Would it be possible to have the xml file for the FB?