opt_pushselect stuck with multi-table UDF #3817
Last updated: 2016-01-15 11:38:03 +0100
Date: 2015-10-07 17:48:33 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
I have an UDF that is used to produce a table for each row in input, and concatenate the output.
Due to this UDF, it is not trivial to make this issue reproducible, but if this description is not enough to identify the problem, then I can share everything.
The UDF is used this way:
sql>CREATE TABLE ss (id INT, s CLOB);
Now, If I add a simple selection on token:
then the server seems to hang indefinitely.
gdb suggests that it hangs in opt_pushselect. My wild guess is that it gets stuck while trying to push the select down the innermost selection (the input of the tokenize function). I tried with a standard table function, which takes no parameters and returns a table. No problem in that case.
The gdb session:
(gdb) thread apply all bt
Thread 12 (Thread 0x7f6b69ca9700 (LWP 20945)):
Thread 11 (Thread 0x7f6b681b1700 (LWP 20946)):
Thread 10 (Thread 0x7f6b67fb0700 (LWP 20947)):
Thread 9 (Thread 0x7f6b67daf700 (LWP 20950)):
Thread 8 (Thread 0x7f6b67aae700 (LWP 20951)):
Thread 7 (Thread 0x7f6b678ad700 (LWP 20952)):
Thread 6 (Thread 0x7f6b676ac700 (LWP 20953)):
Thread 5 (Thread 0x7f6b674ab700 (LWP 20954)):
Thread 4 (Thread 0x7f6b672aa700 (LWP 20955)):
Thread 3 (Thread 0x7f6b670a9700 (LWP 20956)):
Thread 2 (Thread 0x7f6b66ca7700 (LWP 20958)):
Thread 1 (Thread 0x7f6b70678800 (LWP 20944)):
$ mserver5 --version
Date: 2015-12-24 22:36:44 +0100
For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=9633f26d33e6
Date: 2015-12-24 22:37:08 +0100
fixed in Jul 2015 branch
The text was updated successfully, but these errors were encountered: