]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Sat, 26 Jan 2019 13:39:37 +0000 (13:39 +0000)
commitbb97a087e98697ee8dafa27ad5eb9b3d50f18387
tree683c00cc24f8e1d93ec2972d0ac1ccc82a7f97fb
parentf3b6a6e4ee41d466646866dfcd544b386cb499b9
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.

(From OE-Core rev: 78a24b3a1eae04e5f4744f320e4ccbb8bfe17b9a)

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]