Hi,

I am trying to run the example embedded MonetDB server using the June 2010 SP2 release:

$ ./Mbeddedsql5 --config=monetdb5.conf --time --dbname=test_db

After entering a simple SQL statement on the standard input and pressing <ENTER>, the program hangs at mapi_query.  Here is the stack trace:

  [1] _read(0x5, 0xffffffff7fffdf16, 0x2, 0x0, 0x0, 0x0), at 0xffffffff7a6d3d90
  [2] read(0x5, 0xffffffff7fffdf16, 0x2, 0x0, 0x0, 0x0), at 0xffffffff7a6c48b8
  [3] pipe_read(s = 0x10015fe50, buf = 0xffffffff7fffdf16, elmsize = 2U, cnt = 1U), line 3194 in "stream.c"
  [4] stream_readSht(s = 0x10015fe50, val = 0xffffffff7fffdf16), line 2679 in "stream.c"
  [5] bs_read(ss = 0x10015fcd0, buf = 0x100f7a012, elmsize = 1U, cnt = 8190U), line 2368 in "stream.c"
  [6] stream_read(s = 0x10015fcd0, buf = 0x100f7a012, elmsize = 1U, cnt = 8190U), line 181 in "stream.c"
  [7] read_line(mid = 0x100133950), line 2515 in "Mapi.c"
  [8] read_into_cache(hdl = 0x100f73f30, lookahead = 1), line 2993 in "Mapi.c"
  [9] mapi_execute_internal(hdl = 0x100f73f30), line 3240 in "Mapi.c"
  [10] mapi_query(mid = 0x100133950, cmd = 0x100147010 "select count(1) from taq.trade\n"), line 3277 in "Mapi.c"
  [11] main(argc = 4, av = 0xffffffff7fffe628), line 212 in "prog.c"

Here is my MonetDB configuration:

$ ./mserver5 --version
MonetDB server v5.20.5 (64-bit), based on kernel v1.38.5 (64-bit oids)
Release Jun2010-SP2
Copyright (c) 1993-July 2008 CWI
Copyright (c) August 2008-2010 MonetDB B.V., all rights reserved
Visit http://monetdb.cwi.nl/ for further information
Found 64.0GiB available memory, 16 available cpu cores
Configured for prefix: /GAAL/chenher/share/monetdb/distro-sparc-jun2010-sp2-64bit
Libraries:
  libpcre: 8.10 2010-06-25 (compiled with 8.10)
  openssl: OpenSSL 1.0.0a 1 Jun 2010 (compiled with )
  libxml2: 2.6.23 (compiled with 2.6.23)
Compiled by: chenher@sfouxsrv073 (sparc-sun-solaris2.10)
Compilation: cc -m64 -xcode=pic32 -I/GAAL/chenher/share/hans_boehm_gc/distro-sparc-7.1-64bit//include/ -g
Linking    : /usr/ccs/bin/ld -m64 -L/GAAL/chenher/share/openssl/distro-sparc-1.0.0a-64bit//lib/64/ -L/GAAL/chenher/share/pcre/distro-sparc-8.10-64bit//lib -L/GAAL/chenher/share/hans_boehm_gc/distro-sparc-7.1-64bit//lib/

The database test_db was created by a non-embedded mserver5 using the same configuration file.  The non-embedded mserver5 was gracefully shut down just before running the embedded version.

Thanks.
Hering