Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
The SELECT statement should execute without causing the database to crash. Ideally, the query should return no rows or throw an error message.
To Reproduce
DROP TABLE IF EXISTS t0 CASCADE;
CREATE TABLE t0( c1 VARCHAR(500), PRIMARY KEY(c1));
INSERT INTO t0(c1) VALUES (true);
SELECT t0.c1 FROM t0 WHERE JAROWINKLER(1, ''); -- unexpected end of file
-- or simply
SELECT JAROWINKLER(1, '');Expected behavior
As mentioned above
Screenshots
backtrace (using gdb), for JAROWINKLER in WHERE filter:
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140626516837952) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140626516837952) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140626516837952, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007fe62d184476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007fe62d16a7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007fe62d16a71b in __assert_fail_base (fmt=0x7fe62d31f130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=0x7fe62de8c7b5 "size != 0", file=0x7fe62de8c036 "/app/MonetDB/gdk/gdk_utils.c", line=1733,
function=<optimized out>) at ./assert/assert.c:92
#6 0x00007fe62d17be96 in __GI___assert_fail (assertion=0x7fe62de8c7b5 "size != 0",
file=0x7fe62de8c036 "/app/MonetDB/gdk/gdk_utils.c", line=1733,
function=0x7fe62de8cd60 <__PRETTY_FUNCTION__.12> "GDKmalloc_internal") at ./assert/assert.c:101
#7 0x00007fe62db95355 in GDKmalloc_internal () from /usr/local/lib/libbat-11.50.0.so.28
#8 0x00007fe62db95628 in GDKmalloc () from /usr/local/lib/libbat-11.50.0.so.28
#9 0x00007fe62ea8f05f in str_2_codepointseq () from /usr/local/lib/libmonetdb5-11.50.0.so.35
#10 0x00007fe62ea8f85b in TXTSIMjarowinkler () from /usr/local/lib/libmonetdb5-11.50.0.so.35
#11 0x00007fe62e94a046 in malCommandCall () from /usr/local/lib/libmonetdb5-11.50.0.so.35
#12 0x00007fe62e94d51e in runMALsequence () from /usr/local/lib/libmonetdb5-11.50.0.so.35
#13 0x00007fe62e951166 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.50.0.so.35
#14 0x00007fe62dc1ea48 in thread_starter () from /usr/local/lib/libbat-11.50.0.so.28
#15 0x00007fe62d1d6ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#16 0x00007fe62d267a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
Software versions
Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary:
> docker exec -it monetdb-test mserver5 --version
MonetDB 5 server 11.50.0 (hg id: b5434a9) (64-bit, 128-bit integers)
This is an unreleased version
Copyright (c) 1993 - July 2008 CWI
Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved
Visit https://www.monetdb.org/ for further information
Found 503.5GiB available memory, 128 available cpu cores
Libraries:
Compiled by: @a6e5f1e184c3 (x86_64-pc-linux-gnu)
Compilation: /usr/bin/cc
Linking : /usr/bin/ld
Issue labeling
Bug
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
Don't try to allocate 0 bytes.