ubsan and log_path?

Quick question...

asan/msan/tsan all call __sanitizer_set_report_path(common_flags()->log_path), but ubsan does not (which, in practice, seems to mean that you can't redirect the ubsan output anywhere but to the default logging path of stderr). Is there any reason why this can't happen, or it would be a bad idea?

Thanks again,
Hal

Hi Hal,

From: "Alexey Samsonov" <samsonov@google.com>
To: "Hal Finkel" <hfinkel@anl.gov>
Cc: "LLVM Dev" <llvmdev@cs.uiuc.edu>, "Evgeniy Stepanov" <eugeni.stepanov@gmail.com>
Sent: Sunday, April 12, 2015 11:30:46 PM
Subject: Re: ubsan and log_path?

Hi Hal,

Quick question...

asan/msan/tsan all call
__sanitizer_set_report_path(common_flags()->log_path), but ubsan
does not (which, in practice, seems to mean that you can't redirect
the ubsan output anywhere but to the default logging path of
stderr). Is there any reason why this can't happen, or it would be a
bad idea?

No. I think this is just not implemented for UBSan. Feel free to mail
a patch, or open a bug against me.

http://reviews.llvm.org/D9006

Thanks!

-Hal