-
Notifications
You must be signed in to change notification settings - Fork 8.3k
SELECT geoDistance(0., 0., -inf, 1.) never returns #12117
Copy link
Copy link
Closed
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzersProblem found by one of the fuzzers
Description
Query execution time limit is ignored as well (as expected, this is an infinite loop).
$ gdb --ex "run -q 'SELECT geoDistance(0., 0., -inf, 1.)'" build-clang10/programs/clickhouse-local
^C
Thread 1 "clickhouse-loca" received signal SIGINT, Interrupt.
DB::(anonymous namespace)::geodistDegDiff (f=inf) at /home/akuzm/ch3/ch/src/Functions/greatCircleDistance.cpp:105
105 while (f > 360)
(gdb) whe 20
#0 DB::(anonymous namespace)::geodistDegDiff (f=inf) at /home/akuzm/ch3/ch/src/Functions/greatCircleDistance.cpp:105
#1 0x00007fffeeaf7a22 in DB::TargetSpecific::Default::(anonymous namespace)::distance<(DB::(anonymous namespace)::Method)2> (lon1deg=0, lat1deg=0, lon2deg=-inf, lat2deg=1) at /home/akuzm/ch3/ch/src/Functions/greatCircleDistance.cpp:160
#2 0x00007fffeeaf78f6 in DB::TargetSpecific::Default::FunctionGeoDistance<(DB::(anonymous namespace)::Method)2>::executeImpl (this=0x7fffc8601558, block=..., arguments=..., result=4, input_rows_count=1) at /home/akuzm/ch3/ch/src/Functions/greatCircleDistance.cpp:160
#3 0x00007fffedf7ba70 in DB::ImplementationSelector<DB::IFunction>::selectAndExecute (this=0x7fffcfcc69b0, block=..., arguments=..., result=4, input_rows_count=1) at /home/akuzm/ch3/ch/src/Functions/PerformanceAdaptors.h:220
#4 0x00007fffeeaf71fe in DB::FunctionGeoDistance<(DB::(anonymous namespace)::Method)2>::executeImpl (this=0x7fffcfcc69a0, block=..., arguments=..., result=4, input_rows_count=1) at /home/akuzm/ch3/ch/src/Functions/greatCircleDistance.cpp:303
#5 0x00007fffedaf66c1 in DB::IFunction::executeImplDryRun (this=0x7fffcfcc69a0, block=..., arguments=..., result=4, input_rows_count=1) at /home/akuzm/ch3/ch/src/Functions/IFunctionImpl.h:207
#6 0x00007fffedaf5bcf in DB::DefaultExecutable::executeDryRun (this=0x7fffc86016e0, block=..., arguments=..., result=4, input_rows_count=1) at /home/akuzm/ch3/ch/src/Functions/IFunctionAdaptors.h:156
#7 0x00007fffee320133 in DB::ExecutableFunctionAdaptor::executeWithoutLowCardinalityColumns (this=0x7fffcfc6aad8, block=..., args=..., result=4, input_rows_count=1, dry_run=true) at /home/akuzm/ch3/ch/src/Functions/IFunction.cpp:323
#8 0x00007fffee31fd0e in DB::ExecutableFunctionAdaptor::defaultImplementationForConstantArguments (this=0x7fffcfc6aad8, block=..., args=..., result=4, input_rows_count=1, dry_run=true) at /home/akuzm/ch3/ch/src/Functions/IFunction.cpp:266
#9 0x00007fffee3200b0 in DB::ExecutableFunctionAdaptor::executeWithoutLowCardinalityColumns (this=0x7fffcfc6aad8, block=..., args=..., result=4, input_rows_count=1, dry_run=true) at /home/akuzm/ch3/ch/src/Functions/IFunction.cpp:316
#10 0x00007fffee32123d in DB::ExecutableFunctionAdaptor::execute (this=0x7fffcfc6aad8, block=..., arguments=..., result=4, input_rows_count=1, dry_run=true) at /home/akuzm/ch3/ch/src/Functions/IFunction.cpp:486
#11 0x00007fffe7ad0d06 in DB::ExpressionAction::prepare (this=0x7fffffff1758, sample_block=..., settings=..., names_not_for_constant_folding=...) at /home/akuzm/ch3/ch/src/Interpreters/ExpressionActions.cpp:206
#12 0x00007fffe7ad4587 in DB::ExpressionActions::addImpl (this=0x7fffcfdc2c18, action=..., new_names=...) at /home/akuzm/ch3/ch/src/Interpreters/ExpressionActions.cpp:625
#13 0x00007fffe7ad3eb3 in DB::ExpressionActions::add (this=0x7fffcfdc2c18, action=..., out_new_columns=...) at /home/akuzm/ch3/ch/src/Interpreters/ExpressionActions.cpp:586
#14 0x00007fffe7733ec2 in DB::ScopeStack::addAction (this=0x7fffffff2eb0, action=...) at /home/akuzm/ch3/ch/src/Interpreters/ActionsVisitor.cpp:253
#15 0x00007fffe773e0e6 in DB::ActionsMatcher::Data::addAction (this=0x7fffffff2e60, action=...) at /home/akuzm/ch3/ch/src/Interpreters/ActionsVisitor.h:116
#16 0x00007fffe77372e8 in DB::ActionsMatcher::visit (node=..., ast=..., data=...) at /home/akuzm/ch3/ch/src/Interpreters/ActionsVisitor.cpp:593
#17 0x00007fffe77342c7 in DB::ActionsMatcher::visit (ast=..., data=...) at /home/akuzm/ch3/ch/src/Interpreters/ActionsVisitor.cpp:310
#18 0x00007fffe7af3bbd in DB::InDepthNodeVisitor<DB::ActionsMatcher, true, std::__1::shared_ptr<DB::IAST> const>::visit (this=0x7fffffff2e18, ast=...) at /home/akuzm/ch3/ch/src/Interpreters/InDepthNodeVisitor.h:32
#19 0x00007fffe7b01216 in DB::InDepthNodeVisitor<DB::ActionsMatcher, true, std::__1::shared_ptr<DB::IAST> const>::visitChildren (this=0x7fffffff2e18, ast=...) at /home/akuzm/ch3/ch/src/Interpreters/InDepthNodeVisitor.h:47
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugConfirmed user-visible misbehaviour in official releaseConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzersProblem found by one of the fuzzers