bugZ80 assembler - Bugs: bug #31030, z80asm SIGSEGV on cp(ix)...

 
 

bug #31030: z80asm SIGSEGV on cp(ix) instruction with no offset specified

Submitter:  None
Submitted:  Tue 14 Sep 2010 10:15:45 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Duplicate
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Mar 2021 03:41:49 PM UTC, comment #3: 
Peter Kollner <asgalon>
Group Member
Tue 02 Mar 2021 11:07:38 AM UTC, comment #2: 

This is a specific case of the more general bug #47653.

Paul Flo Williams <hisdeedsaredust>
Group Member
Thu 05 May 2016 02:01:46 PM UTC, comment #1: 

confirmed, related to bug #47653

Peter Kollner <asgalon>
Group Member
Tue 14 Sep 2010 10:15:45 AM UTC, original submission:  

The following instruction will cause z80asm (1.8) to dump core:

cp (ix)

The last part must be changed to (ix+0) to compile correctly. The -v(*6) output gives this before crashing:

    5 (0x8004): Piece of code found:cp
    5 (0x8004): Remainder of line= (ix) .
    5 (0x8004): Piece of code found:( ix +)
    5 (0x8004): Remainder of line= .
    5 (0x8004): wrtb called with argument 0xbe
    5 (0x8004): writing indexed byte 0xdd
    5 (0x8004): write_one_byte called with argument 0xdd
    5 (0x8005): writing byte 0xbe
    5 (0x8005): write_one_byte called with argument 0xbe
    5 (0x8006): Making reference for index/jump Segmentation fault (core dumped)

I'm not quibbling over whether "cp (ix)" is valid or not without an explicit offset, but the assembler should not crash.

This was running on OpenSolaris (x86) at the time (compiled with gcc 4.3 I think).

-- Brian Ruthven

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hisdeedsaredust (Posted a comment)
  • -email is unavailable- added by asgalon (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-13 asgalon StatusConfirmed Duplicate
        Open/ClosedOpen Closed
    2016-05-05 asgalon StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code