|
From: | hjl.tools at gmail dot com |
Subject: | [Bug gold/17896] Plugin_manager::release_input_file leaks file descriptors |
Date: | Wed, 28 Jan 2015 19:13:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17896 --- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Cary Coutant from comment #5) > (In reply to H.J. Lu from comment #4) > > With this patch: > > > > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02508.html > > > > Plugin_manager::release_input_file may be called from the claim_file hook. > > It isn't prepared to deal with it. > > get_input_file is meant to be called only from the all_symbols_read handler, > and release_input_file only on a handle obtained from get_input_file. GCC plugin doesn't use get_input_file. Input file is done when the claim_file hook returns. That is why I call release_input_file in claim_file hook. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |