Statement Label could not be allocated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
High
|
Arvind Narain |
Bug Description
This has happened multiple times since Friday on performance test system Zircon4 - reporting the last two since now running 1.0.1rc2 at present.
2015-02-17 18:36:22 ERROR -
>------
> Unexpected SQLEXCEPTION, Error Code = -1
> Stream Number : 989 , Transaction Number : 1
> SingletonSelect , scale = 20 , key_value = user55892489986
> Statement Label could not be allocated. [2015-02-17 18:36:22]
>------
org.trafodion.
at org.trafodion.
at org.trafodion.
at org.trafodion.
at org.trafodion.
at DatabaseConnect
at YCSBWorkload2.
at WorkloadDriver.
=======
An mxosrvr core has occurred both times as well. Stack trace for the two cores are:
echo /local/
echo
…
[Thread debugging using libthread_db enabled]
Core was generated by `mxosrvr -ZKHOST n014.cm.
Program terminated with signal 6, Aborted.
#0 0x00007ffff4a328a5 in raise () from /lib64/libc.so.6
#0 0x00007ffff4a328a5 in raise () from /lib64/libc.so.6
#1 0x00007ffff4a3400d in abort () from /lib64/libc.so.6
#2 0x00007ffff5d51a55 in os::abort(bool) () from /usr/java/
#3 0x00007ffff5ed1f87 in VMError:
#4 0x00007ffff5d5696f in JVM_handle_
#5 <signal handler called>
#6 0x00007ffff43119e9 in SQLCLI_
__va_list_tag __va_list_tag *, SQLCLI_PTR_PAIRS *, SQLCLI_PTR_PAIRS *) (cliGlobals=
t_descriptor=0x0, output_
ut_ptr_pairs=0x0) at ../cli/Cli.cpp:2943
#7 0x00007ffff431bbfb in SQLCLI_
_tag __va_list_tag *, SQLCLI_PTR_PAIRS *) (cliGlobals=
0, input_descripto
#8 0x00007ffff4377bba in SQL_EXEC_
0, num_ptr_pairs=0) at ../cli/
#9 0x00007ffff6a74e17 in SRVR::WSQL_
tr_pairs=0) at SQLWrapper.cpp:360
#10 0x00007ffff6a6a8c0 in SRVR::EXECDIRECT (pSrvrStmt=
#11 0x00007ffff6a2e245 in SRVR::ControlProc (pParam=0x19edec0) at csrvrstmt.cpp:757
#12 0x00007ffff6a2f008 in SRVR_STMT_
\"_REPOS_
00000206U333330
yncEnable=<value optimized out>, inQueryTimeout=0) at csrvrstmt.cpp:439
#13 0x00000000004ccb1b in SessionWatchDog (arg=<value optimized out>) at SrvrConnect.cpp:818
#14 0x00007ffff45b2851 in start_thread () from /lib64/
#15 0x00007ffff4ae890d in clone () from /lib64/libc.so.6
=====
echo
echo /local/
echo
…
[Thread debugging using libthread_db enabled]
Core was generated by `mxosrvr -ZKHOST n014.cm.
Program terminated with signal 6, Aborted.
#0 0x00007ffff4a328a5 in raise () from /lib64/libc.so.6
#0 0x00007ffff4a328a5 in raise () from /lib64/libc.so.6
#1 0x00007ffff4a3400d in abort () from /lib64/libc.so.6
#2 0x00007ffff5d51a55 in os::abort(bool) () from /usr/java/
#3 0x00007ffff5ed1f87 in VMError:
#4 0x00007ffff5d5696f in JVM_handle_
#5 <signal handler called>
#6 SRVR_STMT_
#7 0x00007ffff6a2ef90 in SRVR_STMT_
.metric_
S_USED = 0,TOTAL_
ble=<value optimized out>, inQueryTimeout=0) at csrvrstmt.cpp:414
#8 0x00000000004ccb1b in SessionWatchDog (arg=<value optimized out>) at SrvrConnect.cpp:818
#9 0x00007ffff45b2851 in start_thread () from /lib64/
#10 0x00007ffff4ae890d in clone () from /lib64/libc.so.6
Changed in trafodion: | |
importance: | Undecided → High |
assignee: | nobody → Mike Hanlon (mike-hanlon) |
Changed in trafodion: | |
assignee: | Mike Hanlon (mike-hanlon) → Arvind Narain (arvind-narain) |
Changed in trafodion: | |
milestone: | none → r1.2 |
assignee: | Arvind Narain (arvind-narain) → Daniel Lu (ping-lu) |
milestone: | r1.2 → r1.1 |
assignee: | Daniel Lu (ping-lu) → nobody |
assignee: | nobody → Arvind Narain (arvind-narain) |
status: | New → Fix Committed |
milestone: | r1.1 → r1.0.1 |
Notes on pid 5019 cores/1005/ core.1424198189 .n020.5019. mxosrvr
/local/
#5 <signal handler called> PerformTasks( CliGlobals *, ULng32, SQLSTMT_ID *, SQLDESC_ID *, SQLDESC_ID *, Lng32, Lng32, typedef __va_list_tag __va_list_tag *, SQLCLI_PTR_PAIRS *, SQLCLI_PTR_PAIRS *) (cliGlobals= 0xeea9c0, tasks=606, statement_ id=0x19ee4d8, descriptor= 0x0, output_ descriptor= 0x0, num_input_ ptr_pairs= 0, num_output_ ptr_pairs= 0, ap=0x7fffd22385d0, input_ptr_ pairs=0x0, ptr_pairs= 0x0) at ../cli/Cli.cpp:2943 ExecDirect2( CliGlobals *, SQLSTMT_ID *, SQLDESC_ID *, Int32, SQLDESC_ID *, Lng32, typedef __va_list_tag __va_list_tag *, SQLCLI_PTR_PAIRS *) (cliGlobals= 0xeea9c0, statement_ id=0x19ee4d8, sql_source=<value optimized out>, prepFlags=0, descriptor= 0x0, num_ptr_pairs=0, ap=0x7fffd22385d0, ptr_pairs=0x0) at ../cli/Cli.cpp:3718 ExecDirect2 (statement_ id=0x19ee4d8, sql_source= 0x7fffd22387c0, prep_flags=0, input_descripto r=0x0, ptr_pairs= 0) at ../cli/ CliExtern. cpp:2326 EXEC_ExecDirect (statement_ id=0x19ee4d8, sql_source= 0x7fffd22387c0, input_descripto r=0x0, ptr_pairs= 0) at SQLWrapper.cpp:360 0x19edec0) at sqlinterface. cpp:4479 HDL::ExecDirect (this=0x19edec0, inCursorName=0x0, =0x1a54498 "insert into Trafodion. \"_REPOS_ \".metric_ query_aggr_ table values( 0,0,0,5019, 5019,9, 0,0,'15. 250.48. 108',0, '$Z09043E' ,'MXID110090050 192122909579434 510640000000002 06U3333300' ,CONVERTTIMESTA MP(212290958169 4"..., inStmtType=<value optimized out>, pe=<value optimized out>, inSqlAsyncEnabl e=<value optimized out>, inQueryTimeout=0) at csrvrstmt.cpp:439 libpthread. so.0
#6 0x00007ffff43119e9 in SQLCLI_
input_
output_
#7 0x00007ffff431bbfb in SQLCLI_
input_
#8 0x00007ffff4377bba in SQL_EXEC_
num_
#9 0x00007ffff6a74e17 in SRVR::WSQL_
num_
#10 0x00007ffff6a6a8c0 in SRVR::EXECDIRECT (pSrvrStmt=
#11 0x00007ffff6a2e245 in SRVR::ControlProc (pParam=0x19edec0) at csrvrstmt.cpp:757
#12 0x00007ffff6a2f008 in SRVR_STMT_
inSqlString
inSqlStmtTy
#13 0x00000000004ccb1b in SessionWatchDog (arg=<value optimized out>) at SrvrConnect.cpp:818
#14 0x00007ffff45b2851 in start_thread () from /lib64/
#15 0x00007ffff4ae890d in clone () from /lib64/libc.so.6
In Frame 6 --
(gdb) p *statement_id
$3 = {
version = -293728816,
name_mode = 32767,
module = 0x2932287261686320,
identifier = 0x0,
handle = 0x0,
charset = 0x0,
identifier_len = 0,
tag = 1819047278
}
(gdb) p statement_ id->module id->module- >module_ name
$6 = (const SQLMODULE_ID *) 0x2932287261686320
(gdb) p statement_
Cannot access memory at address 0x2932287261686328
(gdb) p stmtInfo
$7 = (StatementInfo *) 0x0
The caller has set tasks as... GET_INPUT_ DESC | CLI_PT_EXEC | CLI_PT_FETCH | SPECIAL_ END_PROCESS | CLI_PT_EPILOGUE;
3714 ULng32 tasks = CLI_PT_
3715 CLI_PT_CLOSE |CLI_PT_
The statement_id param is definitely corrupt.But this the first use of statement_id in SQLCLI_PerformTasks -- see tasks and stmt_info.
2893 Lng32 SQLCLI_ PerformTasks(
2894 /*IN*/ CliGlobals * cliGlobals,
2895 /*IN*/ ULng32 tasks,
2896 /*IN*/ SQLSTMT_ID * statement_id,
2897 /*IN OPTIONAL*/ SQLDESC_ID * input_descriptor,
2898 /*IN OPTIONAL*/ SQLDESC_ID * output_descriptor,
2899 /*IN*/ Lng32 num_inpu...