[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25993] Bug in bfd causes crashes with DXVK
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/25993] Bug in bfd causes crashes with DXVK |
Date: |
Thu, 21 May 2020 14:11:50 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25993
--- Comment #13 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0490dd41ae89e66efd8b3cee122c189a481269de
commit 0490dd41ae89e66efd8b3cee122c189a481269de
Author: Alan Modra <address@hidden>
Date: Thu May 21 23:34:58 2020 +0930
Re: PR25993, read of freed memory
git commit 7b958a48e132 put the bfd filename in the bfd objalloc
memory. That means the filename is freed by _bfd_free_cached_info.
Which is called by _bfd_compute_and_write_armap to tidy up symbol
tables after they are done with.
Unfortunately, _bfd_write_archive_contents wants to seek and read from
archive elements after that point, and if the number of elements
exceeds max_open_files in cache.c then some of those elements will
have their files closed. To reopen, you need the filename.
PR 25993
* opncls.c (_bfd_free_cached_info): Keep a copy of the bfd
filename.
(_bfd_delete_bfd): Free the copy.
(_bfd_new_bfd): Free nbfd->memory on error.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, (continued)
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, amodra at gmail dot com, 2020/05/15
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, nickc at redhat dot com, 2020/05/15
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, wgpierce17 at gmail dot com, 2020/05/16
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, amodra at gmail dot com, 2020/05/16
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, amodra at gmail dot com, 2020/05/17
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, cvs-commit at gcc dot gnu.org, 2020/05/18
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, nickc at redhat dot com, 2020/05/18
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, cvs-commit at gcc dot gnu.org, 2020/05/19
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, amodra at gmail dot com, 2020/05/19
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, wgpierce17 at gmail dot com, 2020/05/20
- [Bug ld/25993] Bug in bfd causes crashes with DXVK,
cvs-commit at gcc dot gnu.org <=
- [Bug ld/25993] Bug in bfd causes crashes with DXVK, wgpierce17 at gmail dot com, 2020/05/28