diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-02 00:54:15 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-02 00:54:15 +0000 |
commit | ea2b9a4f6f451ec1e80533a7f12b50ac5b56a7a4 (patch) | |
tree | d37998f4cbceacc74d2de058a6ad5c59557e4f02 /boehm-gc/PCR-Makefile | |
parent | 79f1f232fbc86a1e261168d5b83ae2abedd9d27d (diff) | |
download | gcc-ea2b9a4f6f451ec1e80533a7f12b50ac5b56a7a4.tar.gz |
PR other/61895
runtime: Ignore small argv[0] file for backtrace.
Reportedly in some cases Docker starts processes with argv[0]
pointing to an empty file. That would cause libgo to pass
that empty file to libbacktrace, which would then fail to do
any backtraces. Everything should work fine if libbacktrace
falls back to /proc/self/exe.
This patch to libgo works around the problem by ignoring
argv[0] if it is a small file, or if stat fails. This is not
a perfect fix but it's an unusual problem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213513 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/PCR-Makefile')
0 files changed, 0 insertions, 0 deletions