Changes between Initial Version and Version 2 of Ticket #1704


Ignore:
Timestamp:
Jun 28, 2018, 12:42:16 PM (6 years ago)
Author:
Dimitar Misev
Comment:

The issue is logged but no exception seems to be throws and there's a segfault later on. It should throw an error.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1704

    • Property Owner changed from bbell to dkamov
    • Property Status newassigned
    • Property Component serverqlparser
    • Property Milestone 9.59.7
  • Ticket #1704 – Description

    initial v2  
    1 create a 1D collection with sdom([0:100]) from this file: systemtest/testcases_mandatory/test_select/testdata/101.bin
     1create a 1D collection with sdom([0:100]):
     2{{{
     3rasql -q 'create collection test1 GreySet1' --user rasadmin --passwd rasadmin
     4rasql -q 'insert into test1 values $1' --mddtype GreyString --mdddomain [0:100] -f systemtest/testcases_mandatory/test_select/testdata/101.bin --user rasadmin --passwd rasadmin
     5}}}
     6running this query
     7{{{
     8rasql -q 'select condense min over i in [10:11] using c[0,i[0]] from test1 as c'
     9}}}
    210
    3 then run this query
     11will result in an error in the rasserver logs:
    412
    513
    6 {{{
    7 select condense min over i in [100:110] using {c[100,i[0]], c[i[0],100]} from test1 as c
     14{{{ [INFO] - 2018-06-28 14:40:23,122: Request: 'select condense min over i in [10:11] using c[0,i[0]] from test1 as c'... parsing... checking semantics... evaluating...
     15[FATAL] - 2018-06-28 14:40:23,123, /home/dimitar/rasdaman/community/src/qlparser/qtdomainoperation.cc:409: Error: QtDomainOperation::evaluate() - The dimension of the subset domain is not equal to the dimension of the subsetted marray. The subset domain dimension is: 2 while the marray domain dimension is: 1
     16 [INFO] - 2018-06-28 14:40:23,131: Segmentation fault caught, stacktrace:
     17 [INFO] - 2018-06-28 14:40:23,181: [bt]: (1) /lib/x86_64-linux-gnu/libc.so.6 (??:0) - +0x9ffcf [0x7f901456efcf]
     18 [INFO] - 2018-06-28 14:40:23,193: [bt]: (2) /home/dimitar/rasdaman/community/src-install/bin/rasserver (??:0) - QtCondenseOp::evaluateScalarOp(std::vector<QtData*, std::allocator<QtData*> >*, BaseType const*, BinaryOp*, r_Minterval)+0xe7 [0x5557c45d63a5]
     19 [INFO] - 2018-06-28 14:40:23,242: [bt]: (3) /home/dimitar/rasdaman/community/src-install/bin/rasserver (??:0) - QtCondenseOp::evaluate(std::vector<QtData*, std::allocator<QtData*> >*)+0x2ce [0x5557c45d6150]
     20 [INFO] - 2018-06-28 14:40:23,252: [bt]: (4) /home/dimitar/rasdaman/community/src-install/bin/rasserver (??:0) - QtOperationIterator::next()+0x189 [0x5557c460f055]
     21 [INFO] - 2018-06-28 14:40:23,300: [bt]: (5) /home/dimitar/rasdaman/community/src-install/bin/rasserver (??:0) - QueryTree::evaluateRetrieval()+0x239 [0x5557c463dddf]
     22...
    823}}}
    9 
    10 and get error
    11 
    12 
    13 {{{
    14 [FATAL] - 13/03/2018 14:09:46.22648, /home/rasdaman/rasdaman_community/rasdaman/qlparser/qtdomainoperation.cc:409: Error: QtDomainOperation::evaluate() - The dimension of the subset domain is not equal to the dimension of the subsetted marray. The subset domain dimension is: 2 while the marray domain dimension is: 1
    15  [INFO] - 13/03/2018 14:09:46.24312: Segmentation fault caught, stacktrace:
    16  [INFO] - 13/03/2018 14:09:46.27736: [bt]: (1) /lib64/libc.so.6 (??:0) - +0x14d710 [0x7f5ea396b710]
    17  [INFO] - 13/03/2018 14:09:46.30612: [bt]: (2) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtCondenseOp::evaluateScalarOp(std::vector<QtData*, std::allocator<QtData*> >*, BaseType const*, BinaryOp*, r_Minterval)+0xeb [0x88f2d3]
    18  [INFO] - 13/03/2018 14:09:46.34463: [bt]: (3) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtCondenseOp::evaluate(std::vector<QtData*, std::allocator<QtData*> >*)+0x25b [0x88f0a3]
    19  [INFO] - 13/03/2018 14:09:46.37186: [bt]: (4) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtOperationIterator::next()+0x177 [0x8ba7e7]
    20  [INFO] - 13/03/2018 14:09:46.39885: [bt]: (5) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QueryTree::evaluateRetrieval()+0x67b [0x8de669]
    21  [INFO] - 13/03/2018 14:09:46.49801: [bt]: (6) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtcondenseop.cc:369) - ServerComm::executeQuery(unsigned long, char const*, ExecuteQueryRes&)+0x5de [0x7f6192]
    22  [INFO] - 13/03/2018 14:09:46.52477: [bt]: (7) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - RasServerEntry::compat_executeQueryRpc(char const*, ExecuteQueryRes&)+0x54 [0x767fa8]
    23  [INFO] - 13/03/2018 14:09:46.62412: [bt]: (8) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtcondenseop.cc:311 (discriminator 1)) - RasnetServerComm::ExecuteQuery(grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)+0xac [0xa971d4]
    24  [INFO] - 13/03/2018 14:09:46.65061: [bt]: (9) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - std::_Function_handler<grpc::Status (rasnet::service::ClientRassrvrService::Service*, grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*), std::_Mem_fn<grpc::Status (rasnet::service::ClientRassrvrService::Service::*)(grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)> >::_M_invoke(std::_Any_data const&, rasnet::service::ClientRassrvrService::Service*, grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)+0x2e [0xabbcae]
    25  [INFO] - 13/03/2018 14:09:46.75576: [bt]: (10) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtoperationiterator.cc:253 (discriminator 1)) - grpc::RpcMethodHandler<rasnet::service::ClientRassrvrService::Service, rasnet::service::ExecuteQueryReq, rasnet::service::ExecuteQueryRepl>::RunHandler(grpc::MethodHandler::HandlerParameter const&)+0x61a [0xaea1ba]
    26  [INFO] - 13/03/2018 14:09:46.78292: [bt]: (11) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - grpc::Server::SyncRequestThreadManager::DoWork(void*, bool)+0x169 [0xb3f6b9]
    27  [INFO] - 13/03/2018 14:09:46.89658: [bt]: (12) /home/rasdaman/rasdaman_community/install/bin/rasserver (querytree.cc:174 (discriminator 1)) - grpc::ThreadManager::MainWorkLoop()+0xeb [0xb4181b]
    28  [INFO] - 13/03/2018 14:09:46.92091: [bt]: (13) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - grpc::ThreadManager::WorkerThread::Run()+0xc [0xb4188c]
    29  [INFO] - 13/03/2018 14:09:46.100025: [bt]: (14) /lib64/libstdc++.so.6 (servercomm2.cc:1692 (discriminator 1)) - +0xb52b0 [0x7f5ea41ae2b0]
    30  [INFO] - 13/03/2018 14:09:46.102390: [bt]: (15) /lib64/libpthread.so.0 (??:0) - +0x7e25 [0x7f5ea4c3de25]
    31  [INFO] - 13/03/2018 14:09:46.109323: [bt]: (16) /lib64/libc.so.6 (rasserver_entry.cc:285) - clone+0x6d [0x7f5ea391634d]
    32  [INFO] - 13/03/2018 14:09:46.109343: rasserver terminated.
    33 }}}
    34 
     24Where the error is logged at qlparser/qtdomainoperation.cc:409, an exception should be thrown.