bugSimulavr: an AVR simulator - Bugs: bug #41774, example.py uses bogus addresses...

 
 

bug #41774: example.py uses bogus addresses for comparision

Submitter:  Stefan Brüns <stefanbruens>
Submitted:  Tue 04 Mar 2014 09:37:28 PM UTC
   
 
Category:  Test Suite Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tomk
Open/Closed:  Closed Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Dec 2019 05:54:12 PM UTC, comment #4: 

Will be solved with upcoming version. (address comparison removed, it's a moving target depending on avr-gcc version)

Thomas K. <tomk>
Group administrator
Sat 25 Oct 2014 05:03:10 PM UTC, comment #3: 

Hi,

maybe a solution is, to read out the right addresses before with readelf.

cu, Thomas

Thomas K. <tomk>
Group administrator
Mon 06 Oct 2014 09:11:40 PM UTC, comment #2: 

Hi Thomas,

will try to come up with something better ...

Stefan Brüns <stefanbruens>
Mon 06 Oct 2014 05:02:42 PM UTC, comment #1: 

Hi,

you are right, it's really not a good example ... but a example. :-)

On one hand I want to show, what's possible. Especially how it could used in automated tests also for avr code. But on the other hand, FAIL is a failure!

Any ideas to make a better test szenario? Just to show possibilities but not to make it to complicated.

Or maybe write some better description in README and why it can happen to FAIL?

cu, Thomas

Thomas K. <tomk>
Group administrator
Tue 04 Mar 2014 09:37:28 PM UTC, original submission:  

test4 and test6 lookup the address of two functions (main and timer2_ticks).

The address comparision in the assertion is completely bogus, as the code position depends on compiler version, optimization level ...

Stefan Brüns <stefanbruens>

 

(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 tomk (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
    2019-12-03 tomk StatusNone Fixed
        Open/ClosedOpen Closed
    2014-10-25 tomk Assigned toNone tomk

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code