Re: Segmentation fault with latest git (070c57df)
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Feb 4, 2013, 18:34 UTC
- Message-ID
- <20130204183437.GA15552@google.com>
- In-Reply-To
- <7vboc03u3e.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> The only case that worries me is when make or cc gets interrupted. > As long as make removes the ultimate target *.o in such a case, it > is fine to leave a half-written .depend/foo.o.d (or getting it > removed) behind.
gcc removes the target .o in its signal handler in such a case. In cases where it doesn't get a chance to (e.g., sudden power failure), there is a partially written .o file already in place, the linker produces errors, and the operator is convinced to run "make clean", all without .depend's help.