Opened 7 years ago

Closed 6 years ago

#1688 closed defect (fixed)

Segfault with multiple 2 MDD domains on 3 bands collections

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: Future
Component: rasql Version: development
Keywords: Cc: bbell
Complexity: Medium

Description

On 1 band collections, no problem

rasql -q ' SELECT encode((octet) clouds[-1,0:210] *  ( mask[-1,0:210] = 0 ) , "text/csv" ) FROM test_mr AS clouds,test_mr AS mask' 

On 3 band collections

rasql -q ' SELECT encode((octet) clouds[-1,0:210] *  ( mask[-1,0:210] = 0 ) , "text/csv" ) FROM test_rgb AS clouds,test_rgb AS mask' 
 [INFO] - 18/01/2018 14:00:19.158314: Request: ' SELECT encode((octet) clouds[-1,0:210] *  ( mask[-1,0:210] = 0 ) , "text/csv" ) FROM test_rgb AS clouds,test_rgb AS mask'...
 [INFO] - 18/01/2018 14:00:19.158329: parsing...
 [INFO] - 18/01/2018 14:00:19.158437: checking semantics...
 [INFO] - 18/01/2018 14:00:19.158523: evaluating...
[FATAL] - 18/01/2018 14:00:19.158607, sinterval.cc:841: r_Sinterval::calc_intersection(-1:-1, 0:399) not an interval
 [WARN] - 18/01/2018 14:00:19.158621, qtvariable.cc:282: Warning: specified domain [-1:-1,0:210] does not intersect with spatial domain of MDD, returning empty result.
[FATAL] - 18/01/2018 14:00:19.158661, sinterval.cc:841: r_Sinterval::calc_intersection(-1:-1, 0:399) not an interval
 [WARN] - 18/01/2018 14:00:19.158672, qtvariable.cc:282: Warning: specified domain [-1:-1,0:210] does not intersect with spatial domain of MDD, returning empty result.
 [INFO] - 18/01/2018 14:00:19.161806: Segmentation fault caught, stacktrace:
 [INFO] - 18/01/2018 14:00:19.166059: [bt]: (1) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - NullValuesHandler::setNullValues(r_Minterval*)+0x11b [0xa2dfcf]
 [INFO] - 18/01/2018 14:00:19.169060: [bt]: (2) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtBinaryInduce::computeUnaryMDDOp(QtMDD*, QtScalarData*, BaseType const*, int)+0x1fd [0x8db617]
 [INFO] - 18/01/2018 14:00:19.172033: [bt]: (3) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtBinaryInduce::computeOp(QtData*, QtData*)+0x20d [0x8db123]
 [INFO] - 18/01/2018 14:00:19.189297: [bt]: (4) /home/rasdaman/rasdaman_community/install/bin/rasserver (nullvalues.cc:68) - QtBinaryInduce::evaluate(std::vector<QtData*, std::allocator<QtData*> >*)+0x6e [0x8dcf62]
 [INFO] - 18/01/2018 14:00:19.192260: [bt]: (5) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtBinaryOperation::getOperands(std::vector<QtData*, std::allocator<QtData*> >*, QtData*&, QtData*&)+0x8a [0x96b768]
 [INFO] - 18/01/2018 14:00:19.206405: [bt]: (6) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtbinaryinduce.cc:179) - QtBinaryInduce::evaluate(std::vector<QtData*, std::allocator<QtData*> >*)+0x53 [0x8dcf47]
 [INFO] - 18/01/2018 14:00:19.209330: [bt]: (7) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QtConversion::evaluate(std::vector<QtData*, std::allocator<QtData*> >*)+0x1a1 [0x925cb7]
 [INFO] - 18/01/2018 14:00:19.223711: [bt]: (8) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtbinaryinduce.cc:100) - QtOperationIterator::next()+0x177 [0x8d805d]
 [INFO] - 18/01/2018 14:00:19.226514: [bt]: (9) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - QueryTree::evaluateRetrieval()+0x67b [0x94ed9d]
 [INFO] - 18/01/2018 14:00:19.239544: [bt]: (10) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtbinaryinduce.cc:465) - ServerComm::executeQuery(unsigned long, char const*, ExecuteQueryRes&)+0x5de [0x87237c]
 [INFO] - 18/01/2018 14:00:19.242118: [bt]: (11) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - RasServerEntry::compat_executeQueryRpc(char const*, ExecuteQueryRes&)+0x54 [0x85f3ca]
 [INFO] - 18/01/2018 14:00:19.255759: [bt]: (12) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtbinaryoperation.cc:228) - RasnetServerComm::ExecuteQuery(grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)+0xac [0xae353c]
 [INFO] - 18/01/2018 14:00:19.258336: [bt]: (13) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - grpc::Status std::_Mem_fn<grpc::Status (rasnet::service::ClientRassrvrService::Service::*)(grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)>::operator()<grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*, void>(rasnet::service::ClientRassrvrService::Service*, grpc::ServerContext*&&, rasnet::service::ExecuteQueryReq const*&&, rasnet::service::ExecuteQueryRepl*&&) const+0xb2 [0xb17686]
 [INFO] - 18/01/2018 14:00:19.270688: [bt]: (14) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtbinaryinduce.cc:463) - 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*)+0x8a [0xb0e1e4]
 [INFO] - 18/01/2018 14:00:19.273351: [bt]: (15) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - std::function<grpc::Status (rasnet::service::ClientRassrvrService::Service*, grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*)>::operator()(rasnet::service::ClientRassrvrService::Service*, grpc::ServerContext*, rasnet::service::ExecuteQueryReq const*, rasnet::service::ExecuteQueryRepl*) const+0x96 [0xb3d15e]
 [INFO] - 18/01/2018 14:00:19.286407: [bt]: (16) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtconversion.cc:191) - grpc::RpcMethodHandler<rasnet::service::ClientRassrvrService::Service, rasnet::service::ExecuteQueryReq, rasnet::service::ExecuteQueryRepl>::RunHandler(grpc::MethodHandler::HandlerParameter const&)+0xc5 [0xb295c9]
 [INFO] - 18/01/2018 14:00:19.288977: [bt]: (17) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - grpc::Server::SyncRequestThreadManager::DoWork(void*, bool)+0x169 [0xbd5339]
 [INFO] - 18/01/2018 14:00:19.301178: [bt]: (18) /home/rasdaman/rasdaman_community/install/bin/rasserver (qtoperationiterator.cc:253 (discriminator 1)) - grpc::ThreadManager::MainWorkLoop()+0xeb [0xbd739b]
 [INFO] - 18/01/2018 14:00:19.303598: [bt]: (19) /home/rasdaman/rasdaman_community/install/bin/rasserver (??:0) - grpc::ThreadManager::WorkerThread::Run()+0xc [0xbd740c]
 [INFO] - 18/01/2018 14:00:19.317221: [bt]: (20) /lib64/libstdc++.so.6 (querytree.cc:174 (discriminator 1)) - +0xb52b0 [0x7ff0094302b0]
 [INFO] - 18/01/2018 14:00:19.319778: [bt]: (21) /lib64/libpthread.so.0 (??:0) - +0x7e25 [0x7ff00eaf0e25]
 [INFO] - 18/01/2018 14:00:19.332195: [bt]: (22) /lib64/libc.so.6 (servercomm2.cc:1692 (discriminator 1)) - clone+0x6d [0x7ff008b9834d]
 [INFO] - 18/01/2018 14:00:19.332217: rasserver terminated.

Change History (3)

comment:1 by Vlad Merticariu, 7 years ago

Milestone: 9.5Future

comment:2 by Dimitar Misev, 6 years ago

Patch submitted, plus a bit better query:

rasql -q 'SELECT encode((octet) clouds[0,0:210] *  ( mask[0,0:210] != 0 ) , "csv" ) FROM test_rgb2 AS clouds,test_rgb2 AS mask' --out string

comment:3 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.