1830207 Members
4419 Online
109999 Solutions
New Discussion

Memory fault

 
John Booth_1
Advisor

Memory fault

I am going through and clening up some of my logs. When I goto the samlog and more samlog to scan through it. I get to about 10% and I get a Memory fault and it stops. I cal vi the log and cat but more gives me memory faults, only on this log. Any suggestions.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Memory fault

Hi John:

I'd be interested if you can 'cat' or 'vi' in the region of the file where 'more' faults. You could have a corrupt file and could trim it to a null size:

# cat /dev/null > /var/sam/log/samlog

...JRF...
Mark van Hassel
Respected Contributor

Re: Memory fault

Hi John,

I noticed this "bug" just after HPUX 11 came out. Apparently the more command fails with an memory fault when it reads a particular character or set of characters. On 32 bits it just fails and on 64 bits it dumps core.

I have raised an issue with HP some years ago but it was never fixed.

Regards,
MvH
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Vincenzo Restuccia
Honored Contributor

Re: Memory fault

# > /var/sam/log/samlog