1748152 Members
3431 Online
108758 Solutions
New Discussion юеВ

Re: Printing

 
J├дger Helmut_1
Occasional Advisor

Printing

I have severe problems with printing:
Version: Compaq Tru64 UNIX V5.1B (Rev. 2650); Fri Nov 4 10:49:47 CET 2005
Patches:
- T64V51BB25AS0004-20040616 IOS540
- T64V51BB25AS0004-20040616 OSF540
- T64V51BB26AS0005-20050502 IOS540
- T64V51BB26AS0005-20050502 OSF540
When I try to print some files with "lp" or "lpr" then I will get the following error:
Memory fault
And no print is done!!!

Any help would be accepted with pleasure!!

Helmut Jaeger
12 REPLIES 12
Ivan Ferreira
Honored Contributor

Re: Printing

What is the output of lpc stat?

Is the lpd daemon running?

Check your filesystem space.

Verify the cksum of these files, I will post the files in mys 5.1b pk5 chksum:

960818503 191728 /usr/lbin/lpd
960818503 191728 /usr/lbin/lpd
960818503 191728 /usr/lbin/lpd
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: Printing

Run this also:

/usr/lbin/fverify -n < /usr/.smdb./OSFPAT02606900540.inv
/usr/lbin/fverify877758 (0) begin logging at Fri Nov 4 07:48:27 2005

0 verification errors encountered.
0 corrections performed.
/usr/lbin/fverify877758 end logging at Fri Nov 4 07:48:27 2005

No errors should be reported.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
J├дger Helmut_1
Occasional Advisor

Re: Printing

In attached file you can see my results.
I'm surprised, because the verify says, that no files for lpd, lpc, .... are not existing, but they are real existing. So I'm worrying in this case!!

What to do?

Kind regards
Ivan Ferreira
Honored Contributor

Re: Printing

I forgot to methion that before running fverify, you need to do:

cd /

Have you verified the cksum for the files also?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
J├дger Helmut_1
Occasional Advisor

Re: Printing

Now I did the verify from / and no errors were reported.
I also have the same chksum with /usr/libin/lpd!
J├дger Helmut_1
Occasional Advisor

Re: Printing

I found this:
http://ftp.support.compaq.com.au/pub/patches/Digital_UNIX/v4.0d/DIGITAL_UNIX_V4.0D/doc/txt/OSFPAT00118800425.abs

But I think, this is for Unix 4.0x, but the same message and errors!!!
Ivan Ferreira
Honored Contributor

Re: Printing

Is this the only problem related to memory. Any other application/command with the same issue?

Does the dia command reports any errors?

I saw problems like this (in other linux version) that was solved by running fsck, in this case, verify.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Johan Brusche
Honored Contributor

Re: Printing


A "Memory fault" is not a HW error, but caused by a program trying to access memory that is NOT allocated to itself.

A "Memory fault" normally leaves a core-file
behind in the cwd. One can examine this core with : ladebug /usr/bin/lpr core.
Then the 't' or 'where' command shows the program stack.

Maybe /etc/printcap got scrambled . You can check for errors in the file and the associated print environment with the command "lpc check all"

You could then post the results....

Rgds,
__ Johan ./

_JB_
Ivan Ferreira
Honored Contributor

Re: Printing

Agree, you can use cat -e /etc/printcap to check for non printable characters. You can also copy that file and start with a basic printcap file with just one printer to see if the problem persists.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?