[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/24444] New: assembling big file with a lot of .loc views takes
From: |
jcmvbkbc at gcc dot gnu.org |
Subject: |
[Bug gas/24444] New: assembling big file with a lot of .loc views takes forever |
Date: |
Thu, 11 Apr 2019 07:18:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24444
Bug ID: 24444
Summary: assembling big file with a lot of .loc views takes
forever
Product: binutils
Version: 2.33 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: jcmvbkbc at gcc dot gnu.org
Target Milestone: ---
Created attachment 11737
--> https://sourceware.org/bugzilla/attachment.cgi?id=11737&action=edit
reproducer assembly source
Compiling gnuradio with debug info for the xtensa-linux host gets stuck in
assembler for hours.
The following is seen in gdb:
...
#6352 0x00005555555aedc5 in symbol_clone_if_forward_ref
(symbolP=0x555559f50590, is_forward=0) at ../../binutils-gdb/gas/symbols.c:808
#6353 0x00005555555aedda in symbol_clone_if_forward_ref
(symbolP=0x555559f50610, is_forward=0) at ../../binutils-gdb/gas/symbols.c:809
#6354 0x00005555555aedc5 in symbol_clone_if_forward_ref
(symbolP=0x555559f509d0, is_forward=0) at ../../binutils-gdb/gas/symbols.c:808
#6355 0x00005555555aedda in symbol_clone_if_forward_ref
(symbolP=0x555559f50a50, is_forward=0) at ../../binutils-gdb/gas/symbols.c:809
#6356 0x00005555555aedc5 in symbol_clone_if_forward_ref
(symbolP=0x555559f50ed0, is_forward=0) at ../../binutils-gdb/gas/symbols.c:808
#6357 0x00005555555aedda in symbol_clone_if_forward_ref
(symbolP=0x555559f55210, is_forward=0) at ../../binutils-gdb/gas/symbols.c:809
#6358 0x0000555555597310 in operand (expressionP=0x7fffffffe130,
mode=expr_normal) at ../../binutils-gdb/gas/expr.c:1364
#6359 0x00005555555978cb in expr (rankarg=0, resultP=0x7fffffffe130,
mode=expr_normal) at ../../binutils-gdb/gas/expr.c:1765
#6360 0x00005555555bb349 in xtensa_elf_cons (nbytes=2) at
../../binutils-gdb/gas/config/tc-xtensa.c:1665
#6361 0x00005555555a3a3f in read_a_source_file (name=0x7fffffffe828
"ccrMJNBu.s") at ../../binutils-gdb/gas/read.c:1148
#6362 0x000055555558e10c in perform_an_assembly_pass (argc=0,
argv=0x555555943b38) at ../../binutils-gdb/gas/as.c:1190
#6363 0x000055555558e4d7 in main (argc=2, argv=0x555555943b30) at
../../binutils-gdb/gas/as.c:1348
I.e. huge recursion in symbol_clone_if_forward_ref when the code references
labels defined by .loc view.
Example assembly source is attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/24444] New: assembling big file with a lot of .loc views takes forever,
jcmvbkbc at gcc dot gnu.org <=
- [Bug gas/24444] assembling big file with a lot of .loc views takes forever, jcmvbkbc at gcc dot gnu.org, 2019/04/11
- [Bug gas/24444] assembling big file with a lot of .loc views takes forever, aoliva at sourceware dot org, 2019/04/13
- [Bug gas/24444] assembling big file with a lot of .loc views takes forever, amodra at gmail dot com, 2019/04/23
- [Bug gas/24444] assembling big file with a lot of .loc views takes forever, cvs-commit at gcc dot gnu.org, 2019/04/24
- [Bug gas/24444] assembling big file with a lot of .loc views takes forever, cvs-commit at gcc dot gnu.org, 2019/04/24