Skip to content

Conversation

@jjhursey
Copy link
Member

 - This prevents us for accidentally masking a signal that was meant to
   terminate the application.

Signed-off-by: Joshua Hursey <[email protected]>
(cherry picked from commit f8918e3)
Signed-off-by: Joshua Hursey <[email protected]>
 - New MCA option: opal_stacktrace_output
   - Specifies where the stack trace output stream goes.
   - Accepts: none, stdout, stderr, file[:filename]
   - Default filename 'stacktrace'
     - Filename will be `stacktrace.PID`, or if VPID is available,
       then the filename will be `stacktrace.VPID.PID`
 - Update util/stacktrace to allow for different output avenues
   including files. Previously this was hardcoded to 'stderr'.
 - Since opal_backtrace_print needs to be signal safe, passing it a
   FILE object that actually represents a file stream is difficult. This
   is because we cannot open the file in the signal handler using
   `fopen` (not safe), but have to use `open` (safe). Additionally, we
   cannot use `fdopen` to convert the `int fd` to a `FILE *fh` since it
   is also not signal safe.
   - I did not want to break the backtrace.h API so I introduced a new
     rule (documented in `backtrace.c`) that if the `FILE *file`
     argument is `NULL` then look for the `opal_stacktrace_output_fileno`
     variable to tell you which file descriptor to use for output.

Signed-off-by: Joshua Hursey <[email protected]>
(cherry picked from commit 6d98559)
Signed-off-by: Joshua Hursey <[email protected]>
@jjhursey
Copy link
Member Author

bot:lanl:retest

@jsquyres jsquyres changed the title opal/stacktrace improvements v2.x: opal/stacktrace improvements Jan 26, 2017
Copy link
Member

@hjelmn hjelmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hjelmn
Copy link
Member

hjelmn commented Jan 27, 2017

:bot:lanl:retest

@jjhursey
Copy link
Member Author

bot:lanl:retest

@hppritcha
Copy link
Member

disable dlopen problem may be fixed
bot:lanl:retest

Copy link
Member

@gpaulsen gpaulsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great new feature.

@hppritcha hppritcha merged commit 938e12c into open-mpi:v2.x Feb 6, 2017
@jjhursey jjhursey deleted the topic/ibm/v2.x/stacktrace-improv branch February 6, 2017 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants