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:18:00 UTC

[jira] [Created] (TRAFODION-739) LP Bug: 1389784 - sort crashes when no space for scratch area

Alice Chen created TRAFODION-739:
------------------------------------

             Summary: LP Bug: 1389784 - sort crashes when no space for scratch area
                 Key: TRAFODION-739
                 URL: https://issues.apache.org/jira/browse/TRAFODION-739
             Project: Apache Trafodion
          Issue Type: Bug
          Components: sql-exe
            Reporter: Apache Trafodion
            Assignee: Prashanth Vasudev
            Priority: Critical
             Fix For: 1.1 (pre-incubation)


We saw this issue few times now especialy when running bulk loader. When there is not enough  scatch space sort crashes.
we probably need to give an error messge instead.

#0  0x00000030b9889abb in memcpy () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-13.el6_3.1.x86_64 glibc-2.12-1.132.el6_5.3.x86_64 hadoop-libhdfs-2.4.0.2.1.5.0-695.el6.x86_64 jdk-1.7.0_67-fcs.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.9-33.el6_3.3.x86_64 libcom_err-1.41.12-12.el6.x86_64 libgcc-4.4.7-4.el6.x86_64 libselinux-2.0.94-5.3.el6.x86_64 libstdc++-4.4.6-4.el6.x86_64 nspr-4.10.6-1.el6_5.x86_64 nss-3.16.1-4.el6_5.x86_64 nss-softokn-freebl-3.14.3-10.el6_5.x86_64 nss-util-3.16.1-1.el6_5.x86_64 openldap-2.4.23-26.el6_3.2.x86_64 openssl-1.0.1e-16.el6_5.15.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  0x00000030b9889abb in memcpy () from /lib64/libc.so.6
#1  0x00007ff3b3b59177 in SQScratchFile::redriveVectorIO (this=0x7ff3a5a7f398, index=0) at ../sort/scratchfile_sq.cpp:754
#2  0x00007ff3b3b5924e in SQScratchFile::executeVectorIO (this=0x7ff3a5a7f398) at ../sort/scratchfile_sq.cpp:678
#3  0x00007ff3b3b5ced5 in ScratchSpace::writeFile (this=0x7ff3a5a5d120, block=0x7ff39502e200 "\017\t", blockNum=2319, blockLen=524288)
    at ../sort/ScratchSpace.cpp:707
#4  0x00007ff3b3b5d131 in SortScratchSpace::flushRun (this=0x7ff3a5a5d120, endrun=0, waited=0) at ../sort/ScratchSpace.cpp:1470
#5  0x00007ff3b3b5d265 in SortScratchSpace::writeRunData (this=0x7ff3a5a5d120, data=0x7ff39a7c99a8 "\270", reclen=184, run=<value optimized out>, 
    waited=0) at ../sort/ScratchSpace.cpp:1410
#6  0x00007ff3b3b58250 in Record::putToScr (this=0x7ff3a14e18e0, run=<value optimized out>, reclen=<value optimized out>, 
    scratch=<value optimized out>, waited=<value optimized out>) at ../sort/Record.cpp:151
#7  0x00007ff3b3b5766c in Qsort::generateARun (this=0x7ff3a5a5d090) at ../sort/Qsort.cpp:367
#8  0x00007ff3b3b579e6 in Qsort::sortSend (this=0x7ff3a5a5d090, rec=<value optimized out>, len=184, tupp=<value optimized out>)
    at ../sort/Qsort.cpp:295
#9  0x00007ff3b5a794cc in ExSortTcb::sortSend (this=0x7ff3a9019048, srcEntry=<value optimized out>, srcStatus=<value optimized out>, 
    pentry_down=0x7ff3a9019358, upEntry=<value optimized out>, sortFromTop=0, step=@0x7ff3a9019414, matchCount=@0x7ff3a9019418, 
    allocatedTuppDesc=@0x7ff3a9019420, noOverflow=@0x7ff3a9019428, workRC=@0x7fff61726aae) at ../executor/ex_sort.cpp:1222
#10 0x00007ff3b5a7b009 in ExSortTcb::workUp (this=0x7ff3a9019048) at ../executor/ex_sort.cpp:665
#11 0x00007ff3b5af8eb3 in ExScheduler::work (this=0x7ff3a8fd4f68, prevWaitTime=<value optimized out>) at ../executor/ExScheduler.cpp:328
#12 0x00007ff3b5a306b2 in ExEspFragInstanceDir::work (this=0x7fff61727090, prevWaitTime=1551921) at ../executor/ex_esp_frag_dir.cpp:757
#13 0x0000000000405cff in runESP (argc=3, argv=0x7fff617274a8, guaReceiveFastStart=0x0) at ../bin/ex_esp_main.cpp:389
#14 0x0000000000406103 in main (argc=3, argv=0x7fff617274a8) at ../bin/ex_esp_main.cpp:244



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)