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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: In Progress
Privacy: PublicAssigned to: Jose Antonio Ortega Ruiz <jao>
Open/Closed: Open

Add a New Comment (Rich MarkupRich 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)
HLT
END start

mixasm will run forever.

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

IMO maxasm should yield an error.

cheers
Sascha Wilde

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by jao (Posted a comment)
  • -unavailable- added by swilde
  • -unavailable- added by swilde (Updated the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Feb 2011 02:09:38 AM UTCjaoStatusNone=>In Progress
      Assigned toNone=>jao
    Sun 13 Feb 2011 05:28:56 PM UTCswildeCarbon-Copy-=>Added -unavailable-
    Sun 13 Feb 2011 05:27:04 PM UTCswildeAttached File-=>Added #32452.patch, #22672

    Back to the top


    Powered by Savane 3.1-cleanup