T2 multithread test fails with 32 threads , cores in SRVR_STMT_HDL::Execute

Bug #1359322 reported by Aruna Sadashiva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Committed
High
RuoYu Zuo

Bug Description

(gdb) bt
#0 0x0000003c93032925 in raise () from /lib64/libc.so.6
#1 0x0000003c93034105 in abort () from /lib64/libc.so.6
#2 0x00007f04461798c5 in ?? ()
   from /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/lib/amd64/server/libjvm.so
#3 0x00007f04462e778f in ?? ()
   from /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/lib/amd64/server/libjvm.so
#4 0x00007f044617ea92 in JVM_handle_linux_signal ()
   from /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/lib/amd64/server/libjvm.so
#5 <signal handler called>
#6 0x0000003c93134312 in __strcpy_ssse3 () from /lib64/libc.so.6
#7 0x00007f042cd1cb35 in SRVR_STMT_HDL::Execute (this=0x1c95dc0,
    inCursorName=0x0, totalRowCount=1, inSqlStmtType=0,
    inValueList=0x7f042de99190, inSqlAsyncEnable=0, inQueryTimeout=0,
    outValueList=0x7f042de99180) at native/CSrvrStmt.cpp:275
#8 0x00007f042cd1ceb4 in SRVR_STMT_HDL::ExecDirect (this=0x1c95dc0,
    inCursorName=0x0, inSqlString=0x7f042de99310, inStmtType=0,
    inSqlStmtType=0, inHoldability=2, inQueryTimeout=0)
    at native/CSrvrStmt.cpp:391
#9 0x00007f042cd3b71d in odbc_SQLSvc_ExecDirect_sme_ (objtag_=0x0,
    call_id_=0x0, exception_=0x7f042de99340, dialogueId=10493984,
---Type <return> to continue, or q <return> to quit---
    stmtLabel=0xb05170 "STMT6", cursorName=0x0,
    stmtExplainLabel=0x7f042cd3fc6c "", stmtType=0, sqlStmtType=0,
    sqlString=0x7f042de99310, holdability=2, queryTimeout=0,
    resultSet=139655926879472, estimatedCost=0x7f042de993b0,
    outputDesc=0x7f042de99380, rowsAffected=0x7f042de993a8,
    sqlWarning=0x7f042de99390, stmtId=0x7f042de99370, currentStmtId=0)
    at native/SrvrOthers.cpp:671
#10 0x00007f042cd36b9d in Java_org_trafodion_jdbc_t2_SQLMXStatement_executeDirect (jenv=0x9e51d8, jobj=0x7f042de99558, server=0x0, dialogueId=10493984,
    txid=0, autoCommit=1 '\001', txnMode=2, stmtLabel=0x7f042de99520,
    cursorName=0x0, sql=0x7f042de99510, isSelect=0 '\000', queryTimeout=0,
    holdability=2, resultSet=0x7f042de994f0, currentStmtId=0)
    at native/SQLMXStatement.cpp:140
#11 0x00007f0442074738 in ?? ()
#12 0x0000000000000002 in ?? ()
#13 0x00007f042de99520 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)

Changed in trafodion:
importance: Critical → High
Changed in trafodion:
assignee: Tharak Capirala (capirala-tharaknath) → Rajeswari Muddu (rajeswari-j-muddu)
Revision history for this message
Aruna Sadashiva (aruna-sadashiva) wrote :

T2 multithreaded test is failing with 30 threads with 8/23 build. Let me know if you want to take a look and need some time on cluster.

Changed in trafodion:
assignee: Rajeswari Muddu (rajeswari-j-muddu) → nobody
assignee: nobody → Pavani Puppala (pavani-puppala)
Changed in trafodion:
milestone: none → r1.0
Revision history for this message
Pavani Puppala (pavani-puppala) wrote :

This failure is due to using C++ library functions that are not thread safe functions like strtok(), there are other functions that are not thread safe which need to be checked. Assigning to Daniel since he working on removing all non thread safe standard library function calls from T2 driver code.

Changed in trafodion:
assignee: Pavani Puppala (pavani-puppala) → Daniel Lu (ping-lu)
Jian Jin (jian-jin)
Changed in trafodion:
assignee: Daniel Lu (ping-lu) → RuoYu Zuo (ruo-yu-zuo)
Changed in trafodion:
status: New → In Progress
Revision history for this message
RuoYu Zuo (ruo-yu-zuo) wrote :

This should be already fixed since Daniel's changes for function safety were checked in. I have run the multi-thread tests, with 10 threads, 20 threads, 32 threads and 50 threads, this core no longer occurred. Change the status to "Fix Committed".

Changed in trafodion:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.