CMP: create index stmt sometimes generates core
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
New
|
Medium
|
QF Chen |
Bug Description
Trying create an index from sqlci session sometimes results in core though the index gets created. To reproduce this problem try creating as many indices as possible from same sqlci session.
nravishag4t2966$ sqlci
Trafodion Conversational Interface 1.1.0
(c) Copyright 2014 Hewlett-Packard Development Company, LP.
>>set schema trafodion.
--- SQL operation complete.
>>CREATE INDEX CUSTOMER_DID ON CUSTOMER
(
C_D_ID ASC
)
;+>+>+>+>+>
--- SQL operation complete.
>>CREATE INDEX CUSTOMER_ID ON CUSTOMER
(
C_ID ASC
)
;+>+>+>+>+>
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ffff5
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libustat.
#
nravishag4t2966$ ls
core.g4t2966.
The core file indicates, arkcmp crashes in
nravishag4t2966$ mygdb tdm_arkcmp core.g4t2966.
Core was generated by `tdm_arkcmp SQMON1.1 00000 00000 008025 $Z0006JA 16.235.163.24:33326 00004 00000'.
Program terminated with signal 6, Aborted.
#0 0x0000003980a328a5 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0000003980a328a5 in raise () from /lib64/libc.so.6
#1 0x0000003980a3400d in abort () from /lib64/libc.so.6
#2 0x00007ffff0d78a55 in os::abort(bool) ()
from /opt/home/
#3 0x00007ffff0ef8f87 in VMError:
from /opt/home/
#4 0x00007ffff0d7d96f in JVM_handle_
from /opt/home/
#5 <signal handler called>
#6 0x00007ffff5c78058 in NormValue::copy (this=0x7fffdbb
at ../optimizer/
#7 0x00007ffff5c780b7 in NormValue:
at ../optimizer/
#8 0x00007ffff5c7857e in EncodedValue:
at ../optimizer/
#9 0x00007ffff4b47bf9 in NACollection<
other=...) at ../common/
#10 0x00007ffff4b46c56 in NAList<
other=...) at ../common/
#11 0x00007ffff4b4685f in MCboundaryValue
at ../optimizer/
#12 0x00007ffff4b1c3fe in HistInt::copy (this=0x7fffdbb
at ../optimizer/
#13 0x00007ffff5c7848f in HistInt::operator= (this=0x7fffdbb
at ../optimizer/
#14 0x00007ffff46d62bd in NACollection<
at ../common/
#15 0x00007ffff46cf77d in NACollection<
#16 0x00007ffff46ca547 in NAList<
heap=
#17 0x00007ffff46c7854 in Histogram:
h=0x7fffdca
#18 0x00007ffff4b2801d in ColStats:
at ../optimizer/
#19 0x00007ffff48bf07b in NATable:
at ../optimizer/
#20 0x00007ffff4b6da18 in TableDesc:
at ../optimizer/
#21 0x00007ffff7ac8e2a in TableDesc:
at ../optimizer/
#22 0x00007ffff49a1afa in Scan::synthLogProp (this=0x7fffdca
normWAPtr=
#23 0x00007ffff498f8b9 in RelExpr:
normWAPtr=
#24 0x00007ffff49a355b in GenericUpdate:
normWAPtr=
#25 0x00007ffff498f8b9 in RelExpr:
normWAPtr=
#26 0x00007ffff499fc05 in RelRoot:
normWAPtr=
#27 0x00007ffff491a09a in RelRoot:
at ../optimizer/
#28 0x00007ffff79b002b in CmpMain::compile (this=0x7ffffff
input_
#29 0x00007ffff79ae389 in CmpMain::sqlcomp (this=0x7ffffff
input_
gen_
phase=
cacheable=
at ../sqlcomp/
For another create stmt, I got the following error:
>>CREATE INDEX DISTRICT_
(
D_STATE ASC
,D_CITY ASC
,D_ZIP ASC
)
;+>+>+>+>+>+>
*** ERROR[2235] Compiler Internal Error: referencing an unused element of a collection, originated from file ../common/
*** ERROR[8822] The statement was not prepared.
--- SQL operation failed with errors.
Breakpoint 1, NACollection<
at ../common/
409 ABORT("referencing an unused element of a collection");
(gdb) bt
#0 NACollection<
#1 0x00007ffff4741870 in NAArray<
at ../common/
#2 0x00007ffff47417e4 in NAArray<
at ../common/
#3 0x00007ffff473ee10 in NormValueList:
at ../optimizer/
#4 0x00007ffff473eebb in EncodedValue:
at ../optimizer/
#5 0x00007ffff48cc39f in EncodedValue:
at ../optimizer/
#6 0x00007ffff48bf45f in NATable:
at ../optimizer/
#7 0x00007ffff4b6da18 in TableDesc:
at ../optimizer/
#8 0x00007ffff7ac8e2a in TableDesc:
at ../optimizer/
#9 0x00007ffff49a1afa in Scan::synthLogProp (this=0x7fffdc9
at ../optimizer/
#10 0x00007ffff498f8b9 in RelExpr:
at ../optimizer/
#11 0x00007ffff49a355b in GenericUpdate:
normWAPtr=
#12 0x00007ffff498f8b9 in RelExpr:
at ../optimizer/
#13 0x00007ffff499fc05 in RelRoot:
at ../optimizer/
#14 0x00007ffff491a09a in RelRoot:
at ../optimizer/
#15 0x00007ffff79b002b in CmpMain::compile (this=0x7ffffff
input_
gen_
phase=
cacheable=
Changed in trafodion: | |
milestone: | r1.0.1 → r1.1 |
Changed in trafodion: | |
milestone: | r1.1 → r2.0 |
assignee: | nobody → QF Chen (qifan-chen) |