Notice: We have migrated to GitLab launching 2024-05-01 see here:

#1282 closed defect (fixed)

Typing errors in rtemsInterrupt class

Reported by: Franck MIMET Owned by: Joel Sherrill
Priority: normal Milestone: 4.9
Component: unspecified Version: 4.6
Severity: major Keywords:
Cc: ausy.mimet@… Blocked By:


I am using RTEMS through C++ classes given in the librtems++ library.
I found two errors in the code of the rtemsInterrupt class which lead to unusability of this class :

  • The first one is in the default constructor, where the interrupt table is not well initialised.

The correction is hereafter :

for (rtems_vector_number vec = 0;



interrupt_table[vector] = 0; ERROR

interrupt_table[vec] = 0;


  • The second one is in the isr_catch member function.

By the same, there is an inversion between vec and vector, consequently the "this" pointer was not stored at the right place in the table.
The correction is hereafter:

old_interrupt = interrupt_table[vector]; ERROR
interrupt_table[vector] = this; ERROR

old_interrupt = interrupt_table[vec];
interrupt_table[vec] = this;
vector = vec;

I checked on the lastest version (4.8) and these errors still exist.

Best regards,
Franck MIMET

Change History (2)

comment:1 Changed on 08/04/08 at 18:27:02 by Joel Sherrill

Resolution: fixed
Status: newclosed

Fixed on all active branches

comment:2 Changed on 10/10/17 at 06:35:44 by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.