[Orca-users] running problems ...

Cockcroft, Adrian acockcroft at ebay.com
Wed Jul 13 16:38:40 PDT 2005


I'm sure I fixed this type of problem years ago in the iostat_class
code, but for some reason someone re-implemented the code in orcollator
itself and didn't make it robust enough. The problem occurs because the
operating system says it has a number of disks, and the code allocates
enough space for that many disks, then when more disks return iostat
records (including partitions) the code dies with this error.

 

I don't have the latest orca code running, but someone in the
development team should implement a simple fix.The code looks something
like this and uses a cool SE language feature that lets you realloc a
data structure to be bigger or smaller using the renew keyword.

 

If (subscript >= sizeof(RAW_disk)) renew RAW_DISK[sizeof(RAW_disk)+20];

 

That's from memory, but look at the network_class and iostat_class code
to see examples.

 

The workaround is to use se -DMAX_DISK=<a large number> orcallator.se
until it stops crashing. Starting at greater than 1024

 

HTH Adrian

 

  _____  

From: orca-users-bounces+acockcroft=ebay.com at orcaware.com
[mailto:orca-users-bounces+acockcroft=ebay.com at orcaware.com] On Behalf
Of Peter Ryall
Sent: Wednesday, July 13, 2005 4:24 PM
To: orca-users at orcaware.com
Subject: [Orca-users] running problems ...

 

 

hello again all,

i have (finally) installed orca on a bunch of machines - all
the same.  however on ONE of my boxen, the orcallator process
(started with 'start_orcallator') dies after running for a
while, and leaves the following message in /nohup.out.

Fatal: subscript: 1024 out of range for: RAW_disk[1024]: Near line 787

does anyone know what the heck's going on?

regards,

peter ryall.
---------------------------------------------------------------------
  ,-_|\   Peter RYALL, System Engineer
 /     \  BusinessLink          Email: peter.ryall at bizlink.nsw.gov.au
 \_,-\_*  13-15 Moore St.,      Phone: +61 2 9765 3265
      v   Liverpool             Fax  : +61 2 9765 3399
          N.S.W. 2170 Australia Mobile:+61 414 610 108
---------------------------------------------------------------------


------------------------------------------------------------------------
--
Security Statement

The information contained in this electronic mail message is
privileged and confidential, and is intended only for use of
the addressee. If you are not the intended recipient, you are
hereby notified that any disclosure, reproduction, distribution
or other use of this communication is strictly prohibited.
Confidentiality and legal privilege attached to this communication
are not waived or lost by reason of mistaken delivery to you.
If you have received this communication in error, please notify
the sender by reply transmission and delete the message without
copying or disclosing it.

Disclaimer

Any views expressed in this communication are those of the
individual sender, except where the sender specifically states them
to be the view of NSW Businesslink Pty. Ltd. Except as required by
law, NSW Businesslink Pty. Ltd. does not represent, warrant and/or
guarantee that the integrity of this communication has been
maintained nor that the communication is free of errors, virus,
interception, inference or interference.
------------------------------------------------------------------------
--

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20050713/20cc4996/attachment.html>


More information about the Orca-users mailing list