bugGNU MIX Development Kit - Bugs: bug #32452, Illegal OPERAND leads to endless...


bug #32452: Illegal OPERAND leads to endless loop in mixasm

Submitted by:  None
Submitted on:  Sun 13 Feb 2011 11:20:22 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  Jose Antonio Ortega Ruiz <jao>
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 14 Feb 2011 02:09:38 AM UTC, comment #2:

Thanks for the report and the patch, Sascha. I'll try to provide a better error message by introducing a new pattern in the flex rules (besides the one in your patch, which i think is correct).

Jose Antonio Ortega Ruiz <jao>
Project AdministratorIn charge of this item.
Sun 13 Feb 2011 05:27:04 PM UTC, comment #1:

The attached patch solves the problem, the error message is misleading though...

(file #22672)

Sascha Wilde <swilde>
Sun 13 Feb 2011 11:20:22 AM UTC, original submission:

Hi *,

giving an w-expression as operand to an real mix instruction like
lda sends `mixasm' in an endless loop.

To reproduce try to compile the following code:

start LDA 1(4:4),1(5:5)
END start

mixasm will run forever.

Attaching gdb shows an endless loop in mix_scanner.{l,c}.

IMO maxasm should yield an error.

Sascha Wilde



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #22672:  #32452.patch added by swilde (328B - text/x-diff - Simple Patch to fix endless loop)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jao (Posted a comment)
  • -email is unavailable- added by swilde
  • -email is unavailable- added by swilde (Updated the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-14 jao StatusNone => In Progress
        Assigned toNone => jao
    2011-02-13 swilde Carbon-Copy- => Added -email is unavailable-
    2011-02-13 swilde Attached File- => Added #32452.patch, #22672

    Back to the top

    Powered by Savane 3.3