Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* seggy fault with ps
@ 1992-11-17 12:19 James Bonfield
  1992-11-20  6:56 ` Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859
  0 siblings, 1 reply; 3+ messages in thread
From: James Bonfield @ 1992-11-17 12:19 UTC (permalink / raw)


Hello,
	The following program compiles and runs fine on my Decstation 5000/240
running Ultrix 4.2.

main() {
    vfork();
    pause();
}

However, from then on /bin/ps prints up the following:

$ ps
  PID TT STAT   TIME COMMAND
Segmentation fault
$

Can anyone explain this problem? Is it unique to my system, or does everyone
have this prob? (Also another problem is that sendmail gets the following
error no matter what I do, *unless* I trace it!

pid 29155 (sendmail) was killed on an unaligned access, at pc 0x40ccd8

James Bonfield (jkb@mrc-lmba.cam.ac.uk)   Tel: 0223 402499   Fax: 0223 412282
Medical Research Council Laboratory of Molecular Biology,
Hills Road, Cambridge, CB2 2QH, England.

-- 
James 'Rince' Bonfield             O    .__   ._ ~ ~    /\/ ~        /\/
jkb@mrc-lmba.cam.ac.uk              o  /o  \_/ /        \/\  /o\/    \/\   ~
rince@dcs.warwick.ac.uk               (     | (  ~ ~         \(/\            ~
csuba@csv.warwick.ac.uk                \/__/ \_\                  ~


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: seggy fault with ps
  1992-11-17 12:19 seggy fault with ps James Bonfield
@ 1992-11-20  6:56 ` Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859
  1992-11-20  9:36   ` James Bonfield
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859 @ 1992-11-20  6:56 UTC (permalink / raw)


From article <1992Nov17.121941.4889@dcs.warwick.ac.uk>, by rince@dcs.warwick.ac.uk (James Bonfield):
> Hello,
> 	The following program compiles and runs fine on my Decstation 5000/240
> running Ultrix 4.2.
> 
> main() {
>     vfork();
>     pause();
> }
> 
> However, from then on /bin/ps prints up the following:
> 
> $ ps
>   PID TT STAT   TIME COMMAND
> Segmentation fault
> $

	What compiler have you been using? Is it Ultrix 4.2 or 4.2A?

I've just tried in on all cominations of the following :-

	Ultrix 4.2A and 4.3

	cc gcc2.2.2 gcc2.3.1 

	now problems

4123 mark:alsvid> cc tst.c -o tst
4124 mark:alsvid> tst
^Z
^C4125 mark:alsvid> tst&
[1]     4333
4126 mark:alsvid> ps
  PID TT STAT   TIME COMMAND
 4333 p4 D N    0:00 tst
 4334 p4 S N    0:00 tst
 4335 p4 R      0:00 ps
 4696 p4 S      0:00 -ksh (ksh)
 2507 p7 I      0:05 vn
 4313 p7 I      0:00 sh -c /usr/ucb/vi /tmp/vna02507
 4314 p7 S      0:00 /usr/ucb/vi /tmp/vna02507
 4697 p7 I      0:00 -ksh (ksh)

	Cheers
		Mark :)
-- 
Mark Garrett	Internet:  mark@arvak.une.edu.au	Phone: 	+61 66 20 3859
   University of New England, Northern Rivers, Lismore NSW Australia.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: seggy fault with ps
  1992-11-20  6:56 ` Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859
@ 1992-11-20  9:36   ` James Bonfield
  0 siblings, 0 replies; 3+ messages in thread
From: James Bonfield @ 1992-11-20  9:36 UTC (permalink / raw)


In <By05yo.3E9@alsvid.une.edu.au> mark@alsvid.une.edu.au (Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859) writes:

> 	What compiler have you been using? Is it Ultrix 4.2 or 4.2A?
> 
> I've just tried in on all cominations of the following :-
> 
> 	Ultrix 4.2A and 4.3
> 
> 	cc gcc2.2.2 gcc2.3.1 

The following script says pretty much everything I think:

bash$ uname -a
ULTRIX rutland 4.2 0 RISC
bash$ cat > a.c
main() {vfork();pause();}
bash$ cc a.c
bash$ ./a.out &
[1] 3428
bash$ ps x
  PID TT STAT   TIME COMMAND
Segmentation fault
bash$ kill %1
[1]+  Terminated              ./a.out
bash$ c89 a.c
bash$ ./a.out &
[1] 3436
bash$ ps x
  PID TT STAT   TIME COMMAND
Segmentation fault
bash$ kill %1
[1]+  Terminated              ./a.out
bash$ type ps
ps is /bin/ps
bash$ exit

So what do the new OS's (4.2A/4.3) provide over 4.2? (Other than presumably a
fix to this bug.) We haven't got gcc on this machine - but I expect the result
would be pretty much the same.

Is there a list of patches available for the OS as on Suns?

Cheers,

James Bonfield (jkb@mrc-lmba.cam.ac.uk)   Tel: 0223 402499   Fax: 0223 412282
Medical Research Council Laboratory of Molecular Biology,
Hills Road, Cambridge, CB2 2QH, England.
-- 
James 'Rince' Bonfield             O    .__   ._ ~ ~    /\/ ~        /\/
jkb@mrc-lmba.cam.ac.uk              o  /o  \_/ /        \/\  /o\/    \/\   ~
rince@dcs.warwick.ac.uk               (     | (  ~ ~         \(/\            ~
csuba@csv.warwick.ac.uk                \/__/ \_\                  ~


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1992-11-20  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-11-17 12:19 seggy fault with ps James Bonfield
1992-11-20  6:56 ` Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859
1992-11-20  9:36   ` James Bonfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox