PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

argv getting corrupt because of getenv issues


Your Ad Here

Your Ad Here

Hello,

Trying to debug a weird problem here. When I run this program many times over, at some point argc gets corrupted and I get the error that enough number of arguments are not provided. It definitely seems to have something to do with the env. variable being set and used because the previous version of this code did not have that variable and did not have this problem. I am running this on linux on a powerpc based hardware. stdlib.h is included.

My condition is that if this env variable does not exist at all or if

Here is the relevant portion of the program I am trying to debug. .

int main(int argc, char** argv) {

char* status = 0;

{ fprintf(stderr, " Not enough arguments.-n"); fflush(stderr); }

while(1) {

Loopback Encrypted Filesystem and VMWare
I just tested a VMWare virtual machine using a virtual machine stored in a loopback encrypted filesystem...

status = getenv("TIMERSTATUS"); if((status == 0) ((status != 0) && (atoi(status) != 1))) { } else {

mandrake mandriva, SuSE SUSE NOVEL
Why am I a troll? How can I be a troll? I am downloading mandriva 2006 final at this moment However.. so that you linux people will know... LINSIPRE...

}

}

In MOST cases, the program runs just fine. But after about 10-15 times of running repeatedly, i will always get the error that there are not enough arguments. If I reboot the entire board that will restart the kernel and everything, all is well once again until we get into that restarting many times scenario.

Any ideas of where I might start to debug this?

Thanks much, Vinod



Your Ad Here

List | Previous | Next

mandrake mandriva, SuSE SUSE NOVEL

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

NVidia display driver installation