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

 
 

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

Submitter:  None
Submitted:  Sun 13 Feb 2011 11:20:22 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jao
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Jan 2019 07:47:58 PM UTC, comment #4: 

Fixed as of 1.2.10

Jose Antonio Ortega Ruiz <jao>
Group administrator
Tue 08 Jan 2019 06:06:59 PM UTC, comment #3: 

I've finally pushed to the git master branch a fix for this problem based on yours, with a better error message.

As we say in Spanish, ¡Más vale tarde que nunca! :) Thanks!

Jose Antonio Ortega Ruiz <jao>
Group administrator
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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by jao (Posted a comment)
  • -email is unavailable- added by swilde
  • -email is unavailable- added by swilde (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-08 jao Open/ClosedOpen Closed
    2019-01-08 jao StatusIn Progress Fixed
    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.13-f8d8.
    Corresponding source code