[ ssic-linux-Bugs-1768752 ] onclass initnode segv if run localview

"SourceForge.net" <[email protected]>
Newsgroups gmane.linux.cluster.ssic.devel
Message-ID <[email protected]>
Bugs item #1768752, was opened at 2007-08-06 20:42
Message generated for change (Comment added) made by hughesj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1768752&group_id=32541

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Booting / init
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: John Hughes (hughesj)
Assigned to: Nobody/Anonymous (nobody)
Summary: onclass initnode segv if run localview

Initial Comment:
$ where_pid 1
1
$ onnode -l 2 onclass initnode pwd
Segmentation fault

It's crashing 'cos it can't open /proc/1/where 'cos it's being run "localview".

Should set "defaultview".


----------------------------------------------------------------------

>Comment By: John Hughes (hughesj)
Date: 2007-08-07 12:36

Message:
Logged In: YES 
user_id=166336
Originator: YES

Segv was 'cos code thought fopen returned -1 on failure.  Fixed.  Also set
localview to defaultview before checking /proc/1/where.

----------------------------------------------------------------------

Comment By: Roger Tsang (rogertsang)
Date: 2007-08-07 01:05

Message:
Logged In: YES 
user_id=1246761
Originator: NO

Is this a matter of semantics?  `onnode -l 2` with argument "-l"
explicitly demands "localview".  `onnode 2 onclass initnode pwd` works as
expected but doing `onclass` within `onnode` seems rather convoluted.  It
would be less confusing to reduce the command to `onclass initnode pwd` or
work with the contents of /cluster/initnode.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=1768752&group_id=32541

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.