getting "mi_cmd_var_create: unable to create variable object" error msg


 
Thread Tools Search this Thread
Top Forums Programming getting "mi_cmd_var_create: unable to create variable object" error msg
# 8  
Old 08-14-2008
spos is getting some large number at the initialisation line(int spos=0) itself..How do this occur?How can i avoid this?
# 9  
Old 08-14-2008
Are you sure? It's getting assigned a value one or two less than top a few lines later, and it's not at all clear where the value of top is coming from.
# 10  
Old 08-14-2008
Post the definition of the stack_rec structure...what is its size?
What platform are you on and what are the ulimits for stack and data?
# 11  
Old 08-15-2008
As an aside, proper architecting would dictate that you should write and debug a separate stack abstraction and access it only through a well-defined interface, rather than inline nitty-gritty stack handling into the main application logic. In the several days you have been struggling with this problem, I'm guessing you could have ripped out the stack operations and replaced them with a standard stack implementation (I hear the BOOST library has stuff like that for you).
# 12  
Old 08-18-2008
Definition of stack_rec:

struct stack_rec {
int word_cat;
int phrase;
char word[60];
char mal[60];
char E_attr[60];
char H_attr[10];
char semantic_tag[60];
char connectors[3][16];
int cntrs_cnt;
int resolved;
int adj;
int adj_count;
};
allocated size 100 ..working in C. ulimit for stack is 10240
# 13  
Old 08-18-2008
Can you add debugging printf statements to the code to see the value of top when the problematic function is entered, and perhaps elsewhere in the code where this value is modified?
# 14  
Old 08-18-2008
On my system size of the stack_rec structure is 324 bytes...not sure where you are getting an allocated size of 100 and stack size of 10240 I'm assuming it's in kilobytes??
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 error "-sh: /tmp/outfile: cannot create"

Hello, Each time a user log on to host, they receive below error: -sh: /tmp/outfile: cannot create Example: $ ssh host user@host's password: Last login: Fri Dec 4 08:17:28 2015 from client.ref |-----------------------------------------------------------------| -sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies

2. Solaris

ZFS flash install "Unable to create Filesystem error"

Hi, I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server. I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11. I use a sparc U25 install server, upgraded to the same solaris build 10 1/13. This server is configured to install... (8 Replies)
Discussion started by: sc0rpie
8 Replies

3. Shell Programming and Scripting

Unable to store "python --version" to a shell variable

Hi All, I need to get the version of python installed and store it in a variable for later use. Whereas it is printing on the console instead of storing to variable. I am able to store output of ls command in a variable. Please check the below code : root@myhost:/volumes/srini# cat... (4 Replies)
Discussion started by: srinivasan.neel
4 Replies

4. Solaris

Netra X1 LOM: Unable to change any variable via the "set" command

I'm posting here as it didn't seem quite right in the hardware section (as it's LOM commands). My apologies if I have that wrong though :) I've finally gotten round to configuring the LOM on my Netra X1, but I can't get it to change the hostname via the "set" command: lom>show hostname... (2 Replies)
Discussion started by: Smiling Dragon
2 Replies

5. Shell Programming and Scripting

Unable to store "-e" in variable ??????

p="-e" echo $p It is not returning the value "-e" stored. Instead returns null. I am wondering how could this happen. Please help me out.I tried all possibilities like p='-e' | p="\-e". Nothing seems to work. :confused::confused: (10 Replies)
Discussion started by: shanneykar
10 Replies

6. Shell Programming and Scripting

Can't locate object method "fetchrow_array" Error

Hi, I have a perl script which is interacting with Database. I have following line of code : ================================================= sub BEGIN { #use Getopt::Std; #getopt ('S'); #($STEAP)=($opt_S); use lib ("/home/perl_lib"); use... (1 Reply)
Discussion started by: rawat_me01
1 Replies

7. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies

8. Programming

dbx error ("Executable contains object file compiled on ...")

Hi, We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them: Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies

9. UNIX for Dummies Questions & Answers

Error : "No data written to object that was write locked"

Hi All, I was able to solve my previous problem (link directory)... but now i have this following problem. I have mounted a disk from other machine using "mount -F nfs" command. When i run a batch which generates some files in that drive.... after a certain number of files i get... (1 Reply)
Discussion started by: nileshkarania
1 Replies
Login or Register to Ask a Question