#2175 closed defect

C++ Exception Catch Handler Crash on Sparc ERC32 Simulator(SIS)

Reported by: JunBeom Kim Owned by: Ralf Corsepius
Priority: normal Milestone: 4.11
Component: tool/gcc Version: 4.11
Severity: critical Keywords:
Cc: joel.sherrill@… Blocked By:
Blocking:

Description (last modified by Gedare Bloom)

  • RTEMS : 4.11 version
  • GCC : 4.8.1 & 4.8.2
  • Target : SIS(Sparc Instruction Simulator for ERC32)
  • Testing code : cxx_throw.exe in example_v2
  • Both RTEMS 4.11 and example_v2 code are built.
  • cxx_throw.exe is run.
  • error message is below;


SIS - SPARC instruction simulator 2.7.5, copyright Jiri Gaisler 1995
Bug-reports to jgais@…

sis> load cxx_throw.exe
sis> go
resuming at 0x02000000
Hey I'm in base class constructor number 1 for 0x2081318.
Hey I'm in base class constructor number 2 for 0x2081320.
Hey I'm in derived class constructor number 3 for 0x2081320.

* CONSTRUCTOR/DESTRUCTOR TEST *
Hey I'm in base class constructor number 4 for 0x208c724.
Hey I'm in base class constructor number 5 for 0x208c71c.
Hey I'm in base class constructor number 6 for 0x208c714.
Hey I'm in base class constructor number 7 for 0x208c70c.
Hey I'm in derived class constructor number 8 for 0x208c70c.
Testing a C++ I/O stream
before try block
Unexpected trap ( 7) at address 0x02034A54
memory address not aligned
IU in error mode (257)

826787 02036f14 91d02000 Address 0x02036f14 is out of bounds.


I am guessing that a internal part of _Unwind_RaiseException() occurr memory address alignment problem.

Please let me know how to fix this.

Best Regards,
JunBeom? Kim

Change History (4)

comment:1 Changed on 03/24/14 at 14:01:46 by Joel Sherrill

Cc: Joel Sherrill added

The first thing I would check is the alignment and contents of the section that com runs the exception handler pointers.

comment:2 Changed on 11/22/14 at 13:22:58 by Gedare Bloom

Cc: Gedare Bloom added
Description: modified (diff)
Milestone: 4.11

comment:3 Changed on 11/23/14 at 15:13:04 by Joel Sherrill

Resolution: fixed
Status: newclosed
Version: unknown4.11

comment:4 Changed on 10/10/17 at 05:58:26 by Sebastian Huber

Component: GCCtool/gcc
Note: See TracTickets for help on using tickets.