Is there anyone that can think of a solution for this problem?
cc1: warnings being treated as errors
/Volumes/Scratch/monetdb/stable/monetdb/src/modules/plain/bat.mx: In function 'local_itoa':
/Volumes/Scratch/monetdb/stable/monetdb/src/modules/plain/bat.mx:1253: warning: format '%zd' expects type 'signed size_t', but argument 4 has type 'ssize_t'
I mean... is there a difference between "signed size_t" and "ssize_t"?
Ehrm.
[Orion:src/modules/plain] fabian% uname -a
Darwin Orion.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc PowerBook4,3 Darwin
[Orion:src/modules/plain] fabian% gcc --version
gcc (GCC) 4.0.1 (Apple Computer, Inc. build 5341)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Probably just need to compile without -Werror.
We are planning to start a new "Stable" branch in about one to two weeks
time in preparation for a new release. This new release will consist of
all packages.
I would like to ask all developers to be conservative with your checkins
until that time. This does not mean you're not allowed to check in any
fixes or new features, just that I would like to urge you to make extra
sure that your changes work. Also, by checking in any changes before we
create this new branch, you commit yourself to making sure that the
features work flawlessly in two weeks' time.
This new release will not contain many new features. It is mostly a
bug-fix release with some new stuff. We wanted to do a partial release,
but can't because of slight incompatibilities between the current
Development and Stable branches, so we need to release either nothing or
everything. We've chosen everything.
By the way, this is independent from the SQL bug fix release which is
going to be released today (and hence will be superseded in a few weeks
time).
--
Sjoerd Mullender
Wrong on (almost) all counts. It's amazing.
Martin Kersten wrote:
> Update of /cvsroot/monetdb/clients/src/mapiclient
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10235
>
> Modified Files:
> MapiClient.mx
> Log Message:
> Move the mode change into one place. Set the default rendering of MAL to
This I had already done in the previous checkin, but better because more
complete.
> align with the console. Best option still is to make mclient part of
This is debatable.
> the server too.
This has *nothing* to do with this checkin (and is debatable anyway).
>
>
> Index: MapiClient.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/clients/src/mapiclient/MapiClient.mx,v
> retrieving revision 1.73
> retrieving revision 1.74
> diff -u -d -r1.73 -r1.74
> --- MapiClient.mx 28 Aug 2007 07:43:07 -0000 1.73
> +++ MapiClient.mx 28 Aug 2007 08:03:57 -0000 1.74
> @@ -243,6 +243,15 @@
> }
>
> static void
> +modeChange(char *reply){
> + if (strstr(reply, "mdb>#EOD")){
> + setPrompt();
> + } else
> + if(strncmp(reply,"mdb>",4)==0)
> + sprintf(promptbuf,"mdb>");
> +}
> +
> +static void
> SQLsetSpecial(const char *command)
> {
> if (mode == SQL && command) {
> @@ -371,6 +380,7 @@
> do {
> if ((reply = fetch_line(hdl)) == NULL)
> return 0;
> + modeChange(reply);
> } while (*reply != '[' && *reply != '=');
> return mapi_split_line(hdl);
> }
Now the change is checked twice.
> @@ -412,7 +422,8 @@
> {
> char *line;
>
> - while ((line = fetch_line(hdl)) != 0) {
> + while ((line = mapi_fetch_line(hdl)) != 0) {
> + modeChange(line);
> if (*line == '=')
> line++;
> fprintf(toConsole, "%s\n", line);
Why did you undo my change which did this already?
> @@ -1310,7 +1321,7 @@
> continue;
> }
> case '?':
> - if (!isspace((int) line[2]) && mode == MAL) {
> + if (mode==MAL ||debugMode() ){
> strcpy(line, line + 1);
> break;
> }
This is the only part of the checkin that has merit, except a comment
that the line with ? is sent to the server might be useful.
> @@ -1756,7 +1767,8 @@
>
> /* default formatter depends on whether we're interactive */
> if (formatter == NOformatter)
> - formatter = interactive && interactive_stdin && mode != XQUERY ? TABLEformatter : RAWformatter;
> + formatter = interactive && interactive_stdin && mode != XQUERY ?
> + (mode==MAL?RAWformatter: TABLEformatter) : RAWformatter;
>
> if (command) {
> /* execute from command-line */
>
>
If you really insist that in MAL mode the default should be RAW, then
write it like this:
formatter = interactive && interactive_stdin && mode != XQUERY && mode
!= MAL ? TABLEformatter : RAWformatter;
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Monetdb-checkins mailing list
> Monetdb-checkins(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
--
Sjoerd Mullender
Hi Dossy,
There is no source repository/patch submission system in C-Store like
you'd see in a mature open source community project. C-Store is only
designed to be used as tool by academic researchers to look at the
properties of column-oriented database query execution. It is far from a
complete database system and parts of the code are quite rudimentary.
Further, it has been neglected recently as many of the people who used to
code for C-Store are now coding for Vertica.
However, I like the idea of using a column-oriented database as a storage
engine for MySQL. The thought actually crossed my mind as well recently
when I read about Solid using their database as a storage engine for
MySQL. My recommendation is that you look into the Monet instead of
C-Store, however (http://monetdb.cwi.nl/). They have a far more complete
open source column-oriented database.
BTW: I came across your blog entry on Vertica recently. IMO, Vertica is
much more than Sybase IQ, with far more advanced compression schemes, and
the query executer is better able to take advantage of the column-oriented
layout (data is kept in columns as long as possible and operated on as
such). I think Vertica is about 10 times as fast as IQ. Your blog entry
says you have been in contact recently with the director of sales at
Vertica who can probably give you more information.
D
On Fri, 24 Aug 2007, Dossy Shiobara wrote:
> Hi!
>
> Thanks for the work on C-Store and releasing it as open source under the
> BSD license.
>
> Is there a source repository for the project? What's the process for
> submitting patches, etc.?
>
> I'm currently working on using/adapting C-Store as a storage engine for
> MySQL. I anticipate needing to make a series of changes to the C-Store
> 0.2 code to make this possible and I'd like to try and get those into
> the official source tree.
>
> Thanks,
>
> -- Dossy
>
> --
> Dossy Shiobara | dossy(a)panoptic.com | http://dossy.org/
> Panoptic Computer Network | http://panoptic.com/
> "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)
>
>
Hi,
I am having more difficulties with {sum} and {avg}. The problems
happen both on 4.16.2 and 4.18.0, on Linux and OS X, compiled with
32- and 64- bits, with and without optimizations.
I have been able to isolate the problem and write a simple test case
that shows the error. The attached file has the contents of a BAT; if
you save it and then run the following script:
module(ascii_io);
var b:=bat(str,int).import(<filename>);
var x:={sum}(b);
then you will get the following error:
*** glibc detected *** double free or corruption (!prev):
0x00000000006a6360 ***
and Monet will crash.
The failing free is called from line 1819 of MonetDB4/src/monet/
monet_multiplex.mx. It's inside the 'interpret_setaggr' function, and
it happens only with the 'non-optimized hash' implementation of
setaggr starting on line 1694 (in fact, if you sort the BAT before
calling {sum}, there will be no error. The same is true for example
when you call {count}, which uses a different implementation of
setaggr to process the {}).
The failing free appears within the 'bunins_failed' label (line
1800), which in turn is called by the loop that processes the
aggregate when, I think, its call to 'bunins_unary' fails. Here's the
failing code, starting on line 1694:
BATloopFast(extent, p, q, yy) {
[...]
if (BATprepareHash(b))
goto bunins_failed;
HASHloop(b, b->hhash, hh, last) {
r = BUNptr(b, hh);
@:bunins_unary(r,hh)@
}
[...]
}
I don't understand why @:bunins_unary(r,hh)@ should fail. I have
noticed, however, that if I remove the last couple of lines from the
attached file then the call to {sum} doesn't crash. These last two
lines are exactly the same as others, so it's not their particular
value that matters, but rather the number of rows in the BAT with the
"Other" head value.
Do you have any suggestions? Any other information that I can provide
to help you fix the problem?
Thanks a lot again,
-- Agustin
PS: On OS X, instead of the crash you get an error message "malloc:
*** Deallocation of a pointer not malloced: 0x281ee00; This could be
a double free(), or free() called with the middle of an allocated
block", but for all practical purposes it's the same: the free() is
called from the same place in interpret_setaggr. The difference is
just in the way the Mac equivalent of glibc handles the double free.
Hi MonetDB-developers:
I have tried to install Pathfinder on my Fedora7 many times and used all the
kind of installations from both Tarball and sourceforge, but I fail to
install it and always get error as bellow:
grep: /home/sjoerd/Monet-Stable/lib/libbat.la: No such file or directory
/bin/sed: can't read /home/sjoerd/Monet-Stable/lib/libbat.la: No such file
or directory
libtool: link: `/home/sjoerd/Monet-Stable/lib/libbat.la' is not a valid
libtool archive
make[4]: *** [lib_pf_support.la] Error 1
make[4]: Leaving directory `/root/Desktop/MonetDBInstall/runtime'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/Desktop/MonetDBInstall/runtime'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/Desktop/MonetDBInstall/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/MonetDBInstall'
make: *** [all] Error 2
It would be grateful if you can help me to solve this problem.
I am looking forward to hearing from you.
Tola
--
Department of Computer Science
Graduate School of Systems and Information Engineering
University of Tsukuba
Ibaraki, Tsukuba city, Japan