https://sourceware.org/bugzilla/show_bug.cgi?id=26113
Bug ID: 26113 Summary: gas 2.34 gets stuck in infinite loop after compilation error Product: binutils Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: me at tbrindus dot ca Target Milestone: --- Created attachment 12622 --> https://sourceware.org/bugzilla/attachment.cgi?id=12622&action=edit Python source code Hi, We run a system where students may submit code in several languages and have it run on our machines -- among others, we support x64 Assembly and Python. One student mis-selected the language of their source code, and submitted a Python program as x64 Assembly. This caused gas 2.34 to lock up after emitting the expected syntax errors; it did not terminate after 8 hours (when we found out and SIGKILL'd the process). We are running gas from Debian sid's repos. In particular: $ x86_64-linux-gnu-as --version GNU assembler (GNU Binutils for Debian) 2.34 Copyright (C) 2020 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `x86_64-linux-gnu'. The file submitted is attached. Running gas with no extra arguments exhibits the issue. $ x86_64-linux-gnu-as test.py test.py: Assembler messages: test.py:1: Error: no such instruction: `def cal():' test.py:2: Error: junk at end of line, first unrecognized character is `(' test.py:4: Error: invalid character '(' in mnemonic ...snip... test.py:17: Error: invalid character '(' in mnemonic test.py: Error: symbol definition loop encountered at `int' test.py: Error: invalid operands (.text and *ABS* sections) for `%' when setting `a' ^C This appears to be a regression since 2.31.1 (Debian buster version of gas), which exits after emitting the error messages. I'm happy to provide any other information that may be useful. -- You are receiving this mail because: You are on the CC list for the bug.