Operating System - HP-UX
1833983 Members
1730 Online
110063 Solutions
New Discussion

lpstat error (Memory fault)

 
Mauro Gatti
Valued Contributor

lpstat error (Memory fault)

When i try to run this command:

lpstat -o it_4si

i get this error:

Memory fault

The command exits with exit code 139.

Do You know what is the problem?

Thank You
Ubi maior, minor cessat!
18 REPLIES 18
harry d brown jr
Honored Contributor

Re: lpstat error (Memory fault)


What OS level are you running?

Is your machine up-to-date with patches?

What are your kernel parameters for maxdsiz set to?

live free or die
harry
Live Free or Die
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

Look for a core file

If found then

file core

Show the result.

Also OS you are using and last spooler patch.

Does lpstat -t work.


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Devbinder Singh Marway
Valued Contributor

Re: lpstat error (Memory fault)

Has this error just started to occurr recently if so what has changed?
What patch set are installed on your server ?
Is a core file generated when you get a memory fault ?
Does this command work on any other printers you have on your system ?
Does any lpstat command work ?
DO you have any processes , hogging up your system ?

just a few suggestions

laters
Seek and you shall find
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

HP-UX rimilx9 B.10.20 U 9000/898 666623332 unlimited-user license

lpstat -t works fine

lpstat -o hangs with all printers

maxdsiz is not set

There isn't any core file

s700_800 10.20 lpspool subsystem cumulative patch 020306 PHCO_25109
Ubi maior, minor cessat!
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

swlist -l fileset -a state|grep -v "#"|grep -v configured

Should give no output. does it.

maxdsiz must be set

use sysdef to check

also

uname -a please


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: lpstat error (Memory fault)

maxdsiz should be set to something.

grep -i maxdsiz /stand/system

live free or die
harry

Live Free or Die
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

I've yet looked in /stand/system but there isn't maxdsize...


6342 root@rimilx9!/ $ grep -i maxdsiz /stand/system
6343 root@rimilx9!/ $
Ubi maior, minor cessat!
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

6345 root@rimilx9!/ $ swlist -l fileset -a state|grep -v "#"|grep -v configur>

6346 root@rimilx9!/ $


sysdef returns:
maxdsiz 16384 - 256-655360 Pages -


6347 root@rimilx9!/ $ uname -a
HP-UX rimilx9 B.10.20 U 9000/898 666623332 unlimited-user license
Ubi maior, minor cessat!
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

139 still indicates a coredump

1)Is this the only printer that gives a problem.

2)Is there any message in /var/adm/syslog/syslog.log when you do the -o

3)find / -name core

Does it find one anywhere

If so file core it.

4)Please post output of lpstat -t


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

6353 root@rimilx9!/ $ lpstat -o it_4si
Memory fault
6354 root@rimilx9!/ $ find / -name core
6355 root@rimilx9!/ $


lpstat -t output in attach

Ubi maior, minor cessat!
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

your spooler is corrupt

printer hp8150_2 is idle. enabled since Apr 23 16:26
printer hp8150_2 is idle. enabled since Mar 26 12:37

File qstatus almost certainly.

Try removing and remaking this printer

remove it

lpstat -t|grep 8150_2

if nothing remake

Otherwise restore spooler


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

use

lpadmin -xprinter to remove

If you have them you can just get

pstatus qstatus from a backup if no printers have been added

Best is first remove replace.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

I've removed/replaced my double printer...
Now I've only one entry for each printer but lpstat -o returns "Memory fault" again
Ubi maior, minor cessat!
Devbinder Singh Marway
Valued Contributor

Re: lpstat error (Memory fault)

probably a long shot , have a look at your lpstat executable , how big is it ( we have hp 10.20 and size is 49152). If you have another system , try copying the lpstat executable or restoring from old backup.

laters
Seek and you shall find
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi


i would suggest also remaking the bad printer since this works for otherones.

Or
find /var/spool -name goodprinter -follow|xargs ll -d

find /var/spool -name badprinter -follow|xargs ll -d

make sure permissions agree.

Also check these permissions

ll /usr/bin/lp*
-r-sr-xr-x 1 root bin 45099 Aug 9 2001 /usr/bin/lp
-r-sr-xr-x 1 root bin 36910 Aug 9 2001 /usr/bin/lpalt
-r-xr-xr-x 1 bin bin 621 May 30 1996 /usr/bin/lpr
-r-sr-xr-x 1 lp bin 49199 Aug 9 2001 /usr/bin/lpstat


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Mauro Gatti
Valued Contributor

Re: lpstat error (Memory fault)

these are my files:

6456 root@rimilx9!/ $ ll /usr/bin/lp*
-r-sr-xr-x 1 root bin 45056 Nov 2 2001 /usr/bin/lp
-r-sr-xr-x 1 root bin 36864 Nov 2 2001 /usr/bin/lpalt
-r-xr-xr-x 1 bin bin 621 May 30 1996 /usr/bin/lpr
-r-sr-xr-x 1 lp bin 49152 Nov 2 2001 /usr/bin/lpstat
6457 root@rimilx9!/ $

Do U think they are corrupt?
Ubi maior, minor cessat!
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

Those look fine

What about the find on the printer files.


Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: lpstat error (Memory fault)

Hi

Do not see a problem so try the shell patches

get and load

PHCO_22536
PHCO_20018

Then reload

PHCO_25109


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)