Create table with foreign key constraint intermittently produces tdm_arkcmp core.
Script attempts to execute many ddl statement and must be run in its entirety to
reproduce issue. Issue occurs more often via sqlci.
Encountered on traf_20140606_0930, 4-node cluster.
To reproduce, extract contents of attachment:
1. ./cleanup
2. ./repro_it
from log:
>>Create table T5(O int,
+>P smallint,
+>Q largeint,
+>R numeric(9,3)not null not droppable,
+>S decimal(18,9),
+>T char(20),
+>U float(52),
+>V real,
+>W double precision,
+>X timestamp,
+>Y interval year to month ,
+>Z char (12),
+>AA time not null not droppable, primary key(R,AA));
--- SQL operation complete.
>>
>>Create table T6 (O int default null,
+> P smallint default null,
+> Q largeint default null,
+> R numeric(9,3) not null ,
+> S decimal(18,9) default null,
+> T char(20) default null,
+> U float(52) default null,
+> V real default null,
+> W double precision default null,
+> X timestamp default null,
+> Y interval year to month default null ,
+> Z char (12) default null,
+> AA time not null primary key droppable)
+> attribute extent 256;
*** ERROR[1389] Object T5_699928485_4973 does not exist in Trafodion.
*** ERROR[8838] Unable to receive reply from Compiler, possibly caused by internal errors when compiling SQL statements, processing DDL statements, or executing the builtin stored procedures.
*** ERROR[1029] Object TRAFODION.MYSCH.T7_898119485_4973 could not be created.
*** ERROR[1029] Object TRAFODION.MYSCH.T7 could not be created.
--- SQL operation failed with errors.
From stdout:
>>Create table T7 (R Numeric(9,3),AA Time, FOREIGN KEY(R,AA) REFERENCES T5
+> );
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8bfd94da56, pid=7030, tid=140239092416096
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-mockbuild_2014_04_09_11_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.so+0x7b4a56] createConstraintInfo(desc_struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraintList&, AbstractRIConstraintList&, AbstractRIConstraintList&, NAMemory*, BindWA*)+0x233
#
# Core dump written. Default location: /home/trafodion/thaiju/core or core.7030
#
# An error report file with more information is saved as:
# /tmp/jvm-7030/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f7ad3456a56, pid=11356, tid=140165368122976
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-mockbuild_2014_04_09_11_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.so+0x7b4a56] createConstraintInfo(desc_struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraintList&, AbstractRIConstraintList&, AbstractRIConstraintList&, NAMemory*, BindWA*)+0x233
#
# Core dump written. Default location: /home/trafodion/thaiju/core or core.11356
#
# An error report file with more information is saved as:
# /tmp/jvm-11356/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f21f49dea56, pid=11458, tid=139783675481696
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-mockbuild_2014_04_09_11_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.so+0x7b4a56] createConstraintInfo(desc_struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraintList&, AbstractRIConstraintList&, AbstractRIConstraintList&, NAMemory*, BindWA*)+0x233
#
# Core dump written. Default location: /home/trafodion/thaiju/core or core.11458
#
# An error report file with more information is saved as:
# /tmp/jvm-11458/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fd3876aba56, pid=11645, tid=140546347589216
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-mockbuild_2014_04_09_11_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.so+0x7b4a56] createConstraintInfo(desc_struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraintList&, AbstractRIConstraintList&, AbstractRIConstraintList&, NAMemory*, BindWA*)+0x233
#
# Core dump written. Default location: /home/trafodion/thaiju/core or core.11645
#
# An error report file with more information is saved as:
# /tmp/jvm-11645/hs_error.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
*** ERROR[1389] Object T5_699928485_4973 does not exist in Trafodion.
*** ERROR[8838] Unable to receive reply from Compiler, possibly caused by internal errors when compiling SQL statements, processing DDL statements, or executing the builtin stored procedures.
*** ERROR[1029] Object TRAFODION.MYSCH.T7_898119485_4973 could not be created.
*** ERROR[1029] Object TRAFODION.MYSCH.T7 could not be created.
--- SQL operation failed with errors.
Stacktrace from core file:
#0 0x0000003fc0832925 in raise () from /lib64/libc.so.6
#1 0x0000003fc0834105 in abort () from /lib64/libc.so.6
#2 0x00007f8bf9abe8c5 in ?? () from /usr/lib/jvm/java/jre/lib/amd64/server/libjvm.so
#3 0x00007f8bf9c2c78f in ?? () from /usr/lib/jvm/java/jre/lib/amd64/server/libjvm.so
#4 0x00007f8bf9ac3a92 in JVM_handle_linux_signal ()
from /usr/lib/jvm/java/jre/lib/amd64/server/libjvm.so
#5 <signal handler called>
#6 0x00007f8bfd94da56 in createConstraintInfo (table_desc=0x7f8be645a5f8, tableQualName=...,
columnArray=..., checkConstraints=..., uniqueConstraints=..., refConstraints=..., heap=
0x7f8be6595ca0, bindWA=0x7fff19eff2d0) at ../optimizer/NATable.cpp:4063
#7 0x00007f8bfd94f8b9 in NATable::NATable (this=0x7f8be645add8, bindWA=0x7fff19eff2d0,
corrName=..., heap=0x7f8be6595ca0, inTableDesc=0x7f8be645a5f8)
at ../optimizer/NATable.cpp:4531
#8 0x00007f8bfd9586b9 in NATableDB::get (this=0x7f8befc7b8d0, corrName=...,
bindWA=0x7fff19eff2d0, inTableDescStruct=0x0) at ../optimizer/NATable.cpp:6975
#9 0x00007f8bfd6c0aea in BindWA::getNATable (this=0x7fff19eff2d0, corrName=...,
catmanCollectTableUsages=1, inTableDescStruct=0x0) at ../optimizer/BindRelExpr.cpp:1443
#10 0x00007f8c0092e300 in CmpSeabaseDDL::createSeabaseIndex (this=0x7fff19f01880,
createIndexNode=0x7f8be65e4510, currCatName=..., currSchName=...)
at ../sqlcomp/CmpSeabaseDDLindex.cpp:466
#11 0x00007f8c00903b62 in CmpSeabaseDDL::executeSeabaseDDL (this=0x7fff19f01880, ddlExpr=
0x7f8be6596288, ddlNode=0x7f8be65e4510, currCatName=..., currSchName=...)
at ../sqlcomp/CmpSeabaseDDLcommon.cpp:4174
#12 0x00007f8bfca81ce4 in CmpStatement::process (this=0x7f8be65ecc40, statement=...)
at ../arkcmp/CmpStatement.cpp:909
#13 0x00007f8bfca6e4c5 in ExCmpMessage::actOnReceive (this=0x7fff19f02bc0)
at ../arkcmp/CmpConnection.cpp:405
#14 0x00007f8bffe60fa5 in IpcMessageStream::internalActOnReceive (this=0x7fff19f02bc0,
buffer=0x211d0f0, connection=0xf2c940) at ../common/Ipc.cpp:3553
#15 0x00007f8bffe5eecb in IpcMessageBuffer::callReceiveCallback (this=0x211d0f0, conn=0xf2c940)
at ../common/Ipc.cpp:2427
#16 0x00007f8bffe72fb4 in GuaConnectionToClient::acceptBuffer (this=0xf2c940,
buffer=0x211d0f0, receivedDataLength=472) at ../common/IpcGuardian.cpp:2467
#17 0x00007f8bffe749cb in GuaReceiveControlConnection::wait (this=0xf1ab80, timeout=-1,
eventConsumed=0x0, ipcAwaitiox=0x0) at ../common/IpcGuardian.cpp:3164
#18 0x00007f8bffe723d2 in GuaConnectionToClient::wait (this=0xf2c940, timeout=-1,
eventConsumed=0x0, ipcAwaitiox=0x0) at ../common/IpcGuardian.cpp:2136
#19 0x00007f8bffe5d35d in IpcSetOfConnections::waitOnSet (this=0x7fff19f02d60, timeout=-1,
calledByESP=0, timedout=0x0) at ../common/Ipc.cpp:1709
#20 0x00007f8bffe605eb in IpcMessageStream::waitOnMsgStream (this=0x7fff19f02bc0, timeout=-1)
at ../common/Ipc.cpp:3272
#21 0x00007f8bffe60559 in IpcMessageStream::receive (this=0x7fff19f02bc0, waited=1)
at ../common/Ipc.cpp:3254
#22 0x0000000000407b8c in main (argc=2, argv=0x7fff19f03358) at ../bin/arkcmp.cpp:304
Create table with foreign key constraint intermittently produces tdm_arkcmp core.
Script attempts to execute many ddl statement and must be run in its entirety to
reproduce issue. Issue occurs more often via sqlci.
Encountered on traf_20140606_0930, 4-node cluster.
To reproduce, extract contents of attachment:
1. ./cleanup
2. ./repro_it
from log:
>>Create table T5(O int,
+>P smallint,
+>Q largeint,
+>R numeric(9,3)not null not droppable,
+>S decimal(18,9),
+>T char(20),
+>U float(52),
+>V real,
+>W double precision,
+>X timestamp,
+>Y interval year to month ,
+>Z char (12),
+>AA time not null not droppable, primary key(R,AA));
--- SQL operation complete.
>>
>>Create table T6 (O int default null,
+> P smallint default null,
+> Q largeint default null,
+> R numeric(9,3) not null ,
+> S decimal(18,9) default null,
+> T char(20) default null,
+> U float(52) default null,
+> V real default null,
+> W double precision default null,
+> X timestamp default null,
+> Y interval year to month default null ,
+> Z char (12) default null,
+> AA time not null primary key droppable)
+> attribute extent 256;
--- SQL operation complete.
>>
>>Create table T7 (R Numeric(9,3),AA Time, FOREIGN KEY(R,AA) REFERENCES T5
+> );
*** ERROR[1389] Object T5_699928485_4973 does not exist in Trafodion.
*** ERROR[8838] Unable to receive reply from Compiler, possibly caused by internal errors when compiling SQL statements, processing DDL statements, or executing the builtin stored procedures.
*** ERROR[1029] Object TRAFODION. MYSCH.T7_ 898119485_ 4973 could not be created.
*** ERROR[1029] Object TRAFODION.MYSCH.T7 could not be created.
--- SQL operation failed with errors.
From stdout: 94da56, pid=7030, tid=140239092416096 mockbuild_ 2014_04_ 09_11_51- b00) so+0x7b4a56] createConstrain tInfo(desc_ struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraint List&, AbstractRIConst raintList& , AbstractRIConst raintList& , NAMemory*, BindWA*)+0x233 /thaiju/ core or core.7030 7030/hs_ error.log icedtea. classpath. org/bugzilla 456a56, pid=11356, tid=140165368122976 mockbuild_ 2014_04_ 09_11_51- b00) so+0x7b4a56] createConstrain tInfo(desc_ struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraint List&, AbstractRIConst raintList& , AbstractRIConst raintList& , NAMemory*, BindWA*)+0x233 /thaiju/ core or core.11356 11356/hs_ error.log icedtea. classpath. org/bugzilla 9dea56, pid=11458, tid=139783675481696 mockbuild_ 2014_04_ 09_11_51- b00) so+0x7b4a56] createConstrain tInfo(desc_ struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraint List&, AbstractRIConst raintList& , AbstractRIConst raintList& , NAMemory*, BindWA*)+0x233 /thaiju/ core or core.11458 11458/hs_ error.log icedtea. classpath. org/bugzilla 6aba56, pid=11645, tid=140546347589216 mockbuild_ 2014_04_ 09_11_51- b00) so+0x7b4a56] createConstrain tInfo(desc_ struct const*, QualifiedName const&, NAColumnArray const&, CheckConstraint List&, AbstractRIConst raintList& , AbstractRIConst raintList& , NAMemory*, BindWA*)+0x233 /thaiju/ core or core.11645 11645/hs_ error.log icedtea. classpath. org/bugzilla
>>Create table T7 (R Numeric(9,3),AA Time, FOREIGN KEY(R,AA) REFERENCES T5
+> );
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8bfd
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.
#
# Core dump written. Default location: /home/trafodion
#
# An error report file with more information is saved as:
# /tmp/jvm-
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f7ad3
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.
#
# Core dump written. Default location: /home/trafodion
#
# An error report file with more information is saved as:
# /tmp/jvm-
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f21f4
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.
#
# Core dump written. Default location: /home/trafodion
#
# An error report file with more information is saved as:
# /tmp/jvm-
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fd387
#
# JRE version: OpenJDK Runtime Environment (7.0_55-b13) (build 1.7.0_55-
# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [liboptimizer.
#
# Core dump written. Default location: /home/trafodion
#
# An error report file with more information is saved as:
# /tmp/jvm-
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
*** ERROR[1389] Object T5_699928485_4973 does not exist in Trafodion.
*** ERROR[8838] Unable to receive reply from Compiler, possibly caused by internal errors when compiling SQL statements, processing DDL statements, or executing the builtin stored procedures.
*** ERROR[1029] Object TRAFODION. MYSCH.T7_ 898119485_ 4973 could not be created.
*** ERROR[1029] Object TRAFODION.MYSCH.T7 could not be created.
--- SQL operation failed with errors.
Stacktrace from core file: jvm/java/ jre/lib/ amd64/server/ libjvm. so jvm/java/ jre/lib/ amd64/server/ libjvm. so linux_signal () jvm/java/ jre/lib/ amd64/server/ libjvm. so tInfo (table_ desc=0x7f8be645 a5f8, tableQualName=..., =..., checkConstraint s=..., uniqueConstrain ts=..., refConstraints=..., heap= 0x7fff19eff2d0) at ../optimizer/ NATable. cpp:4063 5add8, bindWA= 0x7fff19eff2d0, 5ca0, inTableDesc= 0x7f8be645a5f8) NATable. cpp:4531 7b8d0, corrName=..., 0x7fff19eff2d0, inTableDescStru ct=0x0) at ../optimizer/ NATable. cpp:6975 ff2d0, corrName=..., ctTableUsages= 1, inTableDescStru ct=0x0) at ../optimizer/ BindRelExpr. cpp:1443 :createSeabaseI ndex (this=0x7fff19f 01880, Node=0x7f8be65e 4510, currCatName=..., currSchName=...) CmpSeabaseDDLin dex.cpp: 466 :executeSeabase DDL (this=0x7fff19f 01880, ddlExpr= 0x7f8be65e4510, currCatName=..., currSchName=...) CmpSeabaseDDLco mmon.cpp: 4174 :process (this=0x7f8be65 ecc40, statement=...) CmpStatement. cpp:909 :actOnReceive (this=0x7fff19f 02bc0) CmpConnection. cpp:405 m::internalActO nReceive (this=0x7fff19f 02bc0, 0x211d0f0, connection= 0xf2c940) at ../common/ Ipc.cpp: 3553 r::callReceiveC allback (this=0x211d0f0, conn=0xf2c940) Ipc.cpp: 2427 Client: :acceptBuffer (this=0xf2c940, 0x211d0f0, receivedDataLen gth=472) at ../common/ IpcGuardian. cpp:2467 olConnection: :wait (this=0xf1ab80, timeout=-1, ed=0x0, ipcAwaitiox=0x0) at ../common/ IpcGuardian. cpp:3164 Client: :wait (this=0xf2c940, timeout=-1, ed=0x0, ipcAwaitiox=0x0) at ../common/ IpcGuardian. cpp:2136 ions::waitOnSet (this=0x7fff19f 02d60, timeout=-1, Ipc.cpp: 1709 m::waitOnMsgStr eam (this=0x7fff19f 02bc0, timeout=-1) Ipc.cpp: 3272 m::receive (this=0x7fff19f 02bc0, waited=1) Ipc.cpp: 3254 3358) at ../bin/ arkcmp. cpp:304
#0 0x0000003fc0832925 in raise () from /lib64/libc.so.6
#1 0x0000003fc0834105 in abort () from /lib64/libc.so.6
#2 0x00007f8bf9abe8c5 in ?? () from /usr/lib/
#3 0x00007f8bf9c2c78f in ?? () from /usr/lib/
#4 0x00007f8bf9ac3a92 in JVM_handle_
from /usr/lib/
#5 <signal handler called>
#6 0x00007f8bfd94da56 in createConstrain
columnArray
0x7f8be6595ca0, bindWA=
#7 0x00007f8bfd94f8b9 in NATable::NATable (this=0x7f8be64
corrName=..., heap=0x7f8be659
at ../optimizer/
#8 0x00007f8bfd9586b9 in NATableDB::get (this=0x7f8befc
bindWA=
#9 0x00007f8bfd6c0aea in BindWA::getNATable (this=0x7fff19e
catmanColle
#10 0x00007f8c0092e300 in CmpSeabaseDDL:
createIndex
at ../sqlcomp/
#11 0x00007f8c00903b62 in CmpSeabaseDDL:
0x7f8be6596288, ddlNode=
at ../sqlcomp/
#12 0x00007f8bfca81ce4 in CmpStatement:
at ../arkcmp/
#13 0x00007f8bfca6e4c5 in ExCmpMessage:
at ../arkcmp/
#14 0x00007f8bffe60fa5 in IpcMessageStrea
buffer=
#15 0x00007f8bffe5eecb in IpcMessageBuffe
at ../common/
#16 0x00007f8bffe72fb4 in GuaConnectionTo
buffer=
#17 0x00007f8bffe749cb in GuaReceiveContr
eventConsum
#18 0x00007f8bffe723d2 in GuaConnectionTo
eventConsum
#19 0x00007f8bffe5d35d in IpcSetOfConnect
calledByESP=0, timedout=0x0) at ../common/
#20 0x00007f8bffe605eb in IpcMessageStrea
at ../common/
#21 0x00007f8bffe60559 in IpcMessageStrea
at ../common/
#22 0x0000000000407b8c in main (argc=2, argv=0x7fff19f0