You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:17:58 UTC
[jira] [Created] (TRAFODION-730) LP Bug: 1388194 - Catman1/TEST137
core with env MEMDEBUG=2
Alice Chen created TRAFODION-730:
------------------------------------
Summary: LP Bug: 1388194 - Catman1/TEST137 core with env MEMDEBUG=2
Key: TRAFODION-730
URL: https://issues.apache.org/jira/browse/TRAFODION-730
Project: Apache Trafodion
Issue Type: Bug
Components: sql-security
Reporter: justin.du@hp.com
Assignee: Cliff Gray
Priority: Critical
Enabling NA memory debug (export MEMDEBUG=2) exposed problem of memory overflow. The test created sqlci core file when running these steps in catman1/TEST137:
-- set up privileges
show role library_admin;
show role library_chout_clerks;
showddl component sql_operations; << this cause sqlci to dump core.
[Thread debugging using libthread_db enabled]
Core was generated by `/opt/home/dujustin/core/sqf/export/bin64d/sqlci -iTEST137.tmp'.
Program terminated with signal 6, Aborted.
#0 0x0000003aab4328a5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0000003aab4328a5 in raise () from /lib64/libc.so.6
#1 0x0000003aab43400d in abort () from /lib64/libc.so.6
#2 0x0000003aab42ba1e in __assert_fail_base () from /lib64/libc.so.6
#3 0x0000003aab42bae0 in __assert_fail () from /lib64/libc.so.6
#4 0x00007ffff46efc29 in NAHeap::allocateHeapMemory (this=0xb96e48,
userSize=36028797018964120, failureIsFatal=1)
at ../common/NAMemory.cpp:3392
#5 0x00007ffff46ecfd6 in NAHeap::allocateBlock (this=0x7fffe96cb178,
size=36028797018964120, failureIsFatal=1) at ../common/NAMemory.cpp:2531
#6 0x00007ffff46efbb0 in NAHeap::allocateHeapMemory (this=0x7fffe96cb178,
userSize=36028797018964120, failureIsFatal=1)
at ../common/NAMemory.cpp:3379
#7 0x00007ffff46ecfd6 in NAHeap::allocateBlock (this=0x7fffe8c5bf18,
size=36028797018964120, failureIsFatal=1) at ../common/NAMemory.cpp:2531
#8 0x00007ffff46efbb0 in NAHeap::allocateHeapMemory (this=0x7fffe8c5bf18,
userSize=36028797018964120, failureIsFatal=1)
at ../common/NAMemory.cpp:3379
#9 0x00007ffff46ecfd6 in NAHeap::allocateBlock (this=0x7fffd6e9d238,
size=36028797018964120, failureIsFatal=1) at ../common/NAMemory.cpp:2531
#10 0x00007ffff46efbb0 in NAHeap::allocateHeapMemory (this=0x7fffd6e9d238,
userSize=18446744073709541095, failureIsFatal=1)
at ../common/NAMemory.cpp:3379
#11 0x00007ffff46ebbb5 in NAMemory::allocateMemory (this=0x7fffd6e9d238,
size=18446744073709541095, failureIsFatal=1) at ../common/NAMemory.cpp:1398
#12 0x00007ffff5c2b755 in operator new[] (t=18446744073709541095,
h=0x7fffd6e9d238) at ../export/NABasicObject.cpp:372
#13 0x00007ffff4cc9ca3 in ExeCliInterface::fetchAllRows (this=0x7ffffffeb100,
infoList=@0x7ffffffeb238,
query=0x3401f38 "SELECT AU.AUTH_DB_NAME, CP.GRANTEE_ID, CP.GRANTOR_ID, CP.COMPONENT_UID, CP.OPERATION_CODE, CP.GRANT_DEPTH FROM TRAFODION.\"PRIVMGR_MD\".COMPONENT_PRIVILEGES CP LEFT JOIN TRAFODION.\"_MD_\".AUTHS AU ON AU."...,
inNumOutputEntries=0, varcharFormat=0, monitorThis=0, initInfoList=1)
at ../executor/ExExeUtilCli.cpp:1151
#14 0x00007ffff0eb4a58 in PrivMgrComponentPrivileges::describeComponentPrivileges (this=0x7ffffffeb470, componentUIDString=..., componentName=...,
operationCode=..., operationName=..., outlines=...)
at ../sqlcomp/PrivMgrComponentPrivileges.cpp:281
#15 0x00007ffff0eb153b in PrivMgrComponentOperations::describeComponentOperations (this=0x7ffffffeb430, componentUIDString=..., componentName=...,
outlines=..., componentPrivileges=0x7ffffffeb470)
at ../sqlcomp/PrivMgrComponentOperations.cpp:593
#16 0x00007ffff0e9399d in PrivMgrCommands::describeComponents (
this=0x7ffffffeda90, componentName=..., outlines=...)
at ../sqlcomp/PrivMgrCommands.cpp:216
#17 0x00007ffff0e04bf2 in CmpDescribe (
query=0x7fffd6e80928 "showddl component sql_operations;", queryExpr=
0x7fffd6e6e210, outbuf=@0x7fffd5585840, outbuflen=@0x7fffd5585838,
heap=0x7fffe8c5bf18) at ../sqlcomp/CmpDescribe.cpp:689
#18 0x00007ffff54c0ec7 in CmpStatement::process (this=0x7fffd6e836c8,
statement=...) at ../arkcmp/CmpStatement.cpp:978
#19 0x00007ffff54b41a6 in CmpContext::compileDirect (this=0x7fffe80c5090,
data=0x7fffd2c35348 "showddl component sql_operations;", data_len=33,
outHeap=0x7fffe96cb178, charset=15, op=CmpMessageObj::DESCRIBE,
gen_code=@0x7fffd3b974d0, gen_code_len=@0x7fffd3b974d8, parserFlags=0,
diagsArea=0x7fffd2c879a0) at ../arkcmp/CmpContext.cpp:729
#20 0x00007ffff4c308f2 in ExDescribeTcb::work (this=0x7fffd3b971a8)
at ../executor/ex_ddl.cpp:583
#21 0x00007ffff4c4350b in ex_tcb::sWork (tcb=0x7fffd3b971a8)
at ../executor/ex_tcb.h:99
#22 0x00007ffff4d48213 in ExSubtask::work (this=0x7fffd3b97ba0)
at ../executor/ExScheduler.cpp:751
#23 0x00007ffff4d475d6 in ExScheduler::work (this=0x7fffd3b96d10,
prevWaitTime=0) at ../executor/ExScheduler.cpp:328
#24 0x00007ffff4c839cb in ex_root_tcb::execute (this=0x7fffd3b97c20,
cliGlobals=0xb96d30, glob=0x7fffd3bef820, input_desc=0x7fffd4dca308,
diagsArea=@0x7ffffffefc20, reExecute=0) at ../executor/ex_root.cpp:1034
#25 0x00007ffff5f06b41 in CliStatement::execute (this=0x7fffd4bb0c00,
cliGlobals=0xb96d30, input_desc=0x7fffd4dca308, diagsArea=...,
execute_state=CliStatement::INITIAL_STATE_, fixupOnly=0, cliflags=0)
at ../cli/Statement.cpp:4746
#26 0x00007ffff5eab4d0 in SQLCLI_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=0xb96d30, tasks=4882,
statement_id=0x37db900, input_descriptor=0x30f6210, output_descriptor=0x0,
num_input_ptr_pairs=0, num_output_ptr_pairs=0, ap=0x7fffffff0200,
input_ptr_pairs=0x0, output_ptr_pairs=0x0) at ../cli/Cli.cpp:3280
#27 0x00007ffff5eabe41 in SQLCLI_Exec(CliGlobals *, SQLSTMT_ID *, SQLDESC_ID *, Lng32, typedef __va_list_tag __va_list_tag *, SQLCLI_PTR_PAIRS *) (
cliGlobals=0xb96d30, statement_id=0x37db900, input_descriptor=0x30f6210,
num_ptr_pairs=0, ap=0x7fffffff0200, ptr_pairs=0x0) at ../cli/Cli.cpp:3527
#28 0x00007ffff5f19c9a in SQL_EXEC_Exec (statement_id=0x37db900,
input_descriptor=0x30f6210, num_ptr_pairs=0) at ../cli/CliExtern.cpp:2062
#29 0x00007ffff79b94ac in SqlCmd::doExec (sqlci_env=0xb95500, stmt=0x37db900,
prep_stmt=0x1f8db90, numUnnamedParams=0, unnamedParamArray=0x0,
unnamedParamCharSetArray=0x0, handleError=1) at ../sqlci/SqlCmd.cpp:1706
#30 0x00007ffff79ba2a2 in SqlCmd::do_execute (sqlci_env=0xb95500,
prep_stmt=0x1f8db90, numUnnamedParams=0, unnamedParamArray=0x0,
unnamedParamCharSetArray=0x0, prepcode=0) at ../sqlci/SqlCmd.cpp:2042
#31 0x00007ffff79bc5a3 in DML::process (this=0xcefa50, sqlci_env=0xb95500)
at ../sqlci/SqlCmd.cpp:2816
#32 0x00007ffff799dae0 in Obey::process (this=0x3428fc0, sqlci_env=0xb95500)
at ../sqlci/Obey.cpp:264
#33 0x00007ffff799dae0 in Obey::process (this=0x22d5bf0, sqlci_env=0xb95500)
at ../sqlci/Obey.cpp:264
#34 0x00007ffff79a6401 in SqlciEnv::run (this=0xb95500,
in_filename=0x7fffffff2bc1 "TEST137.tmp", input_string=0x0)
at ../sqlci/SqlciEnv.cpp:726
#35 0x0000000000401fe0 in main (argc=2, argv=0x7fffffff1eb8)
at ../bin/SqlciMain.cpp:317
(gdb) f 13
#13 0x00007ffff4cc9ca3 in ExeCliInterface::fetchAllRows (this=0x7ffffffeb100,
infoList=@0x7ffffffeb238,
query=0x3401f38 "SELECT AU.AUTH_DB_NAME, CP.GRANTEE_ID, CP.GRANTOR_ID, CP.COMPONENT_UID, CP.OPERATION_CODE, CP.GRANT_DEPTH FROM TRAFODION.\"PRIVMGR_MD\".COMPONENT_PRIVILEGES CP LEFT JOIN TRAFODION.\"_MD_\".AUTHS AU ON AU."...,
inNumOutputEntries=0, varcharFormat=0, monitorThis=0, initInfoList=1)
at ../executor/ExExeUtilCli.cpp:1151
1151 + len + (nullTerminate ? 1 : 0)];
(gdb) p len
$1 = -10522
The size of the memory asked is too big, see frame #11. The len was taken from the ExeCliInterface::output_desc_ by the getPrtAndLen() call.
Further analysis is needed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)