From owner-shore-users@cs.wisc.edu Wed Sep 4 23:50:22 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id XAA04771; Wed, 4 Sep 2002 23:50:22 -0500 (CDT) Received: from lucy.cs.wisc.edu (lucy.cs.wisc.edu [128.105.6.15]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id XAA04768 for ; Wed, 4 Sep 2002 23:50:22 -0500 (CDT) Received: from mail.ececs.uc.edu (mail.ececs.uc.edu [129.137.4.130]) by lucy.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g854oLJ15739 for ; Wed, 4 Sep 2002 23:50:21 -0500 Received: from gatekeeper.ececs.uc.edu (gatekeeper.ececs.uc.edu [10.63.3.227]) by mail.ececs.uc.edu (8.12.3/8.12.2) with ESMTP id g854oFfK028385 for ; Thu, 5 Sep 2002 00:50:15 -0400 (EDT) Received: from localhost (ssohoni@localhost) by gatekeeper.ececs.uc.edu (8.10.2+Sun/8.9.1) with ESMTP id g854oFN10976 for ; Thu, 5 Sep 2002 00:50:15 -0400 (EDT) X-Authentication-Warning: gatekeeper.ececs.uc.edu: ssohoni owned process doing -bs Date: Thu, 5 Sep 2002 00:50:15 -0400 (EDT) From: Sohum Sohoni To: shore-users@cs.wisc.edu Subject: Re: shore on alpha Message-ID: "From: ssohoni@ececs.uc.edu" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list Hi Bolo, Thank you very much for all your help so far. We have fixed the inconsistencies in the system include files. The compilation now blazes through all previous problem spots and comes to a halt with the following error. make[10]: Entering directory `/tmp_mnt/home/ssohoni/tmp/alpha_shore/shore-interim-2/src/smlayer/sthread' gcc -x c++ -fno-implicit-templates -I. -I../../../config -I../../../src/smlayer/fc -Wall -W -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Werror -fvolatile -fno-inline -c -g3 sthread.cpp In file included from sthread.h:110, from sthread.cpp:102: sdisk.h:190: macro `stat' used with just one arg make[10]: *** [sthread.o] Error 1 make[10]: Leaving directory `/tmp_mnt/home/ssohoni/tmp/alpha_shore/shore-interim-2/src/smlayer/sthread' make[9]: *** [all_no_automatic_localdir] Error 2 A complete transcript is avaialable at http://www.ececs.uc.edu/~ssohoni/error3.txt Thanks again. I hope this is the last time I need to bother you. Sohum > > Shore still fails to compile on alpha. Here's the situation from scratch- > > > And below is the error shown by make- > > > > In file included from errlog.h:45, > > from w_debug.h:50, > > from debug.cpp:37: > > /opt/gnu/lib/gcc-lib/alphaev5-dec-osf4.0/2.95.2/include/stdio.h:457: warning: `cuserid' > > redefined > > /opt/gnu/lib/gcc-lib/alphaev5-dec-osf4.0/2.95.2/include/unistd.h:608: warning: this > > This appears to be due to a problem with the system include files on > your alpha box having inconsistenc declarations. Either the GNU-ified > versions which gcc uses, (more likely) the system include files the > GNU ones are derived from, or some combination of the two. > > The problem doesn't occur with our Digital Unix 4.0F Alpha boxes, > uname output > > OSF1 george.cs.wisc.edu V4.0 1229 alpha alpha > > I've put together a little hack to work around _this particular > instance_ of the bug in the Tru64 header files. A prototype > of something I've been meaning to do to fix include file > explosions. It is appended. > > However, that being said, you'll probably run into the same thing > again and again due to the broken header files. > > 1) Finding the inconsistencies in the Tru64 include files > and fixing them would be one option. That is what I would > do if it was my box; other software will have the same problem. > > 2) Another option would be to eliminate the '-Werror' directive > from the Shore compiler parameters. You can do that with the > '#define GCC_NO_ERROR' shore.def option. I _DO_NOT_ENCOURAGE_ > use of this option, as it will allow things which are also > *real errors* or legitimate warnings to compile -- and perhaps do > bad things. It is a brute-force solution that may mask other, > more serious, problems. > > Bolo -- Josef T. Burger From owner-shore-users@cs.wisc.edu Thu Sep 12 22:03:27 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id WAA06460; Thu, 12 Sep 2002 22:03:27 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from schroeder.cs.wisc.edu (schroeder.cs.wisc.edu [128.105.6.11]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id WAA06457 for ; Thu, 12 Sep 2002 22:03:27 -0500 (CDT) Received: from newman.cs.purdue.edu (IDENT:0@newman.cs.purdue.edu [128.10.2.6]) by schroeder.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8D33QX02717 for ; Thu, 12 Sep 2002 22:03:26 -0500 Received: from icds37 (icds37.cs.purdue.edu [128.10.5.48]) by newman.cs.purdue.edu (8.11.6/8.11.6/PURDUE_CS-2.0) with SMTP id g8D33Pn01079 for ; Thu, 12 Sep 2002 22:03:26 -0500 (EST) Message-ID: <006701c25ad2$221579e0$30050a80@ad.cs.purdue.edu> From: "xiaopeng xiong" To: Subject: shore install question Date: Thu, 12 Sep 2002 22:03:27 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0064_01C25AA8.38F91A10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list This is a multi-part message in MIME format. ------=_NextPart_000_0064_01C25AA8.38F91A10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, everyone. I am new to the SHORE. I am trying to installing the shore interim = 1.0 on my machine, which is a=20 PC running linux. Now I have a question. My perl directory lies in = /bin/perl, but the default path of shore is /s/perl/bin/perl, so I guess I can change somewhere to get to the = right path.=20 Do I need to modify the file of doc/shore.def? I find there is a = string named as PERL_DIR_PATH,=20 and a sentence(line 165) with comment: #undef PERL_DIR_PATH I tried to modify that to: define PERL_DIR PATH /bin/perl but that doesn't work because the output Makefile has an error said: "Makefile:1976: *** missing `endef', unterminated `define'. Stop." Is there anything I did wrong? Any suggestion will be appreciated! Thanks a lot. Regards, Xiaopeng ------=_NextPart_000_0064_01C25AA8.38F91A10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello, everyone.
 
    I am new to the = SHORE. I am=20 trying to installing the shore interim 1.0 on my machine, which is a=20
PC running linux. Now I have a = question. My perl=20 directory lies in /bin/perl, but the default path of shore
is /s/perl/bin/perl, so I guess I = can change=20 somewhere to get to the right path.
 
    Do I need to modify = the file of=20 doc/shore.def? I find there is a string named as PERL_DIR_PATH, =
and a sentence(line 165) with=20 comment:
 
    #undef=20 PERL_DIR_PATH
 
    I tried to modify = that=20 to:
    define PERL_DIR PATH = /bin/perl
 
    but that doesn't = work because=20 the output Makefile has an error said:
 
    "Makefile:1976: *** = missing=20 `endef', unterminated `define'.  Stop."
 
    Is there anything I = did wrong?=20 Any suggestion will be appreciated!
 
    Thanks a = lot.
 
Regards,
    = Xiaopeng
 
------=_NextPart_000_0064_01C25AA8.38F91A10-- From owner-shore-users@cs.wisc.edu Thu Sep 12 22:09:00 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id WAA06522; Thu, 12 Sep 2002 22:09:00 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from lucy.cs.wisc.edu (lucy.cs.wisc.edu [128.105.6.15]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id WAA06519 for ; Thu, 12 Sep 2002 22:09:00 -0500 (CDT) Received: from newman.cs.purdue.edu (IDENT:0@newman.cs.purdue.edu [128.10.2.6]) by lucy.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8D38xm03508 for ; Thu, 12 Sep 2002 22:08:59 -0500 Received: from jabberwock.cs.purdue.edu (jabberwock.cs.purdue.edu [128.211.1.82]) by newman.cs.purdue.edu (8.11.6/8.11.6/PURDUE_CS-2.0) with ESMTP id g8D38xn01171 for ; Thu, 12 Sep 2002 22:08:59 -0500 (EST) Received: from localhost (welc@localhost) by jabberwock.cs.purdue.edu (8.11.6/8.11.6/PURDUE_CS-2.0) with ESMTP id g8D38vO04434; Thu, 12 Sep 2002 22:08:57 -0500 Date: Thu, 12 Sep 2002 22:08:57 -0500 (EST) From: Adam Welc To: xiaopeng xiong cc: shore-users@cs.wisc.edu Subject: Re: shore install question In-Reply-To: <006701c25ad2$221579e0$30050a80@ad.cs.purdue.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list As far as I remember (but it was quite a while ago:) in the shore.def file you indeed need to modify the option you mentioned. However, at build process Shore automatically prepends "/bin/perl" to the specified path. So in your case it should be enough to set this path to "/". Also, I think you need to completely clean the remainders of the previous (unsuccessful) compilation when playing with the parameters in shore.def (they are alread sucked in to some of the files generated at the beginning of the build process. The way to do it is to invoke "make pristine". If this does not work I will try to dig in my own configuration files and fgure it out. Just let me know. Good luck Adam On Thu, 12 Sep 2002, xiaopeng xiong wrote: > Hello, everyone. > > I am new to the SHORE. I am trying to installing the shore interim 1.0 on my machine, which is a > PC running linux. Now I have a question. My perl directory lies in /bin/perl, but the default path of shore > is /s/perl/bin/perl, so I guess I can change somewhere to get to the right path. > > Do I need to modify the file of doc/shore.def? I find there is a string named as PERL_DIR_PATH, > and a sentence(line 165) with comment: > > #undef PERL_DIR_PATH > > I tried to modify that to: > define PERL_DIR PATH /bin/perl > > but that doesn't work because the output Makefile has an error said: > > "Makefile:1976: *** missing `endef', unterminated `define'. Stop." > > Is there anything I did wrong? Any suggestion will be appreciated! > > Thanks a lot. > > Regards, > Xiaopeng > > -- Adam Welc Computer Science Building, room 274 West Lafayette, IN 47906 Telephone number (work): (765) 4947836 http://www.cs.purdue.edu/homes/welc From owner-shore-users@cs.wisc.edu Fri Sep 20 09:28:22 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id JAA09865; Fri, 20 Sep 2002 09:28:22 -0500 (CDT) Received: from schroeder.cs.wisc.edu (schroeder.cs.wisc.edu [128.105.6.11]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id JAA09862 for ; Fri, 20 Sep 2002 09:28:22 -0500 (CDT) Received: from mail.ececs.uc.edu (mail.ececs.uc.edu [129.137.4.130]) by schroeder.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8KESLv14327 for ; Fri, 20 Sep 2002 09:28:21 -0500 Received: from gatekeeper.ececs.uc.edu (gatekeeper.ececs.uc.edu [10.63.3.227]) by mail.ececs.uc.edu (8.12.3/8.12.2) with ESMTP id g8KESF3W006727 for ; Fri, 20 Sep 2002 10:28:15 -0400 (EDT) Received: from localhost (ssohoni@localhost) by gatekeeper.ececs.uc.edu (8.10.2+Sun/8.9.1) with ESMTP id g8KESFc20318 for ; Fri, 20 Sep 2002 10:28:15 -0400 (EDT) X-Authentication-Warning: gatekeeper.ececs.uc.edu: ssohoni owned process doing -bs Date: Fri, 20 Sep 2002 10:28:15 -0400 (EDT) From: Sohum Sohoni To: shore-users@cs.wisc.edu Subject: Re: shore on alpha Message-ID: "From: ssohoni@ececs.uc.edu" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list With the help of our system administrator, we have fixed all the compilation problems. We've compiled the shore libraries for alpha and also ported some VAS code written for windows. However, when we tried to run our program, it immediately exited with the error message- Cannot create shared memory: 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid argument fatal error: 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid argument called from: 0) sm.cpp:726 Abort Anyone seen this before? I'd appreciate any pointers(outright solutions are more than welcome of course). Thanks. Sohum http://www.ececs.uc.edu/~ssohoni > Thank you very much for all your help so far. > We have fixed the inconsistencies in the system include files. The > compilation now blazes through all previous problem spots and comes to a > halt with the following error. > gcc -x c++ -fno-implicit-templates -I. -I../../../config > -I../../../src/smlayer/fc -Wall -W -Wpointer-arith -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wnested-externs -Werror -fvolatile -fno-inline -c -g3 sthread.cpp > In file included from sthread.h:110, > from sthread.cpp:102: > sdisk.h:190: macro `stat' used with just one arg > make[10]: *** [sthread.o] Error 1 > make[10]: Leaving directory > `/tmp_mnt/home/ssohoni/tmp/alpha_shore/shore-interim-2/src/smlayer/sthread' > make[9]: *** [all_no_automatic_localdir] Error 2 From owner-shore-users@cs.wisc.edu Fri Sep 20 09:34:21 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id JAA10121; Fri, 20 Sep 2002 09:34:21 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from lucy.cs.wisc.edu (lucy.cs.wisc.edu [128.105.6.15]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id JAA10118 for ; Fri, 20 Sep 2002 09:34:21 -0500 (CDT) Received: from mail.cise.ufl.edu (IDENT:atho1zpKt2J/IcdMHZagasvn2xF53KlT@beach.cise.ufl.edu [128.227.205.211]) by lucy.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8KEYKS02481 for ; Fri, 20 Sep 2002 09:34:20 -0500 Received: from cise.ufl.edu (sugar.cise.ufl.edu [128.227.248.37]) by mail.cise.ufl.edu (Postfix) with ESMTP id 92A246BB6; Fri, 20 Sep 2002 10:34:19 -0400 (EDT) X-Mailer: exmh version 2.0.2 2/24/98 To: Sohum Sohoni Cc: shore-users@cs.wisc.edu, aawoods@cise.ufl.edu Subject: Re: shore on alpha In-Reply-To: Message from Sohum Sohoni of "Fri, 20 Sep 2002 10:28:15 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Sep 2002 10:34:19 -0400 From: "Andrew A. Woods" Message-Id: <20020920143419.92A246BB6@mail.cise.ufl.edu> X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list Hello Sohum, I received the same error not long ago. I am running Shore on a Unix network, and in my case it was a result of the machine running Shore not having the system value of shared memory set large enough. After the administrator raised the value from that of the default (which apparently is quite small) all was well. Andrew From owner-shore-users@cs.wisc.edu Fri Sep 20 09:55:34 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id JAA10887; Fri, 20 Sep 2002 09:55:34 -0500 (CDT) Received: from schroeder.cs.wisc.edu (schroeder.cs.wisc.edu [128.105.6.11]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id JAA10884 for ; Fri, 20 Sep 2002 09:55:34 -0500 (CDT) Received: from mail.ececs.uc.edu (ececs.uc.edu [129.137.4.130]) by schroeder.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8KEtXv17639 for ; Fri, 20 Sep 2002 09:55:33 -0500 Received: from gatekeeper.ececs.uc.edu (gatekeeper.ececs.uc.edu [10.63.3.227]) by mail.ececs.uc.edu (8.12.3/8.12.2) with ESMTP id g8KEtQ3W008360 for ; Fri, 20 Sep 2002 10:55:27 -0400 (EDT) Received: from localhost (ssohoni@localhost) by gatekeeper.ececs.uc.edu (8.10.2+Sun/8.9.1) with ESMTP id g8KEtQY20765 for ; Fri, 20 Sep 2002 10:55:26 -0400 (EDT) X-Authentication-Warning: gatekeeper.ececs.uc.edu: ssohoni owned process doing -bs Date: Fri, 20 Sep 2002 10:55:26 -0400 (EDT) From: Sohum Sohoni To: shore-users@cs.wisc.edu Subject: Re: shore on alpha In-Reply-To: <20020920143419.92A246BB6@mail.cise.ufl.edu> Message-ID: "From: ssohoni@ececs.uc.edu" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list Thanks Andrew. The sys admin increased the value to 16 MB and it still doesn't work. Does anyone know the approximate value for the amount of shared memory required? Or is 16 MB enough? If it is, there might be something else that's wrong. Please let me know. Thanks, Sohum > Hello Sohum, > I received the same error not long ago. I am running Shore on a Unix network, > and in my case it was a result of the machine running Shore not having the > system value of shared memory set large enough. After the administrator > raised the value from that of the default (which apparently is quite small) > all was well. > Andrew > > > http://www.ececs.uc.edu/~ssohoni From owner-shore-users@cs.wisc.edu Fri Sep 20 16:03:42 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id QAA22660; Fri, 20 Sep 2002 16:03:42 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from orca.cs.wisc.edu (orca.cs.wisc.edu [128.105.165.26]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id QAA22657 for ; Fri, 20 Sep 2002 16:03:41 -0500 (CDT) Received: from cs.wisc.edu (localhost [127.0.0.1]) by orca.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id QAA15921; Fri, 20 Sep 2002 16:03:40 -0500 (CDT) Message-Id: <200209202103.QAA15921@orca.cs.wisc.edu> To: Sohum Sohoni cc: shore-users@cs.wisc.edu Subject: Re: shore on alpha From: Bolo In-reply-to: Sohum Sohoni's message of Fri, 20 Sep 2002 10:28:15 EDT. Date: Fri, 20 Sep 2002 16:03:40 -0500 Sender: owner-shore-users@cs.wisc.edu Precedence: list > With the help of our system administrator, we have fixed all the > compilation problems. We've compiled the shore libraries for alpha and Great. > However, when we tried to run our program, it immediately exited with the > error message- > Cannot create shared memory: > 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid > argument > > fatal error: > 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid > argument > called from: > 0) sm.cpp:726 The shared memory limit on your OS is set smaller than the size that shore requires for the buffer pool and its associated overhead such as log buffers and space for the io control blocks, etc. Try changing the size of your buffer pool to a smaller size. The shared memory limit on the alpha box I'm using appears to be 256MB. Note that you won't be able to use a shore buffer pool of that size due to the log buffer and overhead space. 128MB will work, as well as sizes approaching 256MB. Bolo -- Josef T. Burger From owner-shore-users@cs.wisc.edu Tue Sep 24 17:18:11 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id RAA17503; Tue, 24 Sep 2002 17:18:11 -0500 (CDT) Received: from schroeder.cs.wisc.edu (schroeder.cs.wisc.edu [128.105.6.11]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id RAA17500 for ; Tue, 24 Sep 2002 17:18:10 -0500 (CDT) Received: from mail.ececs.uc.edu (ececs.uc.edu [129.137.4.130]) by schroeder.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8OMI9w28163 for ; Tue, 24 Sep 2002 17:18:09 -0500 Received: from naboo.ececs.uc.edu (naboo.ececs.engr.uc.edu [10.63.7.239]) by mail.ececs.uc.edu (8.12.3/8.12.2) with ESMTP id g8OMI33W014278 for ; Tue, 24 Sep 2002 18:18:04 -0400 (EDT) Received: from localhost by naboo.ececs.uc.edu (8.9.3/1.1.29.3/12May00-0331PM) id SAA0000034074; Tue, 24 Sep 2002 18:18:03 -0400 (EDT) X-Authentication-Warning: naboo.ececs.uc.edu: ssohoni owned process doing -bs Date: Tue, 24 Sep 2002 18:18:02 -0400 (EDT) From: Sohum Sohoni To: shore-users@cs.wisc.edu Subject: Re: shore on alpha In-Reply-To: <200209202103.QAA15921@orca.cs.wisc.edu> Message-ID: "From: ssohoni@ececs.uc.edu" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list Increasing the shared memory limit got rid of the error. Now we're faced with a new one. It occurs right at the start, where we are trying to create a new volume on a newly created device. The actual code looks like this: W_COERCE(ssm->format_dev(device_name,quota, true)); /* mount the device*/ W_COERCE(ssm->mount_dev(device_name, vol_cnt, devid)); /* generate a volume ID for the new volume we are about to create on the device */ W_COERCE(ssm->generate_new_lvid(templvid)); // create the new volume cout << "Creating a new volume on the device" << endl; cout << " with a " << (int)quota << "KB quota ..." << endl; W_COERCE(ssm->create_vol(device_name, templvid, quota,true)); The error occurs when we try to create the volume. The same code works fine when used on a windows system with Shore release ver. 2.0. This is the error message that we got: Creating a new volume on the device with a 32768KB quota ... fatal error: 1. error in sm.cpp:1776 device is not mounted [0x8000d] called from: 0) testall.cpp:339 A simple ls indicated that the device had been created. We cannot figure out whether the error is a result of the version change(we're now using snapshot 2) or due to the change in the system or something simple that I have overlooked. If anyone has any idea, your input will be greatly appreciated. Thank you. Sohum > > With the help of our system administrator, we have fixed all the > > compilation problems. We've compiled the shore libraries for alpha and > > Great. > > > However, when we tried to run our program, it immediately exited with the > > error message- > > Cannot create shared memory: > > 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid > > argument > > > > fatal error: > > 1. error in w_shmem.cpp:71 Operating system error [0x10001] --- Invalid > > argument > > called from: > > 0) sm.cpp:726 > > The shared memory limit on your OS is set smaller than the size that > shore requires for the buffer pool and its associated overhead such as > log buffers and space for the io control blocks, etc. > > Try changing the size of your buffer pool to a smaller size. > > The shared memory limit on the alpha box I'm using appears to be > 256MB. Note that you won't be able to use a shore buffer pool of > that size due to the log buffer and overhead space. 128MB will > work, as well as sizes approaching 256MB. > > Bolo -- Josef T. Burger > http://www.ececs.uc.edu/~ssohoni From owner-shore-users@cs.wisc.edu Tue Sep 24 18:52:36 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id SAA18403; Tue, 24 Sep 2002 18:52:36 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from orca.cs.wisc.edu (orca.cs.wisc.edu [128.105.165.26]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id SAA18400 for ; Tue, 24 Sep 2002 18:52:36 -0500 (CDT) Received: from cs.wisc.edu (localhost [127.0.0.1]) by orca.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id SAA03595; Tue, 24 Sep 2002 18:52:34 -0500 (CDT) Message-Id: <200209242352.SAA03595@orca.cs.wisc.edu> To: Sohum Sohoni cc: shore-users@cs.wisc.edu Subject: Re: shore on alpha From: Bolo In-reply-to: Sohum Sohoni's message of Tue, 24 Sep 2002 18:18:02 EDT. Date: Tue, 24 Sep 2002 18:52:34 -0500 Sender: owner-shore-users@cs.wisc.edu Precedence: list > > W_COERCE(ssm->format_dev(device_name,quota, true)); > W_COERCE(ssm->mount_dev(device_name, vol_cnt, devid)); > W_COERCE(ssm->generate_new_lvid(templvid)); > cout << "Creating a new volume on the device" << endl; > cout << " with a " << (int)quota << "KB quota ..." << endl; > W_COERCE(ssm->create_vol(device_name, templvid, quota,true)); That is the right sequence of events. > The error occurs when we try to create the volume. The same code works > fine when used on a windows system with Shore release ver. 2.0. OOC -- Shore _release_ 2.0 or _interim snapshot_ 2 on the windows box? > This is the error message that we got: > > Creating a new volume on the device > with a 32768KB quota ... > fatal error: > 1. error in sm.cpp:1776 device is not mounted [0x8000d] > called from: > 0) testall.cpp:339 Is something stepping on the memory of device_name so that when create_vol time rolls around the device_name is no longer valid? You are running everything in a smthread, you aren't trying to do this out of the main() thread? > A simple ls indicated that the device had been created. We cannot figure > out whether the error is a result of the version change(we're now using > snapshot 2) or due to the change in the system or something simple > that I have overlooked. The volume format did change. However you are formatting the device and you won't be running into that problem. If you were, you would get a shore error that says the volume and/or log format is mismatched and that you need to reformat. Bolo From owner-shore-users@cs.wisc.edu Tue Sep 24 22:14:43 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id WAA21659; Tue, 24 Sep 2002 22:14:43 -0500 (CDT) Received: from schroeder.cs.wisc.edu (schroeder.cs.wisc.edu [128.105.6.11]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id WAA21656 for ; Tue, 24 Sep 2002 22:14:43 -0500 (CDT) Received: from mail.ececs.uc.edu (ececs.uc.edu [129.137.4.130]) by schroeder.cs.wisc.edu (8.11.3/8.11.3) with ESMTP id g8P3Egw12379 for ; Tue, 24 Sep 2002 22:14:42 -0500 Received: from naboo.ececs.uc.edu (naboo.ececs.engr.uc.edu [10.63.7.239]) by mail.ececs.uc.edu (8.12.3/8.12.2) with ESMTP id g8P3Ea3W024797 for ; Tue, 24 Sep 2002 23:14:36 -0400 (EDT) Received: from localhost by naboo.ececs.uc.edu (8.9.3/1.1.29.3/12May00-0331PM) id XAA0000034412; Tue, 24 Sep 2002 23:14:36 -0400 (EDT) X-Authentication-Warning: naboo.ececs.uc.edu: ssohoni owned process doing -bs Date: Tue, 24 Sep 2002 23:14:35 -0400 (EDT) From: Sohum Sohoni To: shore-users@cs.wisc.edu Subject: Re: shore on alpha In-Reply-To: <200209242352.SAA03595@orca.cs.wisc.edu> Message-ID: "From: ssohoni@ececs.uc.edu" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-shore-users@cs.wisc.edu Precedence: list Hi Bolo, > OOC -- Shore _release_ 2.0 or _interim snapshot_ 2 on the windows box? it was release 2.0 on windows. > Is something stepping on the memory of device_name so that when > create_vol time rolls around the device_name is no longer > valid? I don't know if it's being overwritten. Will check it out depending on what you have to say about the error message below. > You are running everything in a smthread, you aren't trying to do > this out of the main() thread? We are running it in smthread. Actually, there's more to the error message than I included in my last email. I initially thought that this had nothing to do with the original error, but I'm having second thoughts now. Here's the remainder of the error message- -------------------------------------------------------------------- Abort naboo.ececs.uc.edu ~/research/alpha_shore/shore-interim-2/testall/bin> Removing segment 1024 created by 34391 shmctl(1024, IPC_RMID) fails: 1. error in diskrw.cpp:1214 Operating system error [0x10001]Removing segment 1024 created by 34391 --- Invalid argument diskrw: Cannot clean up server's shared memory segments. diskrw: You might have to do so by hand, with ipcs(1) and ipcrm(1). shmctl(1024, IPC_RMID) fails: 1. error in diskrw.cpp:1214 Operating system error [0x10001] --- Invalid argument diskrw: Cannot clean up server's shared memory segments. diskrw: You might have to do so by hand, with ipcs(1) and ipcrm(1). -------------------------------------------------------------------- Do you think that the diskrw process is unable to access the shared memory? What could be the reasons? Could it be because the diskrw wasn't compiled properly? As I said, we couldn't compile the libraries (and the diskrw program) ourselves, the sys admin did it for us. The limit on shared memory on my machine is 64MB. Could that be a problem? I did try to reduce the size of the buffer pool (all the way from 16MB to 4MB) Another thought, do we need additional access rights such as administrative privileges to run Shore? Sorry about all the questions. I was just thinking out loud. I hope you can make some sense out of this. Thank you. Sohum From owner-shore-users@cs.wisc.edu Wed Sep 25 12:17:05 2002 Received: (from majordom@localhost) by jeeves.cs.wisc.edu (8.9.2/8.9.2) id MAA13840; Wed, 25 Sep 2002 12:17:05 -0500 (CDT) X-Authentication-Warning: jeeves.cs.wisc.edu: majordom set sender to owner-shore-users@cs.wisc.edu using -f Received: from orca.cs.wisc.edu (orca.cs.wisc.edu [128.105.165.26]) by jeeves.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id MAA13837 for ; Wed, 25 Sep 2002 12:17:05 -0500 (CDT) Received: from cs.wisc.edu (localhost [127.0.0.1]) by orca.cs.wisc.edu (8.9.2/8.9.2) with ESMTP id MAA07218; Wed, 25 Sep 2002 12:17:03 -0500 (CDT) Message-Id: <200209251717.MAA07218@orca.cs.wisc.edu> To: Sohum Sohoni Cc: shore-users@cs.wisc.edu Subject: Re: shore on alpha From: Bolo In-reply-to: Sohum Sohoni's message of Tue, 24 Sep 2002 23:14:35 EDT. Date: Wed, 25 Sep 2002 12:17:03 -0500 Sender: owner-shore-users@cs.wisc.edu Precedence: list > > Is something stepping on the memory of device_name so that when > > create_vol time rolls around the device_name is no longer > > valid? > I don't know if it's being overwritten. Will check it out depending on > what you have to say about the error message below. The diskrw errors are to be expected. I just added a note about them to the README.2 documentation as a result of your question. Briefly, the Digital Unix shared memory semantics are a little different from traditional System V shared memory semantics. That error pops out when the system terminates abnormally instead of shutting down. Not a problem. > Another thought, do we need additional access rights such as > administrative privileges to run Shore? No. Bolo