#98 EXTERN with 16 parameters

closed
5
2004-02-15
2003-06-07
Anonymous
No

if one tries to assemble a file containing a line with an
extern directive with exactly 16 arguments, nasm
crashes. it works fine with 15 or 17 parameters though.

Discussion

  • example file that makes nasm crash

     
    Attachments
  • Logged In: NO

    I can't reproduce this.

    When I try the following code in NASM 0.98-36...

    extern a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15
    extern
    a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16
    extern
    a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17

    ...it does not crash.

     
  • Frank Kotler
    Frank Kotler
    2003-06-09

    Logged In: YES
    user_id=68913

    I can reproduce it - just use nasm16. Looks like maybe
    another compiler bug to me(?).

    The workaround is easy - don't use nasm16!

    If you really need nasm16, don't use 16 parameters to
    "extern". Or, maybe we can come up with a 16-bit executable
    that doesn't exhibit this behavior... seems like a low
    priority to me.

    Best,
    Frank

     
  • Logged In: NO

    For lack of a suitable compiler, I can't build a 16-bit NASM
    binary. So I can't chase this bug. Sorry.

     
  • Logged In: YES
    user_id=806493

    Bugfix for %macro with 16 parameters fixes this bug too. This
    bugreport should also be closed.

     
    • labels: --> Preprocessor Bugs
    • assigned_to: nobody --> unv
     
  • Logged In: YES
    user_id=804543

    duplicate of SF #622914

     
    • status: open --> closed