[Nasm-bugs] [Bug 3392438] New: spurious "assertion output_ins.times >= 0 failed" in a certain file
no-reply at bugzilla-nasm.gorcunov.org
no-reply at bugzilla-nasm.gorcunov.org
Sun Sep 10 13:25:26 PDT 2017
https://bugzilla.nasm.us/show_bug.cgi?id=3392438
Bug ID: 3392438
Summary: spurious "assertion output_ins.times >= 0 failed" in a
certain file
Product: NASM
Version: 2.14 (development)
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at 38.de
CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Binary from nasm.us
Created attachment 411614
--> https://bugzilla.nasm.us/attachment.cgi?id=411614&action=edit
test case that causes the failure
Using a non-trivial sample, I receive an error "assertion output_ins.times >= 0
failed" despite there still being 5 bytes available that should be filled with
the "times" statement.
Unfortunately, my attempts to simplify the test case have failed, it seems to
disappear if the specific conditions aren't met. Thus I'm uploading my entire
project that has this error. The first assembling in the following log occurred
with the %fatal in line 932 in use; the second assembling is with that %fatal
commented. As is visible in the first round, 503 bytes are in use, so as the
macro should pad to 508, 5 bytes are left. (TIMES should get 5 as its count.)
$ nasm -v
NASM version 2.14rc0-20170624 compiled on Jun 24 2017
$ FSS=512 SUFFIX= FAT=12; nasm -DNUM=500 -D_DIRBUF_500=1 -D_MEMORY_CONTINUE=1
-D_RPL=0 -D_USE_PART_INFO=0 -D_QUERY_GEOMETRY=1 -D_FAT$FAT=1 boot.asm -o
boot${FAT}${SUFFIX}.bin -D_MAP=boot${FAT}${SUFFIX}.map -l
boot${FAT}${SUFFIX}.lst -I../lmacros/
lmacros1.mac:404: warning: unterminated string
boot.asm:932: fatal: x = 503
evln at alyra:~/test/nasm/nasmbug$ FSS=512 SUFFIX= FAT=12; nasm -DNUM=500
-D_DIRBUF_500=1 -D_MEMORY_CONTINUE=1 -D_RPL=0 -D_USE_PART_INFO=0
-D_QUERY_GEOMETRY=1 -D_FAT$FAT=1 boot.asm -o boot${FAT}${SUFFIX}.bin
-D_MAP=boot${FAT}${SUFFIX}.map -l boot${FAT}${SUFFIX}.lst -I../lmacros/
lmacros1.mac:404: warning: unterminated string
boot.asm:935: panic: assertion output_ins.times >= 0 failed at asm/nasm.c:1342
evln at alyra:~/test/nasm/nasmbug$
--
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