Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad filter column causes a segfault #54

Closed
Randolph42 opened this issue Apr 4, 2014 · 2 comments
Closed

Bad filter column causes a segfault #54

Randolph42 opened this issue Apr 4, 2014 · 2 comments

Comments

@Randolph42
Copy link
Contributor

Poorly written filter expressions cause segfaults rather than an error.
eg:
unnamed_A := FILTER orders BY o_orderkeyxxxxxxx <22 ;
unnamed_A2 := SELECT o_orderkey AS o_orderkey FROM unnamed_A;
DISPLAY unnamed_A2 USING ('|');

results in:
Segmentation fault (core dumped)

gdb backtrace shows:
(gdb) bt
#0 0x000000000069f860 in host_compare(long long*, long long, long long) ()
#1 0x00000000006ac030 in zone_map_check(std::queue<std::basic_string<char, std::char_traits, std::allocator >, std::deque<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > >, std::queue<std::basic_string<char, std::char_traits, std::allocator >, std::deque<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > >, std::queue<long long, std::deque<long long, std::allocator > >, std::queue<double, std::deque<double, std::allocator > >, CudaSet*, unsigned int) ()
#2 0x00000000006c447d in filter_op(char_, char_, unsigned int) ()
#3 0x00000000006c3d74 in copyColumns(CudaSet*, std::queue<std::basic_string<char, std::char_traits, std::allocator >, std::deque<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > > >, unsigned int, unsigned long&, bool, bool) ()
#4 0x00000000004204a5 in emit_select(char_, char_, int) ()
#5 0x000000000042c45c in yyparse() ()

@antonmks
Copy link
Owner

antonmks commented Apr 4, 2014

fixed.

@antonmks antonmks closed this as completed Apr 4, 2014
@Randolph42
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants