Skip to content

Instantly share code, notes, and snippets.

@darrenfu
Created December 19, 2022 18:38
Show Gist options
  • Save darrenfu/7bfb03c4c106814133e3d93fef84a311 to your computer and use it in GitHub Desktop.
Save darrenfu/7bfb03c4c106814133e3d93fef84a311 to your computer and use it in GitHub Desktop.
map_from_entries fuzzer ci failure
E1217 05:54:52.563339 130454 Exceptions.h:68] Line: ../../velox/functions/prestosql/MapFromEntries.cpp:98, Function:operator(), Expression: !rowKeyVector->isNullAt(decodedRow.index(offset + i)) map key cannot be null, Source: USER, ErrorCode: INVALID_ARGUMENT
I1217 05:54:52.563899 130454 ExpressionVerifier.cpp:133] Modified inputs for common eval path:
I1217 05:54:52.563910 130454 ExpressionVerifier.cpp:32] 4 vectors as input:
I1217 05:54:52.563915 130454 ExpressionVerifier.cpp:34] [LAZY MAP<BIGINT,REAL>: 100 elements, no nulls]
I1217 05:54:52.563923 130454 ExpressionVerifier.cpp:34] [ARRAY ARRAY<BOOLEAN>: 100 elements, no nulls]
I1217 05:54:52.563930 130454 ExpressionVerifier.cpp:34] [ARRAY ARRAY<TIMESTAMP>: 100 elements, no nulls]
I1217 05:54:52.563936 130454 ExpressionVerifier.cpp:34] [LAZY BIGINT: 100 elements, no nulls]
E1217 05:54:52.564173 130454 Exceptions.h:68] Line: ../../velox/functions/prestosql/MapFromEntries.cpp:98, Function:operator(), Expression: !rowKeyVector->isNullAt(decodedRow.index(offset + i)) map key cannot be null, Source: USER, ErrorCode: INVALID_ARGUMENT
E1217 05:54:52.566380 130454 FuzzerToolkit.cpp:131] Only one path threw exception:
I1217 05:54:52.567020 130454 ExpressionVerifier.cpp:295] Persisted input: --fuzzer_repro_path /tmp/fuzzer_repro/velox_expressionVerifier_Jok5k9 --input_path /tmp/fuzzer_repro/velox_expressionVerifier_Jok5k9/input_vector --sql_path /tmp/fuzzer_repro/velox_expressionVerifier_Jok5k9/sql --lazy_column_list_path /tmp/fuzzer_repro/velox_expressionVerifier_Jok5k9/indices_of_lazy_columns --complex_constant_path /tmp/fuzzer_repro/velox_expressionVerifier_Jok5k9/complex_constants
terminate called after throwing an instance of 'facebook::velox::VeloxUserError'
what(): Exception: VeloxUserError
Error Source: USER
Error Code: INVALID_ARGUMENT
Reason: map key cannot be null
Retriable: False
Expression: !rowKeyVector->isNullAt(decodedRow.index(offset + i))
Context: map_from_entries(1 elements starting at 520 {[520->185] {[185->106] 14, 1538839465 18:52:59.402}}:ARRAY<ROW<"":TINYINT,"":INTERVAL DAY TO SECOND>>)
Top-Level Context: array_position(map_values(map_from_entries(1 elements starting at 520 {[520->185] {[185->106] 14, 1538839465 18:52:59.402}}:ARRAY<ROW<"":TINYINT,"":INTERVAL DAY TO SECOND>>)), subscript(null:MAP<REAL,INTERVAL DAY TO SECOND>, subscript(c0, array_position(c1, arrays_overlap(null:ARRAY<TIMESTAMP>, c2), c3))))
Function: operator()
File: ../../velox/functions/prestosql/MapFromEntries.cpp
Line: 98
Stack trace:
Stack trace has been disabled.Use --velox_exception_user_stacktrace=true to enable it.
*** Aborted at 1671256492 (Unix time, try 'date -d @1671256492') ***
*** Signal 6 (SIGABRT) (0x1fd96) received by PID 130454 (pthread TID 0x7f70a4be3300) (linux TID 130454) (maybe from PID 130454, UID 0) (code: -6), stack trace: ***
(error retrieving stack trace)
/bin/bash: line 13: 130454 Aborted (core dumped) _build/debug/velox/expression/tests/velox_expression_fuzzer_test --seed 123456 --enable_variadic_signatures --velox_fuzzer_enable_complex_types --lazy_vector_generation_ratio 0.2 --velox_fuzzer_enable_column_reuse --velox_fuzzer_enable_expression_reuse --duration_sec 60 --logtostderr=1 --minloglevel=0 --repro_persist_path=/tmp/fuzzer_repro
Exited with code exit status 134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment