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

mserver5: sql/storage/store.c:3610: sys_drop_func: Assertion `rid_func != oid_nil' failed. #3586

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments

Comments

@monetdb-team
Copy link

@monetdb-team monetdb-team commented Nov 30, 2020

Date: 2014-09-26 16:01:41 +0200
From: Martin van Dinther <<martin.van.dinther>>
To: SQL devs <>
Version: 11.17.21 (Jan2014-SP3)
CC: @njnes

Last updated: 2014-10-31 14:14:30 +0100

Comment 20201

Date: 2014-09-26 16:01:41 +0200
From: Martin van Dinther <<martin.van.dinther>>

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0
Build Identifier:

Assertion failure when trying to drop aggregate median for a second time.

Reproducible: Always

Steps to Reproduce:

  1. Start mserver5
  2. Start mclient
  3. executing SQL comands:
    SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;
    DROP AGGREGATE median(double);
    SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;
    DROP AGGREGATE median(double);
    SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;

Actual Results:

builtin opt gdk_dbpath = /ufs/dinther/MonetDB201408/var/monetdb5/dbfarm/demo
builtin opt gdk_debug = 0
builtin opt gdk_vmtrim = no
builtin opt monet_prompt = >
builtin opt monet_daemon = no
builtin opt mapi_port = 50000
builtin opt mapi_open = false
builtin opt mapi_autosense = false
builtin opt sql_optimizer = default_pipe
builtin opt sql_debug = 0
cmdline opt mapi_port = 49000
MonetDB 5 server v11.17.21 "Jan2014-SP3"
Serving database 'demo', using 8 threads
Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
Found 15.356 GiB available main-memory.
Copyright (c) 1993-July 2008 CWI.
Copyright (c) August 2008-2014 MonetDB B.V., all rights reserved
Visit http://www.monetdb.org/ for further information
Listening for connection requests on mapi:monetdb://127.0.0.1:49000/
MonetDB/GIS module loaded
MonetDB/JAQL module loaded
MonetDB/SQL module loaded

Bulk operator required for str.stringleft
Bulk operator required for str.stringleft
Bulk operator required for user.columnsize
Bulk operator required for user.heapsize
Bulk operator required for user.indexsize
Bulk operator required for str.stringleft
Bulk operator required for str.stringleft
mserver5: store.c:3610: sys_drop_func: Assertion `rid_func != oid_nil' failed.
./mserver5.sh: line 4: 11254 Aborted ./MonetDB201408/bin/mserver5 -d10 --set mapi_port=49000
bash-4.2$

bash-4.2$ mclient -p 49000
Welcome to mclient, the MonetDB/SQL interactive terminal (unreleased)
Database: MonetDB v11.17.21 (Jan2014-SP3), 'demo'
Type \q to quit, ? for a list of available commands
auto commit mode: on
sql>SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;
+--------------------------+
| L2 |
+==========================+
| 1 |
+--------------------------+
1 tuple (0.997ms)
sql>DROP AGGREGATE median(double);
operation successful (28.850ms)
sql>SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;
+--------------------------+
| L2 |
+==========================+
| 1 |
+--------------------------+
1 tuple (0.950ms)
sql>DROP AGGREGATE median(double);
sql>SELECT median(val) FROM (SELECT 1.0 as val UNION ALL SELECT 2.0) as t;
bash-4.2$

Expected Results:

no assertion failure. Error msg that AGGREGATE median does not exist:
DROP AGGREGATE: no such aggregate 'median' (double(53))

Comment 20211

Date: 2014-09-28 16:16:21 +0200
From: @njnes

we dropped the wrong function (structure), ie (other median). Therefor the structure of this median(double) could be found again, but the id was already removed from the functions table.

Comment 20375

Date: 2014-10-31 14:14:30 +0100
From: @sjoerdmullender

Oct2014 has been released.

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

Successfully merging a pull request may close this issue.

None yet
1 participant