[Nasm-bugs] [Bug 3392893] New: Empty %rep block in mmacro causes an assertion failure panic
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Thu Jul 20 13:29:01 PDT 2023
https://bugzilla.nasm.us/show_bug.cgi?id=3392893
Bug ID: 3392893
Summary: Empty %rep block in mmacro causes an assertion failure
panic
Product: NASM
Version: 2.17 (development)
Hardware: All
OS: All
Status: OPEN
Severity: annoyance
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at ulukai.org
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Built from git using configure
In this test the "nasm" executable is as patched in
https://bugzilla.nasm.us/show_bug.cgi?id=3392892
The "orignasm" executable is
https://github.com/netwide-assembler/nasm/commit/a916e4127b2eaa3bf40bddf3de9b0ceefc0d98a4
The bug is trivial to avoid as even a blank line between the %rep and %endrep
is enough to avoid the panic. Any other content also seems to work.
test/20230720.2$ cat test1.asm
%macro mmac 0
%rep 1
%endrep
%endmacro
mmac
test/20230720.2$ cat test2.asm
%macro mmac 0
%rep 1
%endrep
%endmacro
mmac
test/20230720.2$ orignasm -v
NASM version 2.17rc0 compiled on Jul 20 2023
test/20230720.2$ orignasm test1.asm
test/20230720.2$ orignasm test2.asm
panic: test2.asm:6: assertion fm == istk->mstk.mstk failed at
asm/preproc.c:7568
test/20230720.2$ nasm -v
NASM version 2.17rc0 compiled on Jul 20 2023
test/20230720.2$ nasm test1.asm
test/20230720.2$ nasm test2.asm
panic: test2.asm:6: assertion fm == istk->mstk.mstk failed at
asm/preproc.c:7568
test/20230720.2$
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list