Re: [ ssic-linux-Bugs-1768752 ] onclass initnode segv if run localview
John Hughes <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
SourceForge.net wrote:
> 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".
>
> 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.
>
I was just giving an (admittedly contrived way to reproduce the bug -
1. onclass handles failure to open /proc/1/where badly ('cos it thinks
that fopen returns < 0 on failure)
2. If onclass is run in localview on a node other than the initnode it
can't open /proc/1/where.
Patch follows soonest.
-------------------------------------------------------------------------
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/