Is it possible to convert the "Foreword" to a topic?
Is /usr/ucb/ps unstable on solaris 8 ?
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• RYXI
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

RYXI > Solaris > Is /usr/ucb/ps unstable on solaris 8 ? 28 January 2008 11:57:42

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Is /usr/ucb/ps unstable on solaris 8 ?

Guest 28 January 2008 11:57:42
 I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps! Here is a stack
trace:

ffffffff7f60b334 _elf_lookup_filtee (ffffffff7fff4390,
ffffffff7fff44b0, ffffffff7fff44ac, 4, ffffffff7fff44ac,
ffffffff7fff44b0) + 8
ffffffff7f60bcd8 elf_lookup_filtee (ffffffff7f72e2b0, 1,
ffffffff7fff44ac, 4, 6c6f6300, 6c6f6300) + 94
ffffffff7f60c0e4 elf_find_sym (2401, 0, ffffffff7f501618,
ffffffff7fff4390, ffffffff7fff44ac, ffffffff7f0109fa) + 36c
ffffffff7f609038 _lookup_sym (0, ffffffff7fff44ac, ffffffff7fff44b0,
ffffffff7fff44ac, 10, ffffffff7f501618) + 8c
ffffffff7f609360 lookup_sym (ffffffff7fff4390, ffffffff7fff44ac,
ffffffff7f0109f9, ffffffff7fff44b0, ffffffff7fff44b8, 0) + 268
ffffffff7f620418 elf_bndr (a80, ffffffff7f024798, ffffffff7f05c22c,
ffffffff7f501618, ffffffff7f72e930, ffffffff7ee005c8) + 164
ffffffff7f6054f4 elf_rtbndr (2a0000, ffffffff7f1b7fb8,
ffffffffffffffff, ffffffff7f05c22c, ffffffff7f0b3433, 0) + 18
ffffffff7f041e74 getenv (1, 40, 0, ffffffff7f0b3430,
ffffffff7ffff71f, ffffffff7fff7c30) + 68
ffffffff7f05c22c _tzload (ffffffff7f1c3950, ffffffff7ffff71f,
ffffffff7ffff71f, ffffffff7f1b6f60, ffffffff7ffff71f, 0) + 38
ffffffff7f05ac94 _ltzset_u (ffffffff7f1c3950, ffffffff7f1b6f60,
ffffffff7f03e59c, ffffffff7f501618, ffffffff7f72e930,
ffffffff7f1bed60) + 1dc
ffffffff7f059eb0 localtime_u (ffffffff7fff6ed8, ffffffff7fff6ddc,
1000053f4, ffffffff7fff6ed8, ffffffff7f1b6f60, ffffffff7ee005c8) + 18
ffffffff7f05a0c8 localtime_r (ffffffff7fff6ed8, ffffffff7fff6ddc, 0,
1000053f4, 0, 0) + 24
ffffffff7f03e59c cftime (ffffffff7fff6ebc, 1001076e8,
ffffffff7fff6ed8, 0, 0, 0) + 8
00000001000053f4 ???????? (100107600, 477d73f7, ffffffff7f1c4c90,
7efefeff, 81010100, ff00)
0000000100004f38 ???????? (100107778, 100107c7c, 100107c80,
1003ef750, 1003ef5a0, 1001076d0)
0000000100002c34 main (0, 1001c7170, 1170, ffffffff7fff7272,
1003cbff0, 400) + ff8
0000000100001b8c _start (0, 0, 0, 0, 0, 0) + ec

Is this a known problem? I really don't know what to do here. I
thought the unix commands have been stable for decades!

I notice its calling getenv from localtime_r. So just in case its
relevant I will say that the value for TZ is 'GB-Eire'.

Yours puzzled,

Andrew Marlow
Add comment
Rich Teer 21 January 2008 20:32:23 permanent link ]
 On Mon, 21 Jan 2008, apm35@student.open.­ac.uk wrote:

I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps! Here is a stack
trace:

Not sure what the problem you're seeing is, but I'd steer clear of
stuff in /usr/ucb if I were you. Those commands and interfaces are
historical and you should be using their more modern equivelents in
/usr/bin. Does doing that fix your problem?

--
Rich Teer, SCSA, SCNA, SCSECA, OGB member

CEO,
My Online Home Inventory

URLs: http://www.rite-gro­up.com/rich
http://www.linkedin­.com/in/richteer
http://www.myonline­homeinventory.com
Add comment
Guest 22 January 2008 12:09:09 permanent link ]
 On 21 Jan, 16:32, Rich Teer <rich.t...@rite-gro­up.com> wrote:
On Mon, 21 Jan 2008, ap...@student.open.­ac.uk wrote:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps! Here is a stack
trace:
Not sure what the problem you're seeing is, but I'd steer clear of
stuff in /usr/ucb if I were you. Those commands and interfaces are
historical and you should be using their more modern equivelents in
/usr/bin. Does doing that fix your problem?

No. The reason I am using the BSD ps is because it gives me access to
the complete command line. The stuff I am grep'ing for is an
invocation of the JVM. Such command lines are extremely long due to
the classpath argument and numerous java property settings. System V
ps returns truncated output in these cases.

-Andrew Marlow
Add comment
Guest 22 January 2008 12:12:37 permanent link ]
 On 21 Jan, 17:26, Doug McIntyre <mer...@geeks.org> wrote:
ap...@student.open.­ac.uk writes:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps!

I've run /usr/ucb/ps on Solaris 8 probably thousands of times in my
lifetime on dozens if not hundreds of machines. Its never core dumped
on me before.

Lucky you.

BSD ps is just one of those things I never could get
away from using. Especially now with being on more FreeBSD and Darwin
systems than Solaris.

This is not a matter of personal taste for me. My taste happens to be
for System V but in this case the BSD command is forced upon me. It is
the only way I know of to get the complete command. System V ps tends
to truncate long lines. And the lines I am after are long because they
are JVM invocations with long classpath settings and numerous java
properties.

I notice its calling getenv from localtime_r. So just in case its
relevant I will say that the value for TZ is 'GB-Eire'.
It could be the environment.

Er, I suppose it could. Can you be more specific? What did you have in
mind?

Or the charset?

an you explain what you mean please.

I never had any problems
in the US with the TZ or charset used here.

Lucky you.

-Andrew Marlow
Add comment
Guest 23 January 2008 12:06:26 permanent link ]
 On 22 Jan, 12:01, Henry Townsend <henry.towns...@not­.here> wrote:
ap...@student.open.­ac.uk wrote:
This is not a matter of personal taste for me. My taste happens to be
for System V but in this case the BSD command is forced upon me. It is
the only way I know of to get the complete command. System V ps tends
to truncate long lines. And the lines I am after are long because they
are JVM invocations with long classpath settings and numerous java
properties.
man pargs

Well, I've learnt something new. Thanks for that. But it will be a bit
of a pain to use coz I will have to use ps to get the pids then invoke
pargs in a loop getting the args one pid at a time. But still doable
and avoids BSD ps. Cheers!

Regards,

Andrew Marlow
Add comment
Guest 23 January 2008 12:09:40 permanent link ]
 On 22 Jan, 16:45, Doug McIntyre <mer...@geeks.org> wrote:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps!
I notice its calling getenv from localtime_r. So just in case its
relevant I will say that the value for TZ is 'GB-Eire'.

There could be some weird interaction with the older not-so-maintained
program dealing with a charset other than C/POSIX.
Ie. LC_* for me has typically been set to C or en_US.ISO8859-1.
The routines dealing with parsing the data and putting out localized
locale messages might be buggy interacting with the old /usr/ucb/pc code.

Er, I suppose there could be a bug that is decades old that only bites
users that are not based in the USA. A bug in one of the most common
commands, ps, undetected for all this time. But it seems unlikely to
me. I do not rule out the possibility of bugs, which I why I started
this thread. But I was hoping for something more specific than "there
might be a bug in ps".

Regards,

Andrew Marlow


Add comment
Henry Townsend 23 January 2008 15:59:18 permanent link ]
 apm35@student.open.a­c.uk wrote:
Well, I've learnt something new. Thanks for that. But it will be a bit
of a pain to use coz I will have to use ps to get the pids then invoke
pargs in a loop getting the args one pid at a time. But still doable
and avoids BSD ps. Cheers!

You should learn to "think Solaris". There's a whole set of p-tools
which are very handy. For you, something like

pargs -a `pgrep java`

might help.

HT
Add comment
Michael Tosch 23 January 2008 18:33:01 permanent link ]
 apm35@student.open.a­c.uk wrote:
On 21 Jan, 17:26, Doug McIntyre <mer...@geeks.org> wrote:
ap...@student.open.­ac.uk writes:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps!
I've run /usr/ucb/ps on Solaris 8 probably thousands of times in my
lifetime on dozens if not hundreds of machines. Its never core dumped
on me before.
Lucky you.
BSD ps is just one of those things I never could get
away from using. Especially now with being on more FreeBSD and Darwin
systems than Solaris.
This is not a matter of personal taste for me. My taste happens to be
for System V but in this case the BSD command is forced upon me. It is
the only way I know of to get the complete command. System V ps tends
to truncate long lines. And the lines I am after are long because they
are JVM invocations with long classpath settings and numerous java
properties.
I notice its calling getenv from localtime_r. So just in case its
relevant I will say that the value for TZ is 'GB-Eire'.
It could be the environment.
Er, I suppose it could. Can you be more specific? What did you have in
mind?
Or the charset?
an you explain what you mean please.
I never had any problems
in the US with the TZ or charset used here.
Lucky you.
-Andrew Marlow

You might want to apply the ps patch 109023-07.

--
Michael Tosch @ hp : com
Add comment
Thomas Schulz 23 January 2008 19:27:18 permanent link ]
 In article <G4Odnbx8Kau5RgjanZ­2dnUVZ_v_inZ2d@comca­st.com>,
Henry Townsend <henry.townsend@not­.here> wrote:
apm35@student.open­.ac.uk wrote:
This is not a matter of personal taste for me. My taste happens to be
for System V but in this case the BSD command is forced upon me. It is
the only way I know of to get the complete command. System V ps tends
to truncate long lines. And the lines I am after are long because they
are JVM invocations with long classpath settings and numerous java
properties.
man pargs

I find pargs on Solaris 9 & 10 but not on 8.
--
Tom Schulz
schulz@adi.com
Add comment
Thomas Schulz 23 January 2008 22:32:40 permanent link ]
 In article <9a5db800-810d-4f64­-8c96-2ba458c103ee@e­10g2000prf.googlegro­ups.com>,
<apm35@student.open­.ac.uk> wrote:
On 21 Jan, 17:26, Doug McIntyre <mer...@geeks.org> wrote:
ap...@student.open.­ac.uk writes:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps!
I've run /usr/ucb/ps on Solaris 8 probably thousands of times in my
lifetime on dozens if not hundreds of machines. Its never core dumped
on me before.
Lucky you.
BSD ps is just one of those things I never could get
away from using. Especially now with being on more FreeBSD and Darwin
systems than Solaris.
This is not a matter of personal taste for me. My taste happens to be
for System V but in this case the BSD command is forced upon me. It is
the only way I know of to get the complete command. System V ps tends
to truncate long lines. And the lines I am after are long because they
are JVM invocations with long classpath settings and numerous java
properties.
I notice its calling getenv from localtime_r. So just in case its
relevant I will say that the value for TZ is 'GB-Eire'.
It could be the environment.
Er, I suppose it could. Can you be more specific? What did you have in
mind?


If you are running most any shell but csh you should be able to type:
LANG=C /usr/ucb/ps your-arguments-here­
If you are running csh then you will have to use 'setenv LANG C'


Or the charset?
an you explain what you mean please.
I never had any problems
in the US with the TZ or charset used here.
Lucky you.
-Andrew Marlow


--
Tom Schulz
schulz@adi.com
Add comment
Michael Tosch 24 January 2008 15:21:32 permanent link ]
 Thomas Schulz wrote:
...
If you are running most any shell but csh you should be able to type:
LANG=C /usr/ucb/ps your-arguments-here­
If you are running csh then you will have to use 'setenv LANG C'

or
env LANG=C /usr/ucb/ps


--
Michael Tosch @ hp : com
Add comment
Guest 28 January 2008 11:57:42 permanent link ]
 On 23 Jan, 14:33, Michael Tosch <eed...@NO.eed.SPAM­.ericsson.PLS.se>
wrote:
I am using solaris 8 and the project I am on is using /usr/ucb/ps -
gwwux to search for processes that it is supposed to be checking on.
The trouble is, every now and then ps core dumps!

You might want to apply the ps patch 109023-07.
Michael Tosch @ hp : com

That patch does not mention a fix for random core dumping. Here is the
list of problems the patch fixes:

---
6536923 T109023-06 and T109024-06 are delivering ps without SUID bit
(from 109023-06)
6491490 /usr/ucb/ps is filling /tmp with files ps.chars
(from 109023-05)
4798073 /usr/ucb/ps -e should display environment variables only for
user-owned processes
5045071 /usr/ucb/ps gxuaww only displays caller's processes
(from 109023-04)
4988595 defunct processes show the output as "0" instead of "-"
(from 109023-03)
4519180 ps shows date of Jan_01 for defunct processes when using -o
stime
476669 ps utility uses the FORBIDDEN 'cftime' instead of strftime
function
4785109 ps core dump with -o etime
(from 109023-02)
4559012 /usr/ucb/ps hangs after reboot until one is killed creating /
tmp/ps_data
----

Regards,

Andrew Marlow
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


RYXI > Solaris > Is /usr/ucb/ps unstable on solaris 8 ? 28 January 2008 11:57:42

see also:
OT (infinitely) - Touring Help Part 1
1nt takeout for 3-suited hands
пройди тесты:
see also:
converting mp3 file to midi file
Pencil and pastel portraits by this...
looking at mackie products for a good…

  Copyright © 2001—2008 RYXI
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.ryxi.com.
Сообщения об ошибках оставляем в сообществе bugs.ryxi.com.
Предложения и комментарии пишем в сообществе suggest.ryxi.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .