[Nasm-bugs] [Bug 3392602] New: git nasm: segmentation fault when assembling lmacros tests

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sat Aug 10 06:34:31 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392602

            Bug ID: 3392602
           Summary: git nasm: segmentation fault when assembling lmacros
                    tests
           Product: NASM
           Version: 2.15 (development)
          Hardware: Other x86
                OS: Linux
            Status: OPEN
          Severity: blocker
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at 38.de
                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

On a Debian Stretch (Debian 9) server, building any lmacros tests with
nasm-2.14.03rc2-371-g6686de2b seems to always crash. The crash does not occur
if I do not specify a needed -I switch.

$ nasm 001.asm -I ../                                                          
 Segmentation fault (core dumped)
$ nasm 001.asm
001.asm:2: fatal: unable to open include file `lmacros2.mac'
$ nasm 016.asm -I ../
Segmentation fault (core dumped)
$ nasm 016.asm
016.asm:2: fatal: unable to open include file `lmacros2.mac'
$ 

This is running in the tests/ subdirectory of
https://bitbucket.org/ecm/lmacros/src/44c3a480632df5887e825d6372d8ecc28f9bd0be/

A very simple test file succeeds:

$ cat test.asm
%include "test.mac"

db TEST
$ cat test.mac
%define TEST 26h
$ nasm -v
NASM version 2.15rc0 compiled on Aug 10 2019
$ nasm test.asm
$ 

Including just lmacros3.mac also succeeds:

$ nasm -v
NASM version 2.15rc0 compiled on Aug 10 2019
$ cat test.asm
%include "lmacros3.mac"

nop
$ nasm test.asm
test.asm:1: fatal: unable to open include file `lmacros3.mac'
$ nasm test.asm -I ../
$

-- 
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