mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Never zero-out db_last_symtab. Whan backtraces are done
in parallel in several threads, one symbol lookup could clear db_last_symtab when another one going to use it as starting point for traversal. Approved by: pjd (mentor) MFC after: 1 month
This commit is contained in:
parent
259c768857
commit
d48b6d9ad6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159668
@ -230,7 +230,6 @@ db_search_symbol( val, strategy, offp)
|
||||
c_db_sym_t ret = C_DB_SYM_NULL, sym;
|
||||
|
||||
newdiff = diff = ~0;
|
||||
db_last_symtab = 0;
|
||||
for (i = 0; i < db_nsymtab; i++) {
|
||||
sym = X_db_search_symbol(&db_symtabs[i], val, strategy, &newdiff);
|
||||
if (newdiff < diff) {
|
||||
|
Loading…
Reference in New Issue
Block a user