]> code.ossystems Code Review - openembedded-core.git/commit
ccache: Fix Segmentation fault error when gcc -o /dev/null
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 24 Jan 2019 06:57:32 +0000 (14:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 22:06:13 +0000 (22:06 +0000)
commit78a24b3a1eae04e5f4744f320e4ccbb8bfe17b9a
treec82a41157b73962d1d492ef406c4de8269c8b6e9
parentc2e17047b99a0d445dbe91b43d0744bfaa54c580
ccache: Fix Segmentation fault error when gcc -o /dev/null

Fixed:
$ export CCACHE_DEBUG=1
$ ccache gcc -c hello.c -o /dev/null

Segmentation fault (core dumped)

This is because failed to open /dev/null.foo (Permission denied), check file
stream before write to it can fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ccache/ccache_3.6.bb
meta/recipes-devtools/ccache/files/0003-Fix-Segmentation-fault-error-when-gcc-o-dev-null.patch [new file with mode: 0644]