#146 onclass initnode segv if run localview

closed-fixed
nobody
5
2008-10-21
2007-08-06
John Hughes
No

$ 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".

Discussion

  • Roger Tsang

    Roger Tsang - 2007-08-06

    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.

     
  • John Hughes

    John Hughes - 2007-08-07
    • status: open --> closed
     
  • John Hughes

    John Hughes - 2007-08-07

    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.

     
  • John Hughes

    John Hughes - 2008-10-21
    • status: closed --> closed-fixed
     

Log in to post a comment.