there seems not to be error in this segment. In some computers, it can work well. But in others, it will give a failure.
why it ocurrs and how to deal with it?
in a function:
if( *ver == NULL ) {
*ver = (vertex *) malloc(sizeof(vertex)); //this line
... (17 Replies)
I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Hi everyone
I am developing an utility.
At some part of it I read directory entries to a dynamic array: struct list
It stores pointers to items: list.entries,
which are structures: struct entry
If a number of files in a directory is greater then number of elements an array was initially... (11 Replies)
Hi All,
I have a simple code which does some computation by matching string patterns.
In brief:
1. The code reads .dat and .txt files.
2. .dat files are huge text files and .txt files contain some important words.
3. I am just doing strstr to find the patterns.
4. The function returns the... (3 Replies)
*** glibc detected *** ./a.out: malloc(): memory corruption (fast):
Posted A minute ago
M trying to make multiway tree and dont know what happend when this part of code get executed:
01void ins(NODE *ptr)
02{
03 //working
04 if(ptr!=NULL)
05 {
06 SNODE *var=NULL;
07 var=(SNODE... (3 Replies)
I am facing a problem of memory corruption. The loop runs for the first time but does not go through the second time. What could be the problem?
for(int z=0;z<2;z++)
{
fp=fopen("poly.dat","r");
/*do something which reads this file into a 2D array*/
fclose(fp);
... (10 Replies)
I am having a problem with shared memory corruption. I have two 86 servers running Solaris 10 (150400-06). One of the servers is accessed by a Sun Ray thin client Version 11.1.3.0.2.6. I login into server one from the thin client. I then ssh -X to server two. When a process that contains a... (2 Replies)
I put together a C function to add strings to a dynamic array of strings (mostly for educational purpose to explain pointers to my kid). It works, but sometimes one or two strings in the array becomes corrupted. Running example on 64 bit Ubuntu, gcc ver. 4.8.4
Hope my code is self-explanatory:
... (2 Replies)
Hi,
I was wondering if any Solaris fellow out there has dealt with running Solaris 11 x86 on Local Zones for Oracle RAC (which may or may not be relevant to issue), running on HP gen h/w. Every so often could be weeks between issues or some times days, there will be a memory corruption and db... (2 Replies)
Discussion started by: crossmypath
2 Replies
LEARN ABOUT HPUX
vxconfigbackup
vxconfigbackup(1M)vxconfigbackup(1M)NAME
vxconfigbackup - back up disk group configuration
SYNOPSIS
/etc/vx/bin/vxconfigbackup [-l directory] [[dgname ...] | [dgid ...]]
DESCRIPTION
The vxconfigbackup utility can be used to backup up the configuration information for one or more disk groups. The disk groups may be
specified either by name or by ID. If no disk groups are specified, all disk group configurations are backed up.
OPTIONS -l directory
Specifies a directory other than the default where the backup configuration files are to be written.
Note: The default backup directory is /etc/vx/cbr/bk.
EXAMPLES
Back up the configuration of the mydg disk group to the directory /dgbackup/mydg:
vxconfigbackup -l /dgbackup/mydg mydg
FILES
/etc/vx/cbr/bk/dgname.dgid/dgid.dginfo
Default location of backup file for disk group information.
/etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo
Default location of backup file for disk attributes.
/etc/vx/cbr/bk/dgname.dgid/dgid.binconfig
Default location of backup file for binary configuration copy.
/etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec
Default location of backup file for configuration records in vxprint -m format.
NOTES
The vxconfigbackupd daemon automatically backs up a disk group's new configuration to the default backup directory whenever the configura-
tion is changed. The vxconfigbackup command is provided to back up the configuration manually at any other desired time.
The disk group configuration backup and restore utilities do not save any data in the public region. This includes file system or other
application data that is configured within VxVM objects.
SEE ALSO vxconfigbackupd(1M), vxconfigrestore(1M)VxVM 5.0.31.1 24 Mar 2008 vxconfigbackup(1M)